From: YueHaibing <yuehaibing@huawei.com> To: <dmitry.torokhov@gmail.com>, <allison@lohutok.net>, <tglx@linutronix.de>, <info@metux.net>, <dilinger@debian.org> Cc: <linux-kernel@vger.kernel.org>, <linux-input@vger.kernel.org>, YueHaibing <yuehaibing@huawei.com> Subject: [PATCH] Input: psmouse - Fix build error of multiple definition Date: Tue, 16 Jul 2019 14:54:11 +0800 [thread overview] Message-ID: <20190716065411.56780-1-yuehaibing@huawei.com> (raw) trackpoint_detect() should be static inline while CONFIG_MOUSE_PS2_TRACKPOINT is not set. otherwire,we got building fails: drivers/input/mouse/alps.o: In function `trackpoint_detect': alps.c:(.text+0x8e00): multiple definition of `trackpoint_detect' drivers/input/mouse/psmouse-base.o:psmouse-base.c:(.text+0x1b50): first defined here Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 55e3d9224b60 ("Input: psmouse - allow disabing certain protocol extensions") Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/input/mouse/trackpoint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/trackpoint.h b/drivers/input/mouse/trackpoint.h index 0afffe8..77110f3 100644 --- a/drivers/input/mouse/trackpoint.h +++ b/drivers/input/mouse/trackpoint.h @@ -158,7 +158,8 @@ struct trackpoint_data { #ifdef CONFIG_MOUSE_PS2_TRACKPOINT int trackpoint_detect(struct psmouse *psmouse, bool set_properties); #else -inline int trackpoint_detect(struct psmouse *psmouse, bool set_properties) +static inline int trackpoint_detect(struct psmouse *psmouse, + bool set_properties) { return -ENOSYS; } -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: YueHaibing <yuehaibing@huawei.com> To: dmitry.torokhov@gmail.com, allison@lohutok.net, tglx@linutronix.de, info@metux.net, dilinger@debian.org Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, YueHaibing <yuehaibing@huawei.com> Subject: [PATCH] Input: psmouse - Fix build error of multiple definition Date: Tue, 16 Jul 2019 14:54:11 +0800 [thread overview] Message-ID: <20190716065411.56780-1-yuehaibing@huawei.com> (raw) trackpoint_detect() should be static inline while CONFIG_MOUSE_PS2_TRACKPOINT is not set. otherwire,we got building fails: drivers/input/mouse/alps.o: In function `trackpoint_detect': alps.c:(.text+0x8e00): multiple definition of `trackpoint_detect' drivers/input/mouse/psmouse-base.o:psmouse-base.c:(.text+0x1b50): first defined here Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 55e3d9224b60 ("Input: psmouse - allow disabing certain protocol extensions") Signed-off-by: YueHaibing <yuehaibing@huawei.com> --- drivers/input/mouse/trackpoint.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/input/mouse/trackpoint.h b/drivers/input/mouse/trackpoint.h index 0afffe8..77110f3 100644 --- a/drivers/input/mouse/trackpoint.h +++ b/drivers/input/mouse/trackpoint.h @@ -158,7 +158,8 @@ struct trackpoint_data { #ifdef CONFIG_MOUSE_PS2_TRACKPOINT int trackpoint_detect(struct psmouse *psmouse, bool set_properties); #else -inline int trackpoint_detect(struct psmouse *psmouse, bool set_properties) +static inline int trackpoint_detect(struct psmouse *psmouse, + bool set_properties) { return -ENOSYS; } -- 2.7.4
next reply other threads:[~2019-07-16 6:54 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-07-16 6:54 YueHaibing [this message] 2019-07-16 6:54 ` [PATCH] Input: psmouse - Fix build error of multiple definition YueHaibing 2019-07-16 18:19 ` Dmitry Torokhov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20190716065411.56780-1-yuehaibing@huawei.com \ --to=yuehaibing@huawei.com \ --cc=allison@lohutok.net \ --cc=dilinger@debian.org \ --cc=dmitry.torokhov@gmail.com \ --cc=info@metux.net \ --cc=linux-input@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=tglx@linutronix.de \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.