lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNARQFBuUY2YzUnPuyEdTAVy=B91L5NyYGzhY-kAr3SYsRQ@mail.gmail.com>
Date: Mon, 9 Jun 2025 09:39:31 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Huacai Chen <chenhuacai@...ngson.cn>
Cc: linux-kbuild@...r.kernel.org, Huacai Chen <chenhuacai@...nel.org>, 
	loongarch@...ts.linux.dev, Guo Ren <guoren@...nel.org>, 
	Xuerui Wang <kernel@...0n.name>, Jiaxun Yang <jiaxun.yang@...goat.com>, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] LoongArch: Fix build warnings about export.h

On Sun, Jun 8, 2025 at 11:15 PM Huacai Chen <chenhuacai@...ngson.cn> wrote:
>
> After commit a934a57a42f64a4 ("scripts/misc-check: check missing #include
> <linux/export.h> when W=1") and 7d95680d64ac8e836c ("scripts/misc-check:
> check unnecessary #include <linux/export.h> when W=1"), we get some build
> warnings with W=1:
>
> arch/loongarch/kernel/acpi.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/alternative.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/kfpu.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/traps.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/unwind_guess.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/unwind_orc.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/unwind_prologue.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/lib/crc32-loongarch.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/lib/csum.c: warning: EXPORT_SYMBOL() is used, but #include <linux/export.h> is missing
> arch/loongarch/kernel/elf.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
> arch/loongarch/kernel/paravirt.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
> arch/loongarch/pci/pci.c: warning: EXPORT_SYMBOL() is not used, but #include <linux/export.h> is present
>
> So fix these build warnings for LoongArch.
>
> Signed-off-by: Huacai Chen <chenhuacai@...ngson.cn>
> ---
>  arch/loongarch/kernel/acpi.c            | 1 +
>  arch/loongarch/kernel/alternative.c     | 1 +
>  arch/loongarch/kernel/elf.c             | 1 -
>  arch/loongarch/kernel/kfpu.c            | 1 +
>  arch/loongarch/kernel/paravirt.c        | 1 -
>  arch/loongarch/kernel/traps.c           | 1 +
>  arch/loongarch/kernel/unwind_guess.c    | 1 +
>  arch/loongarch/kernel/unwind_orc.c      | 3 ++-
>  arch/loongarch/kernel/unwind_prologue.c | 1 +
>  arch/loongarch/lib/crc32-loongarch.c    | 1 +
>  arch/loongarch/lib/csum.c               | 1 +
>  arch/loongarch/pci/pci.c                | 1 -
>  12 files changed, 10 insertions(+), 4 deletions(-)

Thank you for your contribution.

Reviewed-by: Masahiro Yamada <masahiroy@...nel.org>



-- 
Best Regards
Masahiro Yamada

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ