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 4AD4AC636D7 for ; Fri, 17 Feb 2023 20:19:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229558AbjBQUTF (ORCPT ); Fri, 17 Feb 2023 15:19:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjBQUTC (ORCPT ); Fri, 17 Feb 2023 15:19:02 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BF785FC57 for ; Fri, 17 Feb 2023 12:18:54 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id p15-20020a17090a2d8f00b00233ceae8407so2348124pjd.3 for ; Fri, 17 Feb 2023 12:18:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=1nBkXJHOQCjc1Cib5SQzHw5UBXu4/TG9BmbvtOn8x3o=; b=CdPU3vWf9z6nfxI9eJh0VGp3/SK3CkuJbz02B2y+OR2cJk9e+ZlsLXOhzYejAPMt9Z XPF8YOq4y222hIHAkjx1fN7AwI5D0dyNDVJWYdbehRgCU9T44jpPaf6b3qhEIitPZ1xo 5OHzy8a56F8EOfsoSqg0QM4jB0c0lJN5V9R7zXc8amDSHCzkMAxVOI+iJkl3k7eOIF58 S117VKy3W923uDt3dlQOBeMEaeZR+tazRpgvIDWUQKyuqAAOY4t3zK5T3Olka2v258C7 0Pkd6Y1BeScjtxC77I4gDxXOz70ge4eYOT5jGu9Ix2nskB14V6/hefvD2e1OuXFqGRk9 yh7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1nBkXJHOQCjc1Cib5SQzHw5UBXu4/TG9BmbvtOn8x3o=; b=JOy9XZjqB68QTDfh5yrjyoesy1uSNfKHuvddHPxjfcxbMWhaZsP9FeeE2HhxA9a9Rt wEhch1VkjeI7qm/XUq8IGjVbH3yOr2WsAHg06tyjZyWiQwcJgJSxjd/JGuOcIJH2f6sB M8DxCbGSU6lWI9EXZ3IdXQesMjBlrU8zmY1Oxu4KUlQA9kftab9VuFTRBKRJd70FOGvF 4x1V0h43Jj7JgbdVEzxzL47YV72IUs8XFdF5jhNFDCFARTvYMz9e88isLS8sGElsi+pI xPfCdldOxdMRzPVIhpNyd3bYTc8nmaW6xlWZuWo6srBHfoVFNjlCXltYsKz9HtNonIjW +6ZA== X-Gm-Message-State: AO0yUKXKaRiF2q53jIx46806NlQcoP1jVFnMlVy0PoQEQ5z8Xo0EetXD r/SlwoYaiCLiv1uXG6mbb9rcrA== X-Google-Smtp-Source: AK7set+Kglt9SWMTcl9U6edBMiVZdRdfyoTwtb7vT0wDVYvYQYr791Dt5GnQA1IjrjIv6xtsYuDn5w== X-Received: by 2002:a17:90b:1802:b0:233:ab9b:f86a with SMTP id lw2-20020a17090b180200b00233ab9bf86amr2565187pjb.8.1676665133517; Fri, 17 Feb 2023 12:18:53 -0800 (PST) Received: from google.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id 16-20020a17090a0a9000b002348bfd3799sm1956047pjw.39.2023.02.17.12.18.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 12:18:52 -0800 (PST) Date: Fri, 17 Feb 2023 20:18:49 +0000 From: Carlos Llamas To: Nick Alcock Cc: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, Hitomi Hasegawa , Greg Kroah-Hartman , Arve =?iso-8859-1?B?SGr4bm5lduVn?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Suren Baghdasaryan Subject: Re: [PATCH 06/24] kbuild, binder: remove MODULE_LICENSE in non-modules Message-ID: References: <20230217141059.392471-1-nick.alcock@oracle.com> <20230217141059.392471-7-nick.alcock@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230217141059.392471-7-nick.alcock@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 17, 2023 at 02:10:41PM +0000, 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: Greg Kroah-Hartman > Cc: "Arve Hj?nnev?g" > Cc: Todd Kjos > Cc: Martijn Coenen > Cc: Joel Fernandes > Cc: Christian Brauner > Cc: Carlos Llamas > Cc: Suren Baghdasaryan > --- > drivers/android/binder.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/android/binder.c b/drivers/android/binder.c > index 880224ec6abb..e36164108da6 100644 > --- a/drivers/android/binder.c > +++ b/drivers/android/binder.c > @@ -6597,4 +6597,3 @@ device_initcall(binder_init); > #define CREATE_TRACE_POINTS > #include "binder_trace.h" > > -MODULE_LICENSE("GPL v2"); > -- > 2.39.1.268.g9de2f9a303 > Acked-by: Carlos Llamas Thanks