Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1738755ybb; Sat, 11 Apr 2020 10:36:02 -0700 (PDT) X-Google-Smtp-Source: APiQypIMBnNl2GlzesbgqNWYDkwTTsG4eJMk8ZSvaLs4NR0ZzAqtq8xGMujmMkpkk8cb7RfetfyG X-Received: by 2002:a37:bc81:: with SMTP id m123mr9146569qkf.319.1586626562256; Sat, 11 Apr 2020 10:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586626562; cv=none; d=google.com; s=arc-20160816; b=cavjh08a+/1unIfU9s81JrsoZbp0T+jhyxaH6GE2ySLUUiWCiAMufmZKXwWPLldUb/ IYFpVO86R9+Ex34k2SaaoWvw6N3DSNHrQZt3/rLPqVvg8ayu5nn0EmoYuIcCjWPyvqcw PcliBjW94t4qkPJiDLkW2DyITnfpYL2ni6eUcsU1n92k9GVknkjtcppHH3zbERHLllCh EqfdOWNjz1mRowf+WjL3KL53wv9lnEWfw+DXfNipLwK+PaynKwFcvYPE+bS0J/Wl7uTl 7wLvOTkwVEDp08F7WJf6frBHINzZpoDZxRTjUfLVcIDBJeE8RQQOebPqpbQa7KqzWrpT 3yVA== 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=tITpXAEx0ZKBxrGmf7qRgeBQo5VORL0f/hlXJ7f6wlY=; b=Qg2g2gyMyM+mhAJ1+brCE3waMPknRRcO8b+Envg4qDlz5VilaiVH8PhQHTwQBl+CZt O6/TxoTriLjRAn/rssfT7xO3zzNvI9MmwECOYb/TD44oUkSafzbnNACiCOeCn/BzS9g+ wy5kWftIRdWZzDcJYJohzWXejeDrAn6HsJuxQrvTn8I3YXv1uXJCpm3PTXZfdUeQgFbV LNwQTmp1eWai3mwA07qj2tJYhDewZTAQab/5jkhT39xiVxyioyRFMiUdKB2Eu7+xyPDN Uc0a+TzxEB4njhRonLqZGJqvrOMWU4i4RuzEwZ5N0ONNG22FU2l82wLCACiQUpDIfJqE 9qxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=lXfwEK6t; 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 k27si3080612qta.354.2020.04.11.10.35.47; Sat, 11 Apr 2020 10:36:02 -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=lXfwEK6t; 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 S1726663AbgDKRfK (ORCPT + 99 others); Sat, 11 Apr 2020 13:35:10 -0400 Received: from mail.skyhub.de ([5.9.137.197]:34474 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbgDKRfK (ORCPT ); Sat, 11 Apr 2020 13:35:10 -0400 Received: from zn.tnic (p200300EC2F1EE200B53534244D96C31E.dip0.t-ipconnect.de [IPv6:2003:ec:2f1e:e200:b535:3424:4d96:c31e]) (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 6FF401EC0C50; Sat, 11 Apr 2020 19:35:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1586626509; 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=tITpXAEx0ZKBxrGmf7qRgeBQo5VORL0f/hlXJ7f6wlY=; b=lXfwEK6tpAvogvK08CzhUk18RhPgc4bf31WSPpPGihBfqj7p1woHl+SjSfJYSQq1TNfqjX 93NZz9vz6cMvuQ5PC+o8RNh1K+LWrIw/nOz0CHsgOm+9m3easHVSCjfGpvQJ5TJXzKngQm VR2UNFA8qiZWsCaapTt+JMhPi4I1LBY= Date: Sat, 11 Apr 2020 19:35:04 +0200 From: Borislav Petkov To: Leon Romanovsky 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: <20200411173504.GA11128@zn.tnic> References: <20200224085311.460338-1-leon@kernel.org> <20200224085311.460338-4-leon@kernel.org> <20200411155623.GA22175@zn.tnic> <20200411161156.GA200683@unreal> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200411161156.GA200683@unreal> 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 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? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette