Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1558049

Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol

From Dmitry Torokhov <dmitry.torokhov@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol
Date 2017-01-13 07:30 +0100
Message-ID <sZ3x7-5Sp-3@gated-at.bofh.it> (permalink)
References <sY3zb-1dQ-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Arnd,

On Tue, Jan 10, 2017 at 01:16:58PM +0100, Arnd Bergmann wrote:
> If CONFIG_INPUT=m, we get a build error for the rmi4-f03 driver,
> added in linux-4.10:
> 
> drivers/input/built-in.o: In function `rmi_f03_attention':
> rmi_f03.c:(.text+0xcfe0): undefined reference to `serio_interrupt'
> rmi_f03.c:(.text+0xd055): undefined reference to `serio_interrupt'
> drivers/input/built-in.o: In function `rmi_f03_remove':
> rmi_f03.c:(.text+0xd115): undefined reference to `serio_unregister_port'
> drivers/input/built-in.o: In function `rmi_f03_probe':
> rmi_f03.c:(.text+0xd209): undefined reference to `__serio_register_port'
> 
> If we make the driver itself a 'tristate' instead of 'bool' symbol,
> Kconfig ensures that it can only be a loadable module in this case,
> which avoids the problem.
> 
> Fixes: c5e8848fc98e ("Input: synaptics-rmi4 - add support for F03")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  drivers/input/rmi4/Kconfig | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/input/rmi4/Kconfig b/drivers/input/rmi4/Kconfig
> index 30cc627a4f45..ad945b25722c 100644
> --- a/drivers/input/rmi4/Kconfig
> +++ b/drivers/input/rmi4/Kconfig
> @@ -40,7 +40,7 @@ config RMI4_SMB
>  	  called rmi_smbus.
>  
>  config RMI4_F03
> -        bool "RMI4 Function 03 (PS2 Guest)"
> +        tristate "RMI4 Function 03 (PS2 Guest)"
>          depends on RMI4_CORE && SERIO
>          help
>            Say Y here if you want to add support for RMI4 function 03.
> -- 
> 2.9.0
> 

As it was explained townthread we can't [currently] make functions
modules, in the meantime I have d7ddad0acc4add42567f7879b116a0b9eea31860
that should fix this issue (and I just sent pull request for it).

Thanks.

-- 
Dmitry

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-10 13:20 +0100
  Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Andrew Duggan <aduggan@synaptics.com> - 2017-01-11 01:40 +0100
    Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-11 16:50 +0100
      Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-01-11 17:30 +0100
        Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-11 18:00 +0100
          Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Benjamin Tissoires <benjamin.tissoires@redhat.com> - 2017-01-11 18:50 +0100
            Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Andrew Duggan <aduggan@synaptics.com> - 2017-01-13 01:50 +0100
              Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-13 22:20 +0100
  Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-13 07:30 +0100
    Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-13 22:10 +0100
      Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-13 22:20 +0100
        Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-13 22:40 +0100
          Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-13 22:50 +0100
            Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Arnd Bergmann <arnd@arndb.de> - 2017-01-14 13:20 +0100
              Re: [PATCH] Input: synaptics-rmi4 - make F03 a tristate symbol Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2017-01-16 00:50 +0100

csiph-web