Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1703767ybh; Thu, 23 Jul 2020 16:00:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEvUFrSjUmWMwJNMqqqXN7MC2734nIhnR4XPxpeQB1MLWiwY2olrW0wXgrt6eDaXXimgGK X-Received: by 2002:a05:6402:1ca8:: with SMTP id cz8mr6172734edb.55.1595545208513; Thu, 23 Jul 2020 16:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595545208; cv=none; d=google.com; s=arc-20160816; b=bvZwzPGyGQCZ6c38Yq2onEBn0xpH2Pe1M4APS1UZBgFDEymN0yA0iXlS2L1/j8iA5W +cIGlKe9ZK+fEDaZCCglUxTa7hAK5D5naE0OypSmMoIGxp04JtmiBOCNlUmxUZ88B6O5 c/aZWRUdYMaDcT+ucJuTOV1che6VsrQdmpuDCMeu+fhJkSDVR86aPXSNdD3pczaKpfLQ Wth/Ogz/lAs7GZm86ZltLpe8nAr6EqnO2wnegwFLkZfUNhf7CjxX1uVo1AM2UMD/qS0K JrhnIJO3xcfDn486QZJ48Ex5vRgZ+fYQRoXkZDis6u65zMUkWt0/2/9NumACLOsrQdq0 tYhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=8qqXSwfvqheVjYXqW+atWH5qoEuJ9FdUQ20+E0c6/f8=; b=QMHB90n+LN7vpNoDK9LN6YGgi494wmmGNp3PnSOo89mZ8VvAqg7VK7Mpts/W9VkqAm fGM2SKoASq7CC81/q+hNaA7aGKAWpuXeIb/Hw1t8dtaB/lEmBKOdT9gslL5b/Trxnrt/ +UJ1WZWCTi7EFXMfz71QTNFy0BClZ+IXr9OpaZudTwk4hxn0QuIc3vUJUJjNz9BXukiU mZxuUhZcIbw87eSfMIEYcUYYmbQu5sG8WV0ZiqiGqUjshUXJZywGkXFq6nFLNdzpqbwn vz4QhHNWa68DHIAA0EcSEF/OU+dbJmm6lBM2sb5xPnGHbNKy1quQttZe0QZLzysAHINh rHfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=lMtF2uv+; 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 z22si2765192edr.357.2020.07.23.15.59.46; Thu, 23 Jul 2020 16:00:08 -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=fail header.i=@gmail.com header.s=20161025 header.b=lMtF2uv+; 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 S1727847AbgGWW6k (ORCPT + 99 others); Thu, 23 Jul 2020 18:58:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbgGWW6i (ORCPT ); Thu, 23 Jul 2020 18:58:38 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08FC9C0619D3; Thu, 23 Jul 2020 15:58:38 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id g10so7407623wmc.1; Thu, 23 Jul 2020 15:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=8qqXSwfvqheVjYXqW+atWH5qoEuJ9FdUQ20+E0c6/f8=; b=lMtF2uv+uBztG8XBoS1w/RHN0Qpm1GVcEUl/qO9TEUN8NTus1jJD+FMjJnYTqrtjN8 e5CTFbIEhRyYUseNm3oEmPep3vA7xsMjfOGVT77wmg6wtVL06Wc2OxX3VwCPupv43nFV xyXjGTOSL1MzHgeFICJoFjknOUzm2DzaAIIW7qC3a6BSQsI6GAn+cotpmYJjGa9+tFOZ Jq1THhcFiboZXpZiXBOPxYrpm9Gv6QVrcEFB/v8Mmi//gnHMPwekN9qO61fi6r/OTfSA 01E3lYNk9F7gzykcTPKx2/JxwKLsErs/T3qtXZwepzq6WThI5xSRj2jXXpDqWf9FoY33 nnmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=8qqXSwfvqheVjYXqW+atWH5qoEuJ9FdUQ20+E0c6/f8=; b=guA4ge3InadbqS9P/WoJm4YtAPk7U9pqojGxmEHpObDAe5hLQNblylPNKxYa0QTI1k N2WvMChQqTlUucHYWYOEmGVUtN6dGzrK+QwBMl2EAkNrX9nKNsDi6QWYCJ8bJDr7anE8 4VqnLeBCR7hnxt5lpMg53cbGHg6hj3dOUQZg6UoHI1M1cCKUyg0gg5fFBmlQYLO2IihJ uAGB7ptfQ8vZH4/hh8e4UAlH0esOtDkJCIqU9AyCCOPvDZrxFEl9A8+Ogr0Uq3HuhORN tTaNb/18d+npgzwoAwkX/sVFc5Af/gHxSzGgzWWh70W7/IGjI/PROARiwFD13KmUm+5l 5AcQ== X-Gm-Message-State: AOAM530hnBvlzD9cww37LDd++/TwcFp2RZ8RgLpmVikrrAq++rW58bID cPSNnJv2GXAf/D7CULkviQrE9Ew6x74= X-Received: by 2002:a1c:2ec4:: with SMTP id u187mr5883641wmu.188.1595545116395; Thu, 23 Jul 2020 15:58:36 -0700 (PDT) Received: from eldamar (80-218-24-251.dclient.hispeed.ch. [80.218.24.251]) by smtp.gmail.com with ESMTPSA id i8sm3490108wro.34.2020.07.23.15.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 15:58:35 -0700 (PDT) Date: Fri, 24 Jul 2020 00:58:34 +0200 From: Salvatore Bonaccorso To: Shuah Khan Cc: Antonio Borneo , Valentina Manea , Shuah Khan , Greg Kroah-Hartman , Hewenliang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] usbip: tools: fix build error for multiple definition Message-ID: <20200723225834.GA3733057@eldamar.local> References: <20200618000844.1048309-1-borneo.antonio@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 > > --- > > 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 As Debian (unstable) has switched to GCC 10 by default, we are biten by this. Patch looks good to me. Tested-by: Salvatore Bonaccorso Regards, Salvatore