From: Salvatore Bonaccorso <carnil@debian.org>
To: Shuah Khan <skhan@linuxfoundation.org>
Cc: Antonio Borneo <borneo.antonio@gmail.com>,
Valentina Manea <valentina.manea.m@gmail.com>,
Shuah Khan <shuah@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Hewenliang <hewenliang4@huawei.com>,
linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] usbip: tools: fix build error for multiple definition
Date: Fri, 24 Jul 2020 00:58:34 +0200 [thread overview]
Message-ID: <20200723225834.GA3733057@eldamar.local> (raw)
In-Reply-To: <f914d6a1-20d6-2e00-bcf5-658848ad95a1@linuxfoundation.org>
Hi,
On Thu, Jun 18, 2020 at 11:36:39AM -0600, Shuah Khan wrote:
> On 6/17/20 6:08 PM, Antonio Borneo wrote:
> > With GCC 10, building usbip triggers error for multiple definition
> > of 'udev_context', in:
> > - libsrc/vhci_driver.c:18 and
> > - libsrc/usbip_host_common.c:27.
> >
> > Declare as extern the definition in libsrc/usbip_host_common.c.
> >
> > Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
> > ---
> > tools/usb/usbip/libsrc/usbip_host_common.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/usb/usbip/libsrc/usbip_host_common.c b/tools/usb/usbip/libsrc/usbip_host_common.c
> > index d1d8ba2a4a40..ca78aa368476 100644
> > --- a/tools/usb/usbip/libsrc/usbip_host_common.c
> > +++ b/tools/usb/usbip/libsrc/usbip_host_common.c
> > @@ -23,7 +23,7 @@
> > #include "list.h"
> > #include "sysfs_utils.h"
> > -struct udev *udev_context;
> > +extern struct udev *udev_context;
> > static int32_t read_attr_usbip_status(struct usbip_usb_device *udev)
> > {
> >
>
> Looks good to me.
>
> Acked-by: Shuah Khan <skhan@linuxfoundation.org>
As Debian (unstable) has switched to GCC 10 by default, we are biten
by this. Patch looks good to me.
Tested-by: Salvatore Bonaccorso <carnil@debian.org>
Regards,
Salvatore
prev parent reply other threads:[~2020-07-23 22:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-18 0:08 [PATCH] usbip: tools: fix build error for multiple definition Antonio Borneo
2020-06-18 17:36 ` Shuah Khan
2020-07-23 22:58 ` Salvatore Bonaccorso [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=20200723225834.GA3733057@eldamar.local \
--to=carnil@debian.org \
--cc=borneo.antonio@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=hewenliang4@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.org \
--cc=valentina.manea.m@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox