Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp242298pxf; Wed, 10 Mar 2021 05:29:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkHcS2B5GplcYdRQSjsK6/VAVXepskQeKdxHigevK/zSAkU81KkUDHMsCyHKu3eT78BFyT X-Received: by 2002:a17:906:c1ca:: with SMTP id bw10mr3687452ejb.510.1615382958103; Wed, 10 Mar 2021 05:29:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382958; cv=none; d=google.com; s=arc-20160816; b=0M3ERgNwqPb6I+D2amo46AuZ2CvNApl4IFMcD45df3sP0pSuPqeVEy2QY5CYcPeQZ4 gPLwUmHEGpnZhWUwNdmTeM8gFb8IFHstGy7ZQnzy32iYLtHT87vSZuBsRP59DY2lLzHQ QP0p/lOScjyZ7GM1eyLcL2SjOJw914exFSOQ0cjyFqwk8spnwNoHfvyHfsM54AXzgtO8 chv4LWZqOsKItgDNjVZioDLtmEQOPgjxhO0bOIfmfYHku3sRV6XL5TJkN9HKmLDNg3BA fyYltXmkxwxbVc0v0gy9HkUqSF0ZWazjz3aQJeAk1dUUWbRZmzwjqc57q+lsspLYk8k7 fUIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kiSBIpqoqcw//690uLJ/lXvr0E/Bp+n/BH+HqqfzqJM=; b=tc8IgRcDqfqYQ9foGpU89jUKqV1b4GQTxvUrdJm2E9s9yMJN5IYh5hLQI0W6kCeHBB mPLZ8J7byeLymOKrwEoRsWObi53QwiBluXxiiZDoUMyYEFLMYu7QVxpZ6d6n/SLiRK6O jNTM10KBxezM3O+hd0HXj2wzPjm9CwBNmYCosPpYVoTRDmoj+DWUK93MOeMi/QSbTTPf WZ5+M0VeMhjMLjTIwPeyKldkoWo9XopZLcDHGpBI7zIntHyzoqTQ/hx7xUkGSOOuoCzG IvVoVF3qnELVB44Fo9iP6+mqBOXDRY1JwZhekxUEiZ0okSRzAUIR7NPpAIgPOwGHjAxX 9HQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UcjybmeU; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yj20si9593236ejb.318.2021.03.10.05.28.55; Wed, 10 Mar 2021 05:29:18 -0800 (PST) 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=korg header.b=UcjybmeU; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234134AbhCJN2N (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:46746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233237AbhCJNZJ (ORCPT ); Wed, 10 Mar 2021 08:25:09 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id A693B64FEE; Wed, 10 Mar 2021 13:25:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382708; bh=RTubKmSeI2vbzOr6c61McxKmecNOPSUfeMLlOURJP5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UcjybmeU6jpSIsaL9kANUzt6QlzaxMKBYsCWTgsugtLZzKnWxh3fwB9MZIEdJhWq/ sQ4gt0Lm2RGE4qRGLCNWoO0+2HOOFrimjFD4PdbKl/MFy+4OuoV3TzFu0FDbnKdvM4 vvenXPnRBE0i1tdhFfJkJk3lmTYnJKslXb/zZ8yQ= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Antonio Borneo , Shuah Khan , =?UTF-8?q?Petr=20=C5=A0tetiar?= Subject: [PATCH 4.14 04/20] usbip: tools: fix build error for multiple definition Date: Wed, 10 Mar 2021 14:24:41 +0100 Message-Id: <20210310132320.655383688@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.512307035@linuxfoundation.org> References: <20210310132320.512307035@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Antonio Borneo commit d5efc2e6b98fe661dbd8dd0d5d5bfb961728e57a upstream. 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 Acked-by: Shuah Khan Link: https://lore.kernel.org/r/20200618000844.1048309-1-borneo.antonio@gmail.com Cc: Petr Štetiar Signed-off-by: Greg Kroah-Hartman --- tools/usb/usbip/libsrc/usbip_host_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/usb/usbip/libsrc/usbip_host_common.c +++ b/tools/usb/usbip/libsrc/usbip_host_common.c @@ -35,7 +35,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) {