From patchwork Sun Nov 13 11:15:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1641829wru; Sun, 13 Nov 2022 03:30:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Buo6uBNDEsH+T1nCpkb2ygICHdyyf3v3YUb3BtB3iqYFKecsjTOBaPn5KgQHbGTSW6jQG X-Received: by 2002:a17:907:1749:b0:78d:4f05:6ba7 with SMTP id lf9-20020a170907174900b0078d4f056ba7mr7367302ejc.590.1668339011438; Sun, 13 Nov 2022 03:30:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668339011; cv=none; d=google.com; s=arc-20160816; b=omhtQDJI+NXTQGPqBCy2r5M7oahWIOC5BoxaKKCBYBA34DSIH7t8xFBPN9mxHgT43F dLGmC7K3zuC09w4udEYDs2c99IhXiE/n2N8jpcbjfp9+DtbFkVqs6vlYpgt/rkd9ZQB5 dpCJm0DADHo0CnuLOwIvQ/VESX5m/9rcoM1rXzSvwoVoyUP46IKWLWBfsyj7yIbbOaZD wELkGI8CzlyP64VxWUC0tf/TtqkxnpMhof5/gUycApb65oWMqKH+4ZisNo1VLBs+R4/P Ms/gjnU3gxOaahDgS+gdBmrWDACZr/ikxL3W3+7QYoETGM8G06iEXM63KXYLXX0zwzhb fXDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=McKELOl6oRb17OFIC9aBG94OQkTpn7Sq0Ia5kEIxfV8=; b=vQ4hWIcUVDXnXaVGCRXcf/cFHJwLfYkgXD5Vb2CPhAyoBte4vjcMciV720ROxF9mlk fhs6yqhl25z9L3sjORbsGDnXZgYSk89UegsqgoNt9jcZHzKsYO8ShSBSUcfFT9CHISQ1 jpgNVgnAY3TOuG93+lLDTYB33Cn/1Z+NlPxLiQTptzx8zWW8I+921kBq0Apb2GiS2ako Maf3IWD1oAdG0JgKVcO6v7eYphqd7OBOoC9wUvJMSWOIjjJuWdE6Spugns35eXkVIknB KubQ2yLuMlxjiWBherbZXpQXgRDwtAkpgh+yATr8iAyT3rLAKAAk0O1TpKDEehqVoXTY Dn5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=g3v4XrBY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t26-20020a50ab5a000000b0045cafc51fbfsi6839986edc.525.2022.11.13.03.29.42; Sun, 13 Nov 2022 03:30:11 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=g3v4XrBY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235281AbiKMLP6 (ORCPT + 99 others); Sun, 13 Nov 2022 06:15:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235207AbiKMLPy (ORCPT ); Sun, 13 Nov 2022 06:15:54 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B4A96563; Sun, 13 Nov 2022 03:15:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id EF950609EB; Sun, 13 Nov 2022 11:15:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 199D1C433C1; Sun, 13 Nov 2022 11:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668338137; bh=0BWR+k4vde+hdnMhCvTCNRM3S941nfBNnKWokjYMvoI=; h=From:To:Cc:Subject:Date:From; b=g3v4XrBYQzbpcklFq2O/aUWqt6+XVpEeUtpZHED7bHf80JDFzRNJRdIYyjco+Etng h2sFG5kWhtTC4wSK8/35ZGgeMMTp5miBKGNb1xjkEh+D106WqSsilOInIMa1a1h0Kl jglclLMAfvBJfV76URqk9x33RRAFgWsRXTsKxRQzaXhY1Yr7EMrMQcGzxeBbb+ymce 82XA3+jf+n3L+rfKlBQm6fAZyfFvwMYypefKP9K5iYB3AjiaUm2YXEcJQqGtRgV5ND s8VT9pS3qJoBUDeKqKYhAqQZnASB+vqHAa3jXWdkfCTBLkqjUSyM5qMqJIwYd8IKQV tDO4e0KPOD6jQ== From: Masahiro Yamada To: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Nick Terrell , Nicolas Schier , Tom Rix , llvm@lists.linux.dev Subject: [PATCH 0/3] kbuild: detect objects shared among multiple modules Date: Sun, 13 Nov 2022 20:15:22 +0900 Message-Id: <20221113111525.3762483-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749380247402937051?= X-GMAIL-MSGID: =?utf-8?q?1749380247402937051?= Commit 637a642f5ca5 ("zstd: Fixing mixed module-builtin objects") only fixed zstd, but similar potential issues are remaining treewide. My plan is to merge the first two in the next merge window (to block new breakages), the last one after fixing warnings. Masahiro Yamada (3): kbuild: add kbuild-file macro kbuild: warn objects shared among multiple modules [pending] kbuild: make forbid sharing objects among multiple modules scripts/Kbuild.include | 5 +++++ scripts/Makefile.asm-generic | 6 +++--- scripts/Makefile.build | 6 +----- scripts/Makefile.clean | 5 +---- scripts/Makefile.dtbinst | 2 +- scripts/Makefile.lib | 8 ++++---- scripts/Makefile.vmlinux_o | 5 +---- 7 files changed, 16 insertions(+), 21 deletions(-)