All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org,
	Andrew Duggan <aduggan@synaptics.com>,
	Christopher Heiny <cheiny@synaptics.com>,
	Benjamin Tissoires <benjamin.tissoires@redhat.com>,
	Nick Dyer <nick@shmanahar.org>, Lyude Paul <thatslyude@gmail.com>,
	Randy Dunlap <rdunlap@infradead.org>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Input: synaptics-rmi4 - fix F03 build error when serio is module
Date: Tue, 27 Dec 2016 12:58:19 -0800	[thread overview]
Message-ID: <20161227205819.GA16929@roeck-us.net> (raw)
In-Reply-To: <20161227193456.GA36223@dtor-ws>

On Tue, Dec 27, 2016 at 11:34:56AM -0800, Dmitry Torokhov wrote:
> Since F03 is a boolean, "depends" on symbols that can be modules
> do not work quite right. We can enable F03 if SERIO is built-in or
> if both RMI core and SERIO core are modules. If SERIO core is module,
> but RMI is built-in, we'll get:
> 
> drivers/built-in.o: In function `rmi_f03_attention':
> rmi_f03.c:(.text+0xf8ef8): undefined reference to `serio_interrupt'
> rmi_f03.c:(.text+0xf8fbd): undefined reference to `serio_interrupt'
> drivers/built-in.o: In function `rmi_f03_remove':
> rmi_f03.c:(.text+0xf9082): undefined reference to `serio_unregister_port'
> drivers/built-in.o: In function `rmi_f03_probe':
> rmi_f03.c:(.text+0xf9260): undefined reference to `__serio_register_port'
> 
> Reported-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>  drivers/input/rmi4/Kconfig | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/input/rmi4/Kconfig b/drivers/input/rmi4/Kconfig
> index 30cc627..8993983 100644
> --- a/drivers/input/rmi4/Kconfig
> +++ b/drivers/input/rmi4/Kconfig
> @@ -41,7 +41,8 @@ config RMI4_SMB
>  
>  config RMI4_F03
>          bool "RMI4 Function 03 (PS2 Guest)"
> -        depends on RMI4_CORE && SERIO
> +	depends on RMI4_CORE
> +	depends on SERIO=y || RMI4_CORE=SERIO
>          help
>            Say Y here if you want to add support for RMI4 function 03.
>  
> -- 
> 2.8.0.rc3.226.g39d4020
> 
> 
> -- 
> Dmitry

      reply	other threads:[~2016-12-27 20:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-27 19:34 [PATCH] Input: synaptics-rmi4 - fix F03 build error when serio is module Dmitry Torokhov
2016-12-27 20:58 ` Guenter Roeck [this message]

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=20161227205819.GA16929@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=aduggan@synaptics.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=cheiny@synaptics.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nick@shmanahar.org \
    --cc=rdunlap@infradead.org \
    --cc=sfr@canb.auug.org.au \
    --cc=thatslyude@gmail.com \
    /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: link
Be 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.