Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1570987ybt; Thu, 18 Jun 2020 11:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTvENJuAofxfjWU8IQr5kYCEbGNPxdPqPngXBcGpN7img+4RHhodhD8eQrdSSxccQKIoyx X-Received: by 2002:a17:906:9a02:: with SMTP id ai2mr51135ejc.97.1592506009882; Thu, 18 Jun 2020 11:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592506009; cv=none; d=google.com; s=arc-20160816; b=A34bNZbdiNYHMYtIF59sRl4FSTpZXFvJ2VT5YU2tPcfTTEioHMFNHUT3OLqeTsnAPr AIeOUKfh4/ie+9vKDVzJUDhYd38FAQ3XPQxJf+WDXMTSkQjAhSe6fso4VYl6ux41aKoj XL4E2n59z5a+ylPF4fPzgDOjcN0BM/UkytuNpx6Ycjcj/SIzxmt8w4MRZcB8yY7TerV7 0l5BJmBuegy8Hdzfpy3q/QllZMBl27kwX4yGBkgnMCHmUG9RpqG5TbhcVNrRfrZoDFoZ bQ0Cf8F6lXdbBOh4PD08HR+TDI3T+JpWphBYV0VJC5ZhpXpneZME9eToNjnhMNVvCEdY 9UQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=vSAKdupfjUnpQv7PVZTpVtSwPY/+63YsbAN25Eh8aLo=; b=pkjXr/1of/hbfaIXK7+LLbswDCCYwkY3tFI1NCAIYEdM1OtdA0t7HvNbFPh7K+X87c Fig+7JbykchHNcait25GkCDdhDRzhVV4sDfYyJxN/XD85f0TnNL/bKsel113OfzgbSCG QHUk9Hrp4TV1u1XGDA1nEL4pvzylmVie2dXuuSnyZWiYVxgB/AL0dlf8/MHzHmekSIqQ iplLhV66UhazOCSUTS2/i6hArof2lLhoXFyRu7tJhOL+tocNbe7j9ZPDdGVpm/oJbrnF RkBUzXG6a8aLxxVIR0QIDLkXIjQNk1ngxC3yMC+FJKUAejKxpr3Urt5F5AHb5B2q6emV oYYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="GMzprk/8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pg7si2390286ejb.411.2020.06.18.11.46.26; Thu, 18 Jun 2020 11:46:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b="GMzprk/8"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732310AbgFRRgm (ORCPT + 99 others); Thu, 18 Jun 2020 13:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730240AbgFRRgl (ORCPT ); Thu, 18 Jun 2020 13:36:41 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01BA2C0613EE for ; Thu, 18 Jun 2020 10:36:41 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id s13so5185522otd.7 for ; Thu, 18 Jun 2020 10:36:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vSAKdupfjUnpQv7PVZTpVtSwPY/+63YsbAN25Eh8aLo=; b=GMzprk/8y3cOitItK+SVkpqGg8A/ZMra8JaEKJFMANat5jvqSWFNlHq5Q5MRgpHKQk 0nSqR41phZ4I+diI+SxDrGcHhAow3Igrv7jhP81S/JVMxmO/6ID6oGlfkwg4t4JLVp8j yBBBe6KVTIshDSBdeEoT9bhloJCCd7B5/UiE8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vSAKdupfjUnpQv7PVZTpVtSwPY/+63YsbAN25Eh8aLo=; b=f3ssUkXmtWw2jE6/X5afotck8Xf8wZbp0mm28EpcHPJBOj28uuSWaqrxtwwzqB8WPZ +Ikbyxedc8QtYzuG9TWPi7Xd2q+lf7745TeR7XrLGhNwF+Lr5UxyRzmfLGYPuSF+b2/J nBeORtYaDouC0d9YJ3kxq1jnibTAtl6IuBCY7bi8yOy7Dd+r4cQhOcrlj2sFlyjA2g4E SQWhuCnrriiEvitMx/8BIVhaO1JtxJU9zWY8SF/BGlVhZ25YGNCYmoRcKn6N+u0k9lKY tepQ/lWoYD7HH5S0sNaMftkqEMvirHgYX0Y+SC0vv2uLt1T9HRz51gBQXGFuR8xzGpci lw/w== X-Gm-Message-State: AOAM5336Y+xPbaP0VkKDesIUDvK0tOKX+M/wVs2cTKnibznjg4mEUcIV LNEGE9Nrq2kc0gtYl9Ng6HHmtQ== X-Received: by 2002:a9d:7b41:: with SMTP id f1mr4658243oto.363.1592501801252; Thu, 18 Jun 2020 10:36:41 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id g10sm836752otn.34.2020.06.18.10.36.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 18 Jun 2020 10:36:40 -0700 (PDT) Subject: Re: [PATCH] usbip: tools: fix build error for multiple definition To: Antonio Borneo , Valentina Manea , Shuah Khan , Greg Kroah-Hartman , Hewenliang , linux-usb@vger.kernel.org Cc: linux-kernel@vger.kernel.org, skhan@linuxfoundation.org References: <20200618000844.1048309-1-borneo.antonio@gmail.com> From: Shuah Khan Message-ID: Date: Thu, 18 Jun 2020 11:36:39 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200618000844.1048309-1-borneo.antonio@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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 thanks, -- Shuah