Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp896688ybt; Wed, 17 Jun 2020 17:14:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD8p4N4A9+1ox2a9MF242YJb4KXSS2G65n+XDPyLRyG4ujiCY8EYY84v4DHcdpx7t3hq4u X-Received: by 2002:a17:906:2dc7:: with SMTP id h7mr1598697eji.15.1592439251308; Wed, 17 Jun 2020 17:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592439251; cv=none; d=google.com; s=arc-20160816; b=hiWzlQ4FJdraDteAnowGZG/IbAouU3bIn5iFxZ0+5tnTAdB0DG2tA/yDF75gqNEdWC YELa+5HC5hqLGDuB+wG0idMnRvuTc+XlY5kB9cczqjj1AgoE0iLi126AkbfopeHaNI5k rJPpIdPOQSQX4EAgV8vkFKRaC+TfKB4KtsBJFKonENMHVCGX7qxy8lvEJjwXecgzEaOo AuxI0NDp2CzxiIa4n3G23UIU+wCgnOpIx1QgUn8WFgAPLx8u5xpgcLKtFpqy6NhpBGdh OgCSDpm29fvGH2M7vGHnnDeoIBNYbfrgWMIgwH0alPXxu54dMemfUjkN5yiPG+baJNyx st2Q== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7inzO9UP28E4HK5AwcA3raikK65alSD3oW0aeo5vJ8Q=; b=QPvdiKHtVbk3hdPSBwuQ3zqXvSc+GPUOQLym97hW7uV8j288n+YbH021WBm79WL+SP 819Hi/dUJiRKJ3x2mHg/ufREsoSn2/2SmuU5dlhO1+SPapZOMkSlG0Z7Bh+0jfqsIWmk oOGVMJXPavW1OnLzZijED2DAjtNfqHTd/eEDkbgk2+dfX/0fcdk3zZFIUyKZUckiUNQv y3MfZQamhBuRoOqcvKWRflviuQ8VlI2bFjJjrWpgJPPMC32jAxt5ztvn9upQtgHLg5KX 5+ib5RPDdgfgt4FBdB9me+OhhkPewz1QSWcrgeSMcIeevve5bpeLIGZv58hC+zLKpN6c 4d4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VQgK0Voi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si820405eje.711.2020.06.17.17.13.48; Wed, 17 Jun 2020 17:14:11 -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=@gmail.com header.s=20161025 header.b=VQgK0Voi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbgFRAKA (ORCPT + 99 others); Wed, 17 Jun 2020 20:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbgFRAJ7 (ORCPT ); Wed, 17 Jun 2020 20:09:59 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBAA3C061755; Wed, 17 Jun 2020 17:09:58 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id b6so4165918wrs.11; Wed, 17 Jun 2020 17:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7inzO9UP28E4HK5AwcA3raikK65alSD3oW0aeo5vJ8Q=; b=VQgK0Voi5Rd+VMD1G1he8kf1cq2/l1jlOntXtu5XYIEhnk1vvRF9HZ4jkEtWL8ZOPr wr+KlOAc60I9RfiEUIfB2VD8ASwSpk7y6lxYbMIqS2OUyOORj4SjrZ0ph4b8QW46xjE+ avINlHybFMgc1r823bjndK4AyxEyxX1scwBj25QC+d3Qvw/S2bo7w54jQj2jjjMGiOOK YwsNa5crWyVT9Of0vIjrEQF5MTCEvp7r/iMwOSBHnFJk6+El6bWqTkUxzAluQS12mJ9i UEXknWnJlQskZpmnC2lfkF2Y1znSSw2aNn4j5nFOu3DrhhEH0ESqMs9KGnlbldMHAa8s iicQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7inzO9UP28E4HK5AwcA3raikK65alSD3oW0aeo5vJ8Q=; b=fWwC/JfkeqQZnk8yYm87zSrwAm4cibAwIVoh0/nry5SooxzzPh8QVSjpTcC02FDyYd 2NYM0QT75W7nor74WLIrfHmMprCqOHUYm2Ekl3yTWy82x3Oj5P0EjG0Q8qEY8hK+dCy4 P2EMwDpU5xlUEb9HMtxTrlSqxCIUaCqfZFayoAHG/rcOouIisOOs3CGv8YM7DNFWDxaI Rs2wzszKlcDR/qwUZACro/6LTwvTguFTkPkWRvE7VThVMJBrxz4UcBuGY/HrfFebQCTB 7aSEI/bsb35tZQzTqSFsElBJSnKPJegeAwA8kU2iDB0W907rZlECjZCxRZ+n5P1AIHXq 1Yxg== X-Gm-Message-State: AOAM530IdaPUGQz9Y5udZY8JJEcqcQkWtrcLn+VCFymMs1uGIz6Gsra+ IRUlyB+RsUB02EIuYxEen5g= X-Received: by 2002:adf:e749:: with SMTP id c9mr1844369wrn.25.1592438997519; Wed, 17 Jun 2020 17:09:57 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:4cc:a210:8e70:5aff:fe7e:da0a]) by smtp.gmail.com with ESMTPSA id h203sm905252wme.37.2020.06.17.17.09.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jun 2020 17:09:57 -0700 (PDT) From: Antonio Borneo To: Valentina Manea , Shuah Khan , Greg Kroah-Hartman , Hewenliang , linux-usb@vger.kernel.org Cc: Antonio Borneo , linux-kernel@vger.kernel.org Subject: [PATCH] usbip: tools: fix build error for multiple definition Date: Thu, 18 Jun 2020 02:08:44 +0200 Message-Id: <20200618000844.1048309-1-borneo.antonio@gmail.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) { -- 2.27.0