Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1670597ybb; Sat, 11 Apr 2020 08:57:25 -0700 (PDT) X-Google-Smtp-Source: APiQypI4hIpMTQ3439zxOHCVYSYSLGYejyVBPgIbxjkNSKtbhsQIC8V2iAIiPaiaEnjiBmmEkV7e X-Received: by 2002:ac8:4f11:: with SMTP id b17mr4126381qte.181.1586620644948; Sat, 11 Apr 2020 08:57:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586620644; cv=none; d=google.com; s=arc-20160816; b=DfmVZYWouKuP+dAaYiN+EhVt7Z/43ZXkUyEfV3y2/6cDVrWv9U9znT1xS4pw+xfl2J BN1G4VnCjw9NR3vl55B5uL6v4Yd2QWLwCZIiUFjIEIO6NUiq69glHH4LMhg4/dvAuj1s DdfavVAFLeaN7Q+iPSU+ZIdvUzyrCKralNuxjjxdDzk2YJVkIUHrtLygggbDZ4zCwjzc up76AzwbHuVcPHcJEOgAnwsrxt85INOA1j2F7gMTVG7sGYspEPUzNZrLUVMjiu7erRnr EJsGOaanEdeq8s4IgQb+YlQK0s9LxyyGcyc+gzVArtSRf37rFh3kRaZrRA7zwbXppzep SXWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=0QgKfyD3UcjRgzIwSEmTFwH1FvRCThOAFzQ5S67+qsI=; b=kj0b62LfeBhzcoz84yLyKRoFVtQmgdszG2kCEwk1waW01QIF17b2aiJZ18z6aP9bjM J52yKpysugLJGf6nAfN8kyh0vDm4caTB5TSyRfEKISPa/wdQ242rWes4y0yS8Ql278tB cuJgNzTT9r+Be0B/cJHR2I8ysGv/yByhyU7HhVvEctDbzSlhfn8hGOFXd/hZegqgXwEn 1FkIA+2D3xBRemBRstGWWG+QVvn9s8nou60Iy3crqUguUAcDM8ms4KtvYOFn6xlzJHMg gI8R8trVOD4jv0uMa4Pezs80U5H4d0QexYtSL2IXDNwUGICoA4bffglfSChCxnntMlpt +4/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=olq7daV2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r56si2912803qtk.368.2020.04.11.08.57.10; Sat, 11 Apr 2020 08:57:24 -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=@alien8.de header.s=dkim header.b=olq7daV2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726256AbgDKP4a (ORCPT + 99 others); Sat, 11 Apr 2020 11:56:30 -0400 Received: from mail.skyhub.de ([5.9.137.197]:49344 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726054AbgDKP4a (ORCPT ); Sat, 11 Apr 2020 11:56:30 -0400 Received: from zn.tnic (p200300EC2F1EE2004DDA4FC6A7F1C076.dip0.t-ipconnect.de [IPv6:2003:ec:2f1e:e200:4dda:4fc6:a7f1:c076]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 404AB1EC085F; Sat, 11 Apr 2020 17:56:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1586620589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=0QgKfyD3UcjRgzIwSEmTFwH1FvRCThOAFzQ5S67+qsI=; b=olq7daV2ItKU/slSpda7p8nzWckB9HYez1JCJ44uiLmdHYcn/3sb1KyxX0N4bSYLkeByEc tJIDbMt8m1/bjY7Pw0bZ4MMIIVKiNkPj1a+NKhcxS+2lDfEnuIHXkBiWRUKxiT0XVVWQPq DrnfQ0kcqIextkY2FMCiztRhZDUYQUs= Date: Sat, 11 Apr 2020 17:56:23 +0200 From: Borislav Petkov To: Leon Romanovsky , "David S. Miller" , Jakub Kicinski Cc: Leon Romanovsky , Tom Lendacky , Keyur Chudgar , Don Fry , Veaceslav Falico , Jay Vosburgh , linux-acenic@sunsite.dk, Maxime Ripard , Heiko Stuebner , Mark Einon , Chris Snook , linux-rockchip@lists.infradead.org, Iyappan Subramanian , Igor Russkikh , David Dillow , Netanel Belgazal , Quan Nguyen , Jay Cliburn , Lino Sanfilippo , linux-arm-kernel@lists.infradead.org, Andreas Larsson , Andy Gospodarek , netdev@vger.kernel.org, Thor Thayer , linux-kernel@vger.kernel.org, Ion Badulescu , Arthur Kiyanovski , Jes Sorensen , nios2-dev@lists.rocketboards.org, Chen-Yu Tsai Subject: [PATCH] net/3com/3c515: Fix MODULE_ARCH_VERMAGIC redefinition Message-ID: <20200411155623.GA22175@zn.tnic> References: <20200224085311.460338-1-leon@kernel.org> <20200224085311.460338-4-leon@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200224085311.460338-4-leon@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Change the include order so that MODULE_ARCH_VERMAGIC from the arch header arch/x86/include/asm/module.h gets used instead of the fallback from include/linux/vermagic.h and thus fix: In file included from ./include/linux/module.h:30, from drivers/net/ethernet/3com/3c515.c:56: ./arch/x86/include/asm/module.h:73: warning: "MODULE_ARCH_VERMAGIC" redefined 73 | # define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY | In file included from drivers/net/ethernet/3com/3c515.c:25: ./include/linux/vermagic.h:28: note: this is the location of the previous definition 28 | #define MODULE_ARCH_VERMAGIC "" | Fixes: 6bba2e89a88c ("net/3com: Delete driver and module versions from 3com drivers") Signed-off-by: Borislav Petkov --- drivers/net/ethernet/3com/3c515.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/3com/3c515.c b/drivers/net/ethernet/3com/3c515.c index 90312fcd6319..cdceef891dbd 100644 --- a/drivers/net/ethernet/3com/3c515.c +++ b/drivers/net/ethernet/3com/3c515.c @@ -22,7 +22,6 @@ */ -#include #define DRV_NAME "3c515" #define CORKSCREW 1 @@ -67,6 +66,7 @@ static int max_interrupt_work = 20; #include #include #include +#include #include #include -- 2.21.0 -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette