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 54C54C6FD1A for ; Mon, 6 Mar 2023 19:30:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbjCFTaB (ORCPT ); Mon, 6 Mar 2023 14:30:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbjCFT3y (ORCPT ); Mon, 6 Mar 2023 14:29:54 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B68583B842; Mon, 6 Mar 2023 11:29:46 -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 ams.source.kernel.org (Postfix) with ESMTPS id 5ED33B810D2; Mon, 6 Mar 2023 19:29:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E85ADC4339B; Mon, 6 Mar 2023 19:29:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678130984; bh=l4MJr1TuX+4CCg+Fz89fjWptfEHFzh6hDhxPWHE0w9I=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=GYRyvIx0PepOT+7XUYww0ldfMO0kxDbmFzp67+l00Gcu/th8IDz0ArKmbJnGbBBi6 b7sBgti4nMycI755KD2VIQ0UJViiVDeOFByGF+wfLvriQXapn76WgSrOk5l8UbVe+B iQA+/0BTlI4R2yFDpemjeYg/u37m34KGEl8Ld+oHZCCYjMp8bS5U0c8NtnEtxC2I3w F1LHjTKWGMGpv3ihdOa/qZY7q7nJmpzbd0jNOs7pSRQDQvMj3Wdp1eEd3wHNWi4GU6 5nT+25ddMRqqdUMB7pXC+JOT2cqtmmhX0IFIiR6anSXy9QraQlcMho5g4tlTZ4aO19 A1aK8/JG9BNsw== Message-ID: <50e9af28f2f245f18cb426904fb6eec5.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230222121453.91915-13-nick.alcock@oracle.com> References: <20230222121453.91915-1-nick.alcock@oracle.com> <20230222121453.91915-13-nick.alcock@oracle.com> Subject: Re: [PATCH 12/27] kbuild, clk: remove MODULE_LICENSE in non-modules From: Stephen Boyd Cc: linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Michael Turquette , linux-clk@vger.kernel.org To: Nick Alcock , mcgrof@kernel.org Date: Mon, 06 Mar 2023 11:29:41 -0800 User-Agent: alot/0.10 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Nick Alcock (2023-02-22 04:14:38) > Since commit 8b41fc4454e ("kbuild: create modules.builtin without > Makefile.modbuiltin or tristate.conf"), MODULE_LICENSE declarations > are used to identify modules. As a consequence, uses of the macro > in non-modules will cause modprobe to misidentify their containing > object file as a module when it is not (false positives), and modprobe > might succeed rather than failing with a suitable error message. >=20 > So remove it in the files in this commit, none of which can be built as > modules. >=20 > Signed-off-by: Nick Alcock > Suggested-by: Luis Chamberlain > Cc: Luis Chamberlain > Cc: linux-modules@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > Cc: Hitomi Hasegawa > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: linux-clk@vger.kernel.org > --- Applied to clk-fixes