Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp243236pxf; Wed, 10 Mar 2021 05:30:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJxY37qSirwbL6XUrF8qSumrOV+eZnG/wYGdHifIDhWwGFTgGh57evDMiZfMPoS6r6rQIc72 X-Received: by 2002:a17:906:9243:: with SMTP id c3mr3800193ejx.388.1615383041325; Wed, 10 Mar 2021 05:30:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615383041; cv=none; d=google.com; s=arc-20160816; b=maCFy4lAkavXfhws2DQ9uvkd6N/5cWw50M+uS7cy6wxRbpygSc5k2WQWm6gVvzfgDM cvL+eFTx+P4h3e1LKYZ4B1zyKR5qq4pl59+2+4p8Hvcc3tbO4/P6YploqQHCTXXZixFK h172Y2CNDJYjHronL0qIWK5Sj5+eH3PQBpvKJNFbPzk6+BqDMfMwJ0EhjG1XH3ZZrZyD OIAiBXlGnOjUwmXsfj+VjfjFtpJXlqSjSfIJYbbFh9/Mb+BoumD/pFYRQdLnd1VtyR10 /nwnoiMky1ZC+HD0V0gkHUrTrFSCJxvwj+NJzATHVjeKQxO40OUoMtn/6JkZkJ6T15FA LD+A== 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=RzrjlJk3+ASG6wr0jUNQjzU5R69qSHUGg5pATaBakkppXnCiFoI/zySi4zGukb+xqK kJ4vBCVywHOjKwJ4FqHyC5f3VWD32VhYdK8YB9snBtQ2OSXSE8nxUUCfdSdr9ER7B755 bghDbLGqlOGsu3DQ/UTDTnL0L/fTlUaD7ijZWOc8oTCg9HVmntdLHBry03Hw+a4icweA gV71yBT+hdlBEWBmjQ08v9wyNbeOhmEiSVYs7we6lluFS8x/+xnw9HJi+iknw+tHDqFb 5jz3WwlYCuB8k5L28lEVkaEOv0JU4rXorwemtmHWVkVZaVgpiq1e0IrKsk1DH+cLU39j a7CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1swo4yJF; 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 hq7si11551978ejc.300.2021.03.10.05.30.18; Wed, 10 Mar 2021 05:30:41 -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=1swo4yJF; 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 S234087AbhCJN3S (ORCPT + 99 others); Wed, 10 Mar 2021 08:29:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:48000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233312AbhCJNZV (ORCPT ); Wed, 10 Mar 2021 08:25:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9417B65030; Wed, 10 Mar 2021 13:25:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615382720; bh=RTubKmSeI2vbzOr6c61McxKmecNOPSUfeMLlOURJP5g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1swo4yJFtVGxdKzksycB24b2P9qUmcsk4X61du/PAoaMweSYP+1b1WF+A1RlK7/+0 G0YyGFYcBEJZW0hgZ2DvaiHGY8r+gg0LQi5QiqjenOyTrnX55Es9PDTzo/AiE55XgZ HXb8jPPS784wbSU6aFN5Psn6rKJ7Ew3gO9EENAXg= 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.9 03/11] usbip: tools: fix build error for multiple definition Date: Wed, 10 Mar 2021 14:25:02 +0100 Message-Id: <20210310132320.498616113@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210310132320.393957501@linuxfoundation.org> References: <20210310132320.393957501@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) {