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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A67C7C433EF for ; Sat, 11 Jun 2022 18:52:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229563AbiFKSwX (ORCPT ); Sat, 11 Jun 2022 14:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiFKSwX (ORCPT ); Sat, 11 Jun 2022 14:52:23 -0400 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B35D051E4F; Sat, 11 Jun 2022 11:52:21 -0700 (PDT) Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 25BIpjEH011672; Sun, 12 Jun 2022 03:51:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 25BIpjEH011672 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1654973506; bh=zLJrWba6O8CUY1xuhJ6ivmej01hRP1bnvnpSH4ux26s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=IXWcwesD/nxGzxvQzIZaK04u2cwvrsGhABvGesycZYewNpw+z0+gWUxi2TOxUQ19k y/tzB1FdKBUsi9v4nEZsxNwLg8ix/3jK7M0THwPnwnVT6NPD3M62fFp9wlrW448PKj f9QoZ8NJr6ShNqrSg5MdFlNoZqS45nXJcwidROxyWbwVP8mYOF9TzE0h+FrubuntHd CdrD3c18BNoPUkMoaQl2W7/rU5UQ+7XINi8TE+2mo71z1sVd0fqSqi0iUTK5e+qa0a hmJ2nzpG7KRI8oIF0sUIeMmOZ2xb2BF1OfauKl3IYsFd4omsA7Z7pzpATAuUicyyKY n/JkAHF5/GeaA== X-Nifty-SrcIP: [209.85.128.42] Received: by mail-wm1-f42.google.com with SMTP id i17-20020a7bc951000000b0039c4760ec3fso2912177wml.0; Sat, 11 Jun 2022 11:51:46 -0700 (PDT) X-Gm-Message-State: AOAM531IRHhiCio09WHac0izbzig2U/VwhyxOVFco6vEwT6MrXXBrAGc CVoNTqve4N3gvApwxdTt53k+i6guSqbYGAgqgbQ= X-Google-Smtp-Source: ABdhPJx2/YzshhqCPp6iIKJydx/cOynVTXAgfqxHzDO3RhquZXaR7ESm5HK7cqGXTrNRCf8aUCzFm+cog/HiCeV4CdA= X-Received: by 2002:a7b:ce04:0:b0:394:1f46:213 with SMTP id m4-20020a7bce04000000b003941f460213mr5884955wmc.157.1654973504935; Sat, 11 Jun 2022 11:51:44 -0700 (PDT) MIME-Version: 1.0 References: <20220610183236.1272216-1-masahiroy@kernel.org> In-Reply-To: <20220610183236.1272216-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Sun, 12 Jun 2022 03:51:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] Unify and , remove EXPORT_DATA_SYMBOL() To: Linux Kbuild mailing list Cc: Al Viro , Nicolas Pitre , Luis Chamberlain , linux-modules , Ard Biesheuvel , Alessio Igor Bogani , Andy Whitcroft , Arnd Bergmann , Dwaipayan Ray , Joe Perches , Lukas Bulwahn , Michal Marek , Nick Desaulniers , Rusty Russell , linux-arch , linux-ia64@vger.kernel.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: On Sat, Jun 11, 2022 at 3:34 AM Masahiro Yamada wrote: > > > This patch set refactors EXPORT_SYMBOL, and . > > You can still put EXPORT_SYMBOL() in *.S file, very close to the definition, > but you do not need to care about whether it is a function or a data. > Remove EXPORT_DATA_SYMBOL(). > Sorry, please ignore this patch set. With further testing for ia64, I realized it was not working. > > Masahiro Yamada (7): > modpost: fix section mismatch check for exported init/exit sections > modpost: put get_secindex() call inside sec_name() > kbuild: generate struct kernel_symbol by modpost > ia64,export.h: replace EXPORT_DATA_SYMBOL* with EXPORT_SYMBOL* > checkpatch: warn if is included > modpost: merge sym_update_namespace() into sym_add_exported() > modpost: use null string instead of NULL pointer for default namespace > > arch/ia64/include/asm/Kbuild | 1 + > arch/ia64/include/asm/export.h | 3 - > arch/ia64/kernel/head.S | 2 +- > arch/ia64/kernel/ivt.S | 2 +- > include/asm-generic/export.h | 83 +------------------ > include/linux/export-internal.h | 44 ++++++++++ > include/linux/export.h | 97 ++++++++-------------- > kernel/module/internal.h | 12 +++ > kernel/module/main.c | 1 - > scripts/Makefile.build | 8 +- > scripts/check-local-export | 4 +- > scripts/checkpatch.pl | 7 ++ > scripts/mod/modpost.c | 139 +++++++++++++++++--------------- > scripts/mod/modpost.h | 1 + > 14 files changed, 182 insertions(+), 222 deletions(-) > delete mode 100644 arch/ia64/include/asm/export.h > > -- > 2.32.0 > -- Best Regards Masahiro Yamada