Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp242227pxf; Wed, 10 Mar 2021 05:29:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJybM85cpIktK54FNyv+ioiw4BC0G68Bi2985tYRo/k+UpKzyxbPiudMeTl4oKgDp5SgLGtV X-Received: by 2002:a17:906:add7:: with SMTP id lb23mr3588352ejb.273.1615382952437; Wed, 10 Mar 2021 05:29:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615382952; cv=none; d=google.com; s=arc-20160816; b=XbaMApFSSAtYnkyX9GWzX5n2sokAw6qMSl/YbXnjuAs1CxTm/tP4W3KaN3ES3JewFY AjR+mQY2pzsVafBBsKXdrLaP3hEcFRwHg7GUsHsWsNmED0nZ+wY4pu/+37dUJlzlHVBj rzOfT+Q622F+Us4Q+MJMhdB1RPl2vTl8v7mzKjpTD3CJZcM+sqB+bdVGoMcXrIuceqMf Sv+cj3p3QPqyjNHSZYBnx0k0JaQsCUWluWOZImut/KaDFPw9kO9AQINho4RARrEdrR+u tF71b46OMJpHHEEHdfnPAN4UF8Ez46IXkjhtAVkjCYMHlrcQQohg3rzv188kLPYm5B0Q jk8Q== 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=AbgOjUTelEF7+AStJ5ZwXM7orjcr1433XgJaJNPXkULhZywC0S9eQwBdpRRa0yqSh4 pcxgbvFRcn4eJGn8ndCZDH2J4FFEpbTsW211r+S0rCS2KsxlLRfZrBW6BVHixW5/CoQQ /IGWLhMNU34hBsSZjg4JLuIprgMazR1XnGDhDnYevgfKLnVzHIloKyI7nY/NOqvmggHp phDsAVO7PHJUJL8p7hx6a7dScLLsqPBi59N1NlkqNjvvRPA9mi6AQua2Le84IvLE6XK9 Dz9nrbLjlcNfUUfl5LGeNB8UVFRFy3Z5TlvON5dIxeKKVlfhuEKlAEd0dXQ4GxNMG6c7 BefA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=CaScLUAu; 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 e13si4054601edz.432.2021.03.10.05.28.49; Wed, 10 Mar 2021 05:29:12 -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=CaScLUAu; 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 S234052AbhCJN2C (ORCPT + 99 others); Wed, 10 Mar 2021 08:28:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:46700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233231AbhCJNZI (ORCPT ); Wed, 10 Mar 2021 08:25:08 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8A3D764FF4; Wed, 10 Mar 2021 13:25:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382707; bh=RTubKmSeI2vbzOr6c61McxKmecNOPSUfeMLlOURJP5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaScLUAuIvEi0nF1Ucboi4y0AbKsMty+Fm2QYyGF1xicOvLhS0TONX7UcwBpmh74W mFdhUdvf/pocvo0n9U3Iywr9+TsBRuMmPFMdCKq+FnGceSJoW0TMbEpznhS2Vlkvn/ mBEPE55igYhS1A+JtRuR+plh5gLWiEuhbgkRIQtM= 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.19 09/39] usbip: tools: fix build error for multiple definition Date: Wed, 10 Mar 2021 14:24:17 +0100 Message-Id: <20210310132320.024567315@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132319.708237392@linuxfoundation.org> References: <20210310132319.708237392@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) {