Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2234444ybi; Thu, 20 Jun 2019 11:19:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTd2m5U6KV7rqkIrrKyOiqdOgKHElaO4rK3+HYfLzsOorOs6EkRcwbN+JPqwh4jEPo5Vql X-Received: by 2002:a63:c106:: with SMTP id w6mr14127755pgf.422.1561054782909; Thu, 20 Jun 2019 11:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054782; cv=none; d=google.com; s=arc-20160816; b=u06KIVMRbsjlXPGykb2fqvTvkrCPn6zVVdc3k+J3T/vTs/9+wv4RabYwqLG5zC8w2U zMx4Svbk7JABAEHjQxDoNpudPzsDnpA5Yhzv+gDSV2su6FUKvJ30yVjP6P0l1nYivvOq /mPRHaUoKPPBMuiZ1YUWt2jjJ3gThhkzq09jSt0x06r/TZjwCLGwH8opmvnlDBL+UNAF XTN61zykT5OlAO4H04I5xmw/WFcmSbi3j7v327jLuAzxN9/l2y6ILuiSFxo42VYhT3EG +X0rszcjGcbsmOICeFtHK+k7jY6iIZuXQaddB6T+jEsqO5LcduLGIG+x7NjYPlfkBFut pDpg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hQ4LZ58w6mr/gL3V55i/yPEZT5hzACg5133Z9KrWT1g=; b=dOBek9SiXUdb0evyAwmuFdB/vCDR9NiGNlH89siktzQ9igFCdScJzqEtbLz89456jD epxlifUve7vV2GJfr7GqepWxK+ocC12djqUs2GRLUm+LFOjhD3PmOWZyr7HsXHi9HB8g JKt1uRoamdgrYyZmNf+iYZChnrRq0v9y7cjWTjD0GHJPpc48wg0ZOmRys7jZcpEH2FeA 4iQ2R1sUGokHlnvhuuY6ALZUCyuc1hlV8I7XHpeoG/8idwaFtW4dDalZAaRoFYCypLDd iQb8yxLJY3YcdfIbOvfLw6cvSQOj8Bl3q60Pqfpykrr8ucAlAvXgFD9ZuTo0rzwfap4B poVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f9TcHvos; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u23si148047pfh.177.2019.06.20.11.19.27; Thu, 20 Jun 2019 11:19:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f9TcHvos; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729114AbfFTSPY (ORCPT + 99 others); Thu, 20 Jun 2019 14:15:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:44090 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729582AbfFTSPW (ORCPT ); Thu, 20 Jun 2019 14:15:22 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 698F2205F4; Thu, 20 Jun 2019 18:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054521; bh=bvDOhLS2kF6GV1MDOs5xagA3VZMecFnAsJu3rPT1kOE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=f9TcHvosoIsfIT/GhhCDPM4R0sISyc1DyeYSYoDnPBeN/gn/hVJqbRsEHCx8lEG58 88twQxkgSR1GKO6Oi+lmpcoaPnbZIQx/OmSIDrR3efRb6Jysj1PT+Ji3yVvBdxD8Q9 Rq4bybfqsW8C+2tFNqK9FWMNBNvq/XVLF5HeBmcc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kees Cook , "David S. Miller" , Sasha Levin Subject: [PATCH 5.1 58/98] net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE() Date: Thu, 20 Jun 2019 19:57:25 +0200 Message-Id: <20190620174351.985424434@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 3e66b7cc50ef921121babc91487e1fb98af1ba6e ] Building with Clang reports the redundant use of MODULE_DEVICE_TABLE(): drivers/net/ethernet/dec/tulip/de4x5.c:2110:1: error: redefinition of '__mod_eisa__de4x5_eisa_ids_device_table' MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids); ^ ./include/linux/module.h:229:21: note: expanded from macro 'MODULE_DEVICE_TABLE' extern typeof(name) __mod_##type##__##name##_device_table \ ^ :90:1: note: expanded from here __mod_eisa__de4x5_eisa_ids_device_table ^ drivers/net/ethernet/dec/tulip/de4x5.c:2100:1: note: previous definition is here MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids); ^ ./include/linux/module.h:229:21: note: expanded from macro 'MODULE_DEVICE_TABLE' extern typeof(name) __mod_##type##__##name##_device_table \ ^ :85:1: note: expanded from here __mod_eisa__de4x5_eisa_ids_device_table ^ This drops the one further from the table definition to match the common use of MODULE_DEVICE_TABLE(). Fixes: 07563c711fbc ("EISA bus MODALIAS attributes support") Signed-off-by: Kees Cook Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/dec/tulip/de4x5.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c index 66535d1653f6..f16853c3c851 100644 --- a/drivers/net/ethernet/dec/tulip/de4x5.c +++ b/drivers/net/ethernet/dec/tulip/de4x5.c @@ -2107,7 +2107,6 @@ static struct eisa_driver de4x5_eisa_driver = { .remove = de4x5_eisa_remove, } }; -MODULE_DEVICE_TABLE(eisa, de4x5_eisa_ids); #endif #ifdef CONFIG_PCI -- 2.20.1