]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
tty: synclink_gt: rename a conflicting function name
authorRandy Dunlap <rdunlap@infradead.org>
Thu, 2 Sep 2021 00:38:06 +0000 (17:38 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 5 Nov 2021 09:20:20 +0000 (10:20 +0100)
commitb8dfa844b16d85d2d64309fb198d214360e4d360
tree759d34b7ae59f8f692108b616e132f94a05e7c47
parent825cb3454d60ebe4f066bbf209ae6273e5448f0f
tty: synclink_gt: rename a conflicting function name

BugLink: https://bugs.launchpad.net/bugs/1949640
[ Upstream commit 06e49073dfba24df4b1073a068631b13a0039c34 ]

'set_signals()' in synclink_gt.c conflicts with an exported symbol
in arch/um/, so change set_signals() to set_gtsignals(). Keep
the function names similar by also changing get_signals() to
get_gtsignals().

../drivers/tty/synclink_gt.c:442:13: error: conflicting types for ‘set_signals’
 static void set_signals(struct slgt_info *info);
             ^~~~~~~~~~~
In file included from ../include/linux/irqflags.h:16:0,
                 from ../include/linux/spinlock.h:58,
                 from ../include/linux/mm_types.h:9,
                 from ../include/linux/buildid.h:5,
                 from ../include/linux/module.h:14,
                 from ../drivers/tty/synclink_gt.c:46:
../arch/um/include/asm/irqflags.h:6:5: note: previous declaration of ‘set_signals’ was here
 int set_signals(int enable);
     ^~~~~~~~~~~

Fixes: 705b6c7b34f2 ("[PATCH] new driver synclink_gt")
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jirislaby@kernel.org>
Cc: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20210902003806.17054-1-rdunlap@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/tty/synclink_gt.c