From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from wfout6-smtp.messagingengine.com (wfout6-smtp.messagingengine.com [64.147.123.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1CAC51031; Thu, 30 May 2024 18:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.149 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717095178; cv=none; b=E50zeI/Ph+HXv2XsaCPFIiLG5HlPgrHKcJcZUxwIeRxa8qQ3IOskgdGYlWtd9N0FE83Gmt0rJZeuBGaB/5IpOl9Yj5GbFNY/Oi3YrFNZM6gLlNkijPSXGYn5kP+vZGAcMjm2ThMdPw1rOR9fTifbLFPhDJPK1UlZgMBAYwgzuzA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717095178; c=relaxed/simple; bh=n5yEaDAh85vw8ZKD60Eh+Rvf0Ok6TETJpl9orVLc7xQ=; h=MIME-Version:Message-Id:In-Reply-To:References:Date:From:To:Cc: Subject:Content-Type; b=GaciaaSxXt9TjpZEi/+XHiUTJcnPazcRzu+NsspgEwLIy08zV7Via/OIAJofeWz3kGKrOXoq0G9iOnaWzl9Yv8xcVXSuR2A8NJdzZmDaatLoecnBEUcuLl8uuN80Sg1JFMwl+tbJKsaCo/U2bCmQH+Lm7R2n8p4lHm/j42TM3c8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de; spf=pass smtp.mailfrom=arndb.de; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b=saj2RiVv; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=hM8qkLOr; arc=none smtp.client-ip=64.147.123.149 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arndb.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arndb.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=arndb.de header.i=@arndb.de header.b="saj2RiVv"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="hM8qkLOr" Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id D7C3A1C000F7; Thu, 30 May 2024 14:52:54 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute5.internal (MEProxy); Thu, 30 May 2024 14:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1717095174; x=1717181574; bh=ih0LJP0eTW o3jPdc63FceSZpgfHI9w8pQsCt99us9WY=; b=saj2RiVvQLK23cP1CAeUgPulpt wnSKXsJZrICOjtdskVelrPr6Q66yxii2/X5FOzsExYwxTvQVQLpRlVQoPho073Ou agzJcRZ+pjMhkC/tJJYwD4DhhTvtofUyD/S28oJ3ubfAZSmqz33iN7z7HtChRNJK YXOb4x2SvWuMS2JFHEmpYS2YgQVELwRvnQPxXGY0AkwMlz2cFSqcKjxsnlVncu3N yAwk+7OFa0KBQj+oiL3oM2s8VpD6j/0ysycMGRJ6TpC7R12X0jPNQGaeqdEKFIAJ o5RhuocgUU2s1ayH5bMGx6HfJU1Xl7inyiPf56FC8hn/0WlOFvHBjqrOSb0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1717095174; x=1717181574; bh=ih0LJP0eTWo3jPdc63FceSZpgfHI 9w8pQsCt99us9WY=; b=hM8qkLOr7CoqZj7EoF0jloLefsrz6WHOXDAHegooitKW 9vwmO9TUpVpXlgkcXGAAfuBP9NyDthCVXz0hfj1v5A7N5Fd9dd6iRnatacy+1oB8 nOPLSi7GcvUOC9cak8VMjJ5jjV9g3rQqUK1ZWsw6Ezlo2w250CkIsjZIc98nbM0I 6S2krBllJZdYLCh8Muxl3LZdpwLdy0xzNs2LzskVwd+8ehygZGgmwyK0xnjPwaWv 1EfgJdebxRP4r3PNCCJrHLyJGmP7gJmbMzLpNjNsI/eix2WWWp467+SSCrBx9058 ru1L1tJ2R+BWgl1Fsi57nF1qrH1d8Ba5UwevnHL1OQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdekgedguddviecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdet rhhnugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrg htthgvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedt keetffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grrhhnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 51CDEB6008D; Thu, 30 May 2024 14:52:53 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.11.0-alpha0-491-g033e30d24-fm-20240520.001-g033e30d2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <866cb878-47fa-4bb9-ba93-6a0c0e70a4f7@app.fastmail.com> In-Reply-To: <2f1603fa-d03c-412c-895c-bc4afa06834b@intel.com> References: <20240528152527.2148092-1-arnd@kernel.org> <2f1603fa-d03c-412c-895c-bc4afa06834b@intel.com> Date: Thu, 30 May 2024 20:52:32 +0200 From: "Arnd Bergmann" To: "Jacob Keller" , "Arnd Bergmann" , "Sunil Goutham" , "Geetha sowjanya" , "Subbaraya Sundeep Bhatta" , hariprasad Cc: "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Richard Cochran" , "Suman Ghosh" , "Simon Horman" , "Anthony L Nguyen" , "Jiri Pirko" , "Mateusz Polchlopek" , Netdev , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ethernet: octeontx2: avoid linking objects into multiple modules Content-Type: text/plain On Thu, May 30, 2024, at 19:54, Jacob Keller wrote: > On 5/28/2024 8:25 AM, Arnd Bergmann wrote: >> From: Arnd Bergmann >> >> Each object file contains information about which module it gets linked >> into, so linking the same file into multiple modules now causes a warning: >> >> scripts/Makefile.build:254: drivers/net/ethernet/marvell/octeontx2/nic/Makefile: otx2_devlink.o is added to multiple modules: rvu_nicpf rvu_nicvf >> > > When I tried to build, I don't see any warnings produced on the current > net-next with W=1. Is this something new and not yet in net-next tree? > If not, how do I enable this warning in my local build? The warning has been around with W=1 for over a year now, it still shows up here: make ARCH=arm64 allmodconfig drivers/net/ethernet/marvell/octeontx2/ -skj20 scripts/Makefile.build:236: drivers/net/ethernet/marvell/octeontx2/nic/Makefile: otx2_devlink.o is added to multiple modules: rvu_nicpf rvu_nicvf scripts/Makefile.build:236: drivers/net/ethernet/marvell/octeontx2/nic/Makefile: otx2_dcbnl.o is added to multiple modules: rvu_nicpf rvu_nicvf Arnd