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: 13041520 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05578C43217 for ; Sun, 13 Nov 2022 11:15:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235224AbiKMLP4 (ORCPT ); Sun, 13 Nov 2022 06:15:56 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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(-)