From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD26DC43219 for ; Mon, 29 Apr 2019 15:36:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95DA820673 for ; Mon, 29 Apr 2019 15:36:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728656AbfD2PgB (ORCPT ); Mon, 29 Apr 2019 11:36:01 -0400 Received: from monster.unsafe.ru ([5.9.28.80]:44264 "EHLO mail.unsafe.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728501AbfD2PgB (ORCPT ); Mon, 29 Apr 2019 11:36:01 -0400 Received: from dhcp129-178.brq.redhat.com (nat-pool-brq-t.redhat.com [213.175.37.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.unsafe.ru (Postfix) with ESMTPSA id CDA5EC61824; Mon, 29 Apr 2019 15:35:57 +0000 (UTC) Date: Mon, 29 Apr 2019 17:35:55 +0200 From: Alexey Gladkov To: Masahiro Yamada Cc: Linux Kernel Mailing List , Linux Kbuild mailing list , linux-api@vger.kernel.org, linux-modules@vger.kernel.org, "Kirill A . Shutemov" , Gleb Fotengauer-Malinovskiy , "Dmitry V. Levin" , Michal Marek , Dmitry Torokhov , Rusty Russell , Jessica Yu , Lucas De Marchi Subject: Re: [PATCH v3] moduleparam: Save information about built-in modules in separate file Message-ID: <20190429153555.GX9023@dhcp129-178.brq.redhat.com> References: <20190429090854.GU9023@dhcp129-178.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-modules@vger.kernel.org Precedence: bulk List-ID: On Tue, Apr 30, 2019 at 12:08:44AM +0900, Masahiro Yamada wrote: > > modules.builtin > > +modules.builtin.modinfo > > > > # > > # Top-level generic files > > > Let me repeat the same comments as in v2 > (https://patchwork.kernel.org/patch/10888207/#22595563) > as you ignored them. I miss it. Sorry about that. > > diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh > > index c8cf45362bd6..41ef7cb043c1 100755 > > --- a/scripts/link-vmlinux.sh > > +++ b/scripts/link-vmlinux.sh > > @@ -226,6 +226,10 @@ modpost_link vmlinux.o > > # modpost vmlinux.o to check for section mismatches > > ${MAKE} -f "${srctree}/scripts/Makefile.modpost" vmlinux.o > > > > +info MODINFO modules.builtin.modinfo > > +"${OBJCOPY}" -j .modinfo -O binary vmlinux.o modules.builtin.modinfo > > +chmod 444 modules.builtin.modinfo > > > Why is this 'chmod 444' necessary? I just wanted to show that this file will never change. I will remove this line. -- Rgrds, legion