Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1763170ybb; Sat, 11 Apr 2020 11:13:49 -0700 (PDT) X-Google-Smtp-Source: APiQypLJaB/2wCNiTYDSo69ILE/p/o4gedvDQn1Ayf/ShMa+j1yJBpQ2iSQNm4DSGFOkgCfM22bX X-Received: by 2002:a05:6214:164c:: with SMTP id f12mr7714503qvw.181.1586628829263; Sat, 11 Apr 2020 11:13:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586628829; cv=none; d=google.com; s=arc-20160816; b=KExM9OwlM6BsUmgZcq4U0mK5tT4JAzgCXAUMqWGEPbSyGBivPoD3+/O0NDS7xMHnIV eddeEeA57KMvRq0kbeth6YBJ8CjGqrtOOyqRTboGEZz2lRHmjpPLgSIROPbFY1iqSq36 OtbQp+qhajYFEippfXMVdbf8p56X7OCyxsJSfC7qKSBn5uls9QaQQXoNpj7jHDlfr1T2 H2Rlb5Z9TJb7f39kecxQJSSR2eVynpdiRaYDkSnzdckLGhKKtJF9owrUGBC/pGwLKmWP H7dToMMD50Vk4/vsF0Eo9nXH0IXqiYRWqfZUXY2xxODM+49UIAPWS57VhnzzQ6pwI3fG YvGA== 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=PPI3Yr+FMIeQ75JUmUjZhbYuCRP6KecsxYk6JBEsJnk=; b=sPEAykjKX+nh3z6t6AVrb3gaUz7RhpW/8FTifpuDi0i8v1AJTOtl8phicsdUN4adwe gJedssvXxARc3cHQP4460f8/Dyg4QUOwCWSCQoiF2FMz7BLA4k3cVnnPTmZ9TGcBf6AS Plpp5l58WDNOJkle+wAnmaQP2wC+LDPLYqfM3KJgcfC7OHBbYx5THB+Udw2LrnlhGkD5 4GacSCCH8AfV4DHylC0D5uljKE1aRvLuOYJoSCEIqlV1a9cUsXnZzNHY3QpcO8BMgBpE 2NPvVXkcsorPw+oVy8GbsMcXpxaLZj6Gke9SIKMa5r7UCgyingh24KF4K0KsMPxE1oTv m3TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dcNVzinV; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si2615018qkm.158.2020.04.11.11.13.34; Sat, 11 Apr 2020 11:13:49 -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=dcNVzinV; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgDKSKV (ORCPT + 99 others); Sat, 11 Apr 2020 14:10:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:41288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726167AbgDKSKV (ORCPT ); Sat, 11 Apr 2020 14:10:21 -0400 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 E1AE420732; Sat, 11 Apr 2020 18:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586628620; bh=cR0eHiEhVEU/CYCz8ttOIHBrqvYs0p6ey3Uw55qOSGo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dcNVzinV8moP+fO5RfqQizJEQ1Fo5MA/EWcPhgl3anCgpKoqChGaQQMh6g6lxD8Zu U4Uz5GI9QK6vrVpGwcn3HSXE+MfBDWSMFeD7yfpw5OsGv/2b1L7VjOahk8qLWPZWwn jvyrMweq0NnBZhQyYqoGjPPwE0zfMs2kGVTNuapw= Date: Sat, 11 Apr 2020 21:10:15 +0300 From: Leon Romanovsky To: Borislav Petkov Cc: "David S. Miller" , Jakub Kicinski , 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: Re: [PATCH] net/3com/3c515: Fix MODULE_ARCH_VERMAGIC redefinition Message-ID: <20200411181015.GC200683@unreal> References: <20200224085311.460338-1-leon@kernel.org> <20200224085311.460338-4-leon@kernel.org> <20200411155623.GA22175@zn.tnic> <20200411161156.GA200683@unreal> <20200411173504.GA11128@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200411173504.GA11128@zn.tnic> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 11, 2020 at 07:35:04PM +0200, Borislav Petkov wrote: > On Sat, Apr 11, 2020 at 07:11:56PM +0300, Leon Romanovsky wrote: > > Probably, this is the right change, but I have a feeling that the right > > solution will be inside headers itself. It is a little bit strange that > > both very common kernel headers like module.h and vermagic.h are location > > dependant. > > Judging by how only a couple of net drivers include vermagic.h directly, > doh, of course: > > diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c > index b762176a1406..139d0120f511 100644 > --- a/drivers/net/ethernet/3com/3c509.c > +++ b/drivers/net/ethernet/3com/3c509.c > @@ -85,7 +85,6 @@ > #include > #include > #include > -#include > > #include > #include > diff --git a/drivers/net/ethernet/3com/3c515.c b/drivers/net/ethernet/3com/3c515.c > index 90312fcd6319..47b4215bb93b 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 > > --- > > Drivers include > > #include > > which includes > > #include > > which defines the arch-specific MODULE_ARCH_VERMAGIC. > > Why did you need to include vermagic.h directly? i386 builds fine with > the vermagic.h includes removed or was it some other arches which needed > it? I want to think that it was an outcome of some 0-day kbuild report, but I am not sure about that anymore [1]. Thanks [1] https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org/ > > Thx. > > -- > Regards/Gruss, > Boris. > > https://people.kernel.org/tglx/notes-about-netiquette