Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3161177ybb; Mon, 13 Apr 2020 01:58:09 -0700 (PDT) X-Google-Smtp-Source: APiQypJksdgolSdTg5o+YJeWajXMK4Virves5hauY3vBiQRi03eGaKJWJ4AkGGprx/39ERLC/KBZ X-Received: by 2002:a05:6402:7d0:: with SMTP id u16mr15722097edy.259.1586768289525; Mon, 13 Apr 2020 01:58:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586768289; cv=none; d=google.com; s=arc-20160816; b=kXv1fJ7eVOZiqQ2elFkt0BPBCmVXT9pEeL9vSMYAWGt9xneq1IdrqdgWN2H6pIQYFq RIfEyucy+DdP2AHS46TOV94Tj3LqHo3yn/6keuDpDdc2megqc53pfBM6fE8jHwjPW/VH UqeiYudOnlL0oXsFaO8QOD5/8FfYPrkfhGImMlp0qYwTcMsFKQH3gmKub9f42G3pKcS6 narJJlzi+zStQebaTkIf7wml6JUuPip3bFmFbARR6y9AWAOxjlPxKxF2/oHVUqWErciC gMsxi8Kzc9zl6Nqqb7YtBN8c1xS3RO7/VsOsWptPzip1uX6EGvpOmDDa72cIhcPam+dH L+Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gs6/0ZeWBTsTqp5CrbC1h9AhpJtITYuqvcC41bm9J6w=; b=s74/bLR5mc7zTja9bSqWnnGBxIbr2MaXfr69ciYFmBrkn0GEGcfAplvCY9ZZYsfEo2 +4kW/0sO7TuAZXpwDLOnIIbb7lyGeMGfPY8KMppclBVz63myOH6/rZoljz0tptwb8arx fpdk/ehSjfgujn30YwS7zluKrzFQYDQGbsafKHQLZ0ADKG5P3pRD1bhu7tkd5u57nuQ+ fCOfvEx/nZqMV671+eP78jmkJQjUI77WdP+L6IZWRgdYSu7j9lKzKTaFaGWnsYZq+LoA TE1XMyw6guBR1aMWTCWP0QfB+IZSQmLXC8je5dfa2B5QUx6HMuGTAjSWuxEia1aHnZfI vjLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Dea8uqwi; spf=pass (google.com: best guess record for 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y3si6141082edr.469.2020.04.13.01.57.46; Mon, 13 Apr 2020 01:58:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@kernel.org header.s=default header.b=Dea8uqwi; spf=pass (google.com: best guess record for 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728928AbgDMFgh (ORCPT + 99 others); Mon, 13 Apr 2020 01:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.18]:41866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbgDMFgh (ORCPT ); Mon, 13 Apr 2020 01:36:37 -0400 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89CE0C008678; Sun, 12 Apr 2020 22:26:41 -0700 (PDT) Received: from localhost (unknown [213.57.247.131]) (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 5AC4F20731; Mon, 13 Apr 2020 05:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586755601; bh=RDuc7TIH8NRC/WbymybrwwHyUdyFCCD5uyjfOff9Eag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dea8uqwiyJyiKbRypdML2SpeLc3PwNMe9X33+CmisXEPPv7uHhQti1XqpZRzkKFgG vK7h/gWUwgtWfGRW1UWfmZ6uWAjuXXz6qpt2cZv/auuG8rRJ09ce2lO/MCKTGYcQ7c jxZ0OgwkD3WWTSZsYwX3r0X4ox3HO+c3xUq5M+qM= Date: Mon, 13 Apr 2020 08:26:37 +0300 From: Leon Romanovsky To: David Miller Cc: bp@alien8.de, kuba@kernel.org, thomas.lendacky@amd.com, keyur@os.amperecomputing.com, pcnet32@frontier.com, vfalico@gmail.com, j.vosburgh@gmail.com, linux-acenic@sunsite.dk, mripard@kernel.org, heiko@sntech.de, mark.einon@gmail.com, chris.snook@gmail.com, linux-rockchip@lists.infradead.org, iyappan@os.amperecomputing.com, irusskikh@marvell.com, dave@thedillows.org, netanel@amazon.com, quan@os.amperecomputing.com, jcliburn@gmail.com, LinoSanfilippo@gmx.de, linux-arm-kernel@lists.infradead.org, andreas@gaisler.com, andy@greyhouse.net, netdev@vger.kernel.org, thor.thayer@linux.intel.com, linux-kernel@vger.kernel.org, ionut@badula.org, akiyano@amazon.com, jes@trained-monkey.org, nios2-dev@lists.rocketboards.org, wens@csie.org Subject: Re: [PATCH] net/3com/3c515: Fix MODULE_ARCH_VERMAGIC redefinition Message-ID: <20200413052637.GG334007@unreal> References: <20200411155623.GA22175@zn.tnic> <20200412.210341.1711540878857604145.davem@davemloft.net> <20200413045555.GE334007@unreal> <20200412.220739.516022706077351913.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200412.220739.516022706077351913.davem@davemloft.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 12, 2020 at 10:07:39PM -0700, David Miller wrote: > From: Leon Romanovsky > Date: Mon, 13 Apr 2020 07:55:55 +0300 > > > On Sun, Apr 12, 2020 at 09:03:41PM -0700, David Miller wrote: > >> From: Borislav Petkov > >> Date: Sat, 11 Apr 2020 17:56:23 +0200 > >> > >> > 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 > >> > >> I'm so confused, that commit in the Fixes: tag is _removing_ code but adding > >> new #include directives?!?! > >> > >> Is vermagic.h really needed in these files? > > > > You are completely right, it is not needed at all in those files. > > Ok let's just remove it to fix this. Thanks a lot. How do you want us to handle it? Boris resend, me to send, you to fix? Thanks