Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp198611rwb; Tue, 25 Jul 2023 14:22:10 -0700 (PDT) X-Google-Smtp-Source: APBJJlHlqkCVLJlE/Mz4T6YbNqG7KgPV1vy9MEI5JAPZ76AI97RCzbXPaPhXSFAbCbcEnwWZuQBc X-Received: by 2002:a17:902:b90a:b0:1b6:af1a:7dd3 with SMTP id bf10-20020a170902b90a00b001b6af1a7dd3mr324498plb.23.1690320129753; Tue, 25 Jul 2023 14:22:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690320129; cv=none; d=google.com; s=arc-20160816; b=TCY2pMctEELuiYfVt4eo6EfJWlFucMiX9yxgjFO/mLe5I7qsLHC6vWLocp0mj/3SVw 7/HdrZ8kpEvM4BQa86/fPC+ZrQavFU0KJRGVYTR58v6YikwOpxYYf7RldqD2bqFBJwRh 1rs5PrnoFr8c7DAuj0QFiwd+ITTLC5wEFaAimLdgiG/jQtbzvK1SF9Pz3pYUTEShP1Zb sfAJYFM3dZCVPEcc9hr1AvgWvIuNCpScv01WXVQ5rwEFQlpmUnPTHO6APCSHPf/VISjx uMtxc4V2rab+kTO1QF9TzQmgp9ng7XEcEjkuR4aYKK4157Tp1JhK0q6zsttuPqof/pIW 6IYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=tUenbxuC5I1n+MGN9iC/9qo7/L6cRKUPK2gsdMgfmGw=; fh=3FlJmOKmo3n5Lkwa6ag40nuonS7bJcadzNUeZCEPtlU=; b=dL2REtZiUrWxb+XtVQyEY0eXVgya8mqq5HhwFRUPOfE1TAjJ7Uvpda/xV44ldEze9R R0pkxvkqlaYpGCsGHTHRlewLeCMt6R6XitP0MtvQIVR6WwBEfJrG4Mc9VRUnP9PUllB+ bcbpMCX0CBf/W0f7uecPckvjq95G8G/SQRy74MfxMRfRG37rZkLIHrpAxbBk0emxxNXJ tqtiVpPB1K4PbciKWkppMQdl37iPR8ukdsdNZWcKzgEGZpF/Gf64ZU+k478gnhOv2OpE dBreJfOqgsUVAsqv1W1NA/oQJgNivyXPM/VKrSOv0BK9VCEJ6VOAd8y3novggJ9af9yc oN3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=fUEfQhme; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Yj2eA52T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ik2-20020a170902ab0200b001b9d090151esi11335325plb.237.2023.07.25.14.21.42; Tue, 25 Jul 2023 14:22:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm2 header.b=fUEfQhme; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=Yj2eA52T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231419AbjGYUiV (ORCPT + 99 others); Tue, 25 Jul 2023 16:38:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjGYUh6 (ORCPT ); Tue, 25 Jul 2023 16:37:58 -0400 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 735FC1BE4; Tue, 25 Jul 2023 13:37:30 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id ACF5F5C00F2; Tue, 25 Jul 2023 16:37:28 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Tue, 25 Jul 2023 16:37:28 -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:sender :subject:subject:to:to; s=fm2; t=1690317448; x=1690403848; bh=tU enbxuC5I1n+MGN9iC/9qo7/L6cRKUPK2gsdMgfmGw=; b=fUEfQhmeApsH9S+6d8 dYCpcvq8XcHWxwayJ0kqkX98H0Zrh192T3eC1AgofzGoeyFYLIMTQjjomWFFGH8d WEFHRz2Qsk5f0pNrllJbEFWYMPAd1xVxoIMz6iw/+6RaB8HVb6eoA9F3CPl6Hc8u MFDnIqBKICtznrqd34WKsUWbjprS//1HrCc8ZbXd1ZF4hdL3A/cnWy4/Ais+JJFr Tf3B24U/KIg2nlnsfMEEvbDCPkeyQUb3AbwfKqHneedUCtVPEiq9F6YIn+l7qSV/ clqj/uyg0VymFXIiX1Cg/fO7KXvWC3i5+JiyxzNpFuA2kD+ypP3YtdUUdU86BPHD 3zvA== 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:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1690317448; x=1690403848; bh=tUenbxuC5I1n+ MGN9iC/9qo7/L6cRKUPK2gsdMgfmGw=; b=Yj2eA52T+f6RmDpoylZMRUKC49eAT qp57mr5n4hyjAGu0NHElHMvyEaBmedsdszebCSN47BuQST3DhJEilKciT9g6P0DO RKjyS9awY8sWwUJmcWI2XRF6M6MziA8k4mwsXa7Kgnr/nouxJCEiYSZWaK2bBeI7 Om082OLg70b/GiTeMLWs3yfM2MESjyL1U6LhXZDla8EHPdnQiA8mFeURA6fsKXfK /GuIlO76msupya8Ql3+j4uj0dajz8DBRsnkNV4Gg2XSthYNiVVZsTP1VIb0OzdVZ KnoPX4ZFCaxhRc1EH/JF4mZKfDFnrK4Nlc+kyX0amloNqvPdZjTibdXSQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedriedtgddugeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id F280AB60089; Tue, 25 Jul 2023 16:37:27 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-592-ga9d4a09b4b-fm-defalarms-20230725.001-ga9d4a09b Mime-Version: 1.0 Message-Id: <990b6871-169b-4d03-b202-f19294730f8c@app.fastmail.com> In-Reply-To: References: <20230725064403.581634-1-arnd@kernel.org> Date: Tue, 25 Jul 2023 22:37:07 +0200 From: "Arnd Bergmann" To: "Simon Horman" , "Arnd Bergmann" Cc: "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Ioana Ciornei" , "Russell King" , "Robert-Ionut Alexa" , "Russell King" , "Vladimir Oltean" , "Wolfram Sang" , "Sean Anderson" , "Josua Mayer" , Netdev , linux-kernel@vger.kernel.org Subject: Re: [PATCH] dpaa: avoid linking objects into multiple modules Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 25, 2023, at 22:02, Simon Horman wrote: > On Tue, Jul 25, 2023 at 08:43:40AM +0200, 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/freescale/dpaa2/Makefile: dpaa2-mac.o is added to multiple modules: fsl-dpaa2-eth fsl-dpaa2-switch >> scripts/Makefile.build:254: drivers/net/ethernet/freescale/dpaa2/Makefile: dpmac.o is added to multiple modules: fsl-dpaa2-eth fsl-dpaa2-switch >> >> Chang the way that dpaa2 is built by moving the two common files into a >> separate module with exported symbols instead. >> >> To avoid a link failure when the switch driver is built-in, but the dpio driver >> is a loadable module, add the same dependency in there that exists for >> the ethernet driver. >> >> Signed-off-by: Arnd Bergmann > > Hi Arnd, > > overall this looks good to me. > One thing that I noticed, and I'm not sure if we care, > is that an x86_64 allmodconfig now reports: > > WARNING: modpost: missing MODULE_DESCRIPTION() in > drivers/net/ethernet/freescale/dpaa2/fsl-dpaa2-common.o My mistake, I had disabled the warning in modpost.c as it was generating too much output while I tried to address some other warnings, so I missed the regression I introduced. I'll send a v2, adding MODULE_DESCRIPTION("DPAA2 Ethernet core library"); Arnd