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 5A011C7EE30 for ; Thu, 2 Mar 2023 22:02:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229843AbjCBWCQ (ORCPT ); Thu, 2 Mar 2023 17:02:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229821AbjCBWB6 (ORCPT ); Thu, 2 Mar 2023 17:01:58 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65F0C5F6D9 for ; Thu, 2 Mar 2023 14:01:33 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id g3so525449wri.6 for ; Thu, 02 Mar 2023 14:01:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677794489; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=eoLlFIKo+0HC5z28LpcjtRJj56OW9StYTeb8Ufax9js=; b=YpQcR7Fk9iV2T9fMbhThZBBI3/6zaasRJaHdsjGW9xKGPo4O7Ce+woLxIidUTkLdVW YnlO0mK+ywg8Z/jbg7gaL8bVeFN3Z6RmaW9l4An+tbGZeCmkgbaS6mevIiDp9uGG6icN 3blWigkKz42aFytge/FoW+om2fZGXhxo7KRLSA6wUp4mg/Yl7VcToGqD5LhnIYqxD6bg XqQL8r+ee3LjdXEWrulYuu5wyUNZMQiKgCKfWkSjVxEshFQVDceePd5egARutR758B1d +xUUkUp16H4qrgvOk64HJpu+bNBpSgRm11PFhEOkXNTItmLGdZkKC01ySrfirtaa1PnS Sw5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677794489; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eoLlFIKo+0HC5z28LpcjtRJj56OW9StYTeb8Ufax9js=; b=xT825yd8LCfKZSjS3dCLoxhNu18/CVwf7cOywKpB2CP+r/wIJAZROxNLCxsBjuWM59 1fvEPQLx4PO3gXeJrp8C6JJaCfBWsL4bks5Aq7pJiW3WP7xAxaeKBi4cN4mK4BVCKDuI Q0adRwDgKMDlXXtX8fp3hR6yrqsC4mFH9VcUZU1Iq3KD/Z/uFtWvlp8sHyyNK+8Q0Our tZ68eBkEB2IwmC5DhVaax6maED8tBNk/nQJOSA2wIblpRPKq0LJO/Tw4lizctSd9VFnG SXcICRdr5CCzVgEXbLY0VbgwJRe+jNerbmZAdhRadKOwUhDiSao0bTRwwYmDx9Xw80HS ngIw== X-Gm-Message-State: AO0yUKUoVM7l9+GkYR5Xvslo1jgcrKp3YsNiwvZgDszPBznx8A3vj/xL vzETpd2fXKMM7ZE5Bw9FJEKdKsLTl/bk/G62G3qPNg== X-Google-Smtp-Source: AK7set8p2o8BjVZaPWOCquuwzj0H6Ba4FS/Y1kR8lKWg5AU835kdnwYfmn8lUlm0xHF4LlpzwHVVxhlKuA+A81J4M70= X-Received: by 2002:adf:f7cb:0:b0:2c7:a39:78ae with SMTP id a11-20020adff7cb000000b002c70a3978aemr1975071wrq.13.1677794489531; Thu, 02 Mar 2023 14:01:29 -0800 (PST) MIME-Version: 1.0 References: <20230228130215.289081-1-nick.alcock@oracle.com> <20230228130215.289081-9-nick.alcock@oracle.com> In-Reply-To: <20230228130215.289081-9-nick.alcock@oracle.com> From: Mathieu Poirier Date: Thu, 2 Mar 2023 15:01:18 -0700 Message-ID: Subject: Re: [PATCH 08/20] remoteproc: remove MODULE_LICENSE in non-modules To: Nick Alcock Cc: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Bjorn Andersson , linux-remoteproc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 28 Feb 2023 at 06:03, Nick Alcock wrote: > > 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. > > So remove it in the files in this commit, none of which can be built as > modules. > > 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: Bjorn Andersson > Cc: Mathieu Poirier > Cc: linux-remoteproc@vger.kernel.org > --- > drivers/remoteproc/remoteproc_core.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c > index 1cd4815a6dd19..de1ace44cb57b 100644 > --- a/drivers/remoteproc/remoteproc_core.c > +++ b/drivers/remoteproc/remoteproc_core.c > @@ -2765,5 +2765,4 @@ static void __exit remoteproc_exit(void) > } > module_exit(remoteproc_exit); > > -MODULE_LICENSE("GPL v2"); Reviewed-by: Mathieu Poirier > MODULE_DESCRIPTION("Generic Remote Processor Framework"); > -- > 2.39.1.268.g9de2f9a303 >