stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: David Lechner <david@lechnology.com>
Cc: stable@vger.kernel.org, Hans de Goede <hdegoede@redhat.com>,
	Johan Hovold <johan@kernel.org>,
	Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Subject: Re: [PATCH] tty: serdev: fix missing static modifier on DEVICE_ATTR_RO(modalias)
Date: Fri, 27 Apr 2018 09:07:53 +0200	[thread overview]
Message-ID: <20180427070753.GB4931@kroah.com> (raw)
In-Reply-To: <20180427033358.13167-1-david@lechnology.com>

On Thu, Apr 26, 2018 at 10:33:58PM -0500, David Lechner wrote:
> This fixes the compile error "multiple definition of `dev_attr_modalias'"
> by adding the static modifier to DEVICE_ATTR_RO(modalias).
> 
> This change was made in the mainline kernel in 2460942f51f1 ("serdev: do
> not generate modaliases for controllers") along with some other changes.
> 
> Fixes: 4fe99816a1ab ("tty: serdev: use dev_groups and not dev_attrs for bus_type")
> Cc: Hans de Goede <hdegoede@redhat.com>
> Cc: Johan Hovold <johan@kernel.org>
> Cc: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: <stable@vger.kernel.org> # 4.14.x
> Signed-off-by: David Lechner <david@lechnology.com>
> ---
> 
> Should we pick up the patch 2460942f51f1 ("serdev: do not generate modaliases
> for controllers") for stable or is this patch good enough?
> 
>  drivers/tty/serdev/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c
> index 97db76afced2..25298b7b2419 100644
> --- a/drivers/tty/serdev/core.c
> +++ b/drivers/tty/serdev/core.c
> @@ -276,7 +276,7 @@ static ssize_t modalias_show(struct device *dev,
>  {
>  	return of_device_modalias(dev, buf, PAGE_SIZE);
>  }
> -DEVICE_ATTR_RO(modalias);
> +static DEVICE_ATTR_RO(modalias);
>  
>  static struct attribute *serdev_device_attrs[] = {
>  	&dev_attr_modalias.attr,

This patch implies that there is also another "global" modalias variable
somewhere in the system, right?  Where is that one being defined?

And I do like to keep original commits for stable trees, but this one
might be ok here, if we figure out what this is conflicting with.

thanks,

greg k-h

  reply	other threads:[~2018-04-27  7:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-27  3:33 [PATCH] tty: serdev: fix missing static modifier on DEVICE_ATTR_RO(modalias) David Lechner
2018-04-27  7:07 ` Greg Kroah-Hartman [this message]
2018-04-27 19:46   ` David Lechner
2018-04-28  4:49     ` Greg Kroah-Hartman

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=20180427070753.GB4931@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=david@lechnology.com \
    --cc=hdegoede@redhat.com \
    --cc=johan@kernel.org \
    --cc=sebastian.reichel@collabora.co.uk \
    --cc=stable@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).