Re: [PATCH 2/3] ia64: remove unneeded header includes from <asm/mca.h>
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Masahiro Yamada <masahiroy@xxxxxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx
- Subject: Re: [PATCH 2/3] ia64: remove unneeded header includes from <asm/mca.h>
- From: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
- Date: Sat, 29 Aug 2020 11:20:57 -0700
- Cc: linux-kbuild@xxxxxxxxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, Ard Biesheuvel <ardb@xxxxxxxxxx>, Dmitry Safonov <0x7f454c46@xxxxxxxxx>, afzal mohammed <afzal.mohd.ma@xxxxxxxxx>, linux-efi@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- In-reply-to: <20200829051524.706585-3-masahiroy@kernel.org>
- References: <20200829051524.706585-1-masahiroy@kernel.org> <20200829051524.706585-3-masahiroy@kernel.org>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0
On 8/28/20 10:15 PM, Masahiro Yamada wrote:
> <asm/mca.h> includes too many unneeded headers.
>
> This commit cuts off a lot of header includes.
>
> What we need to include are:
>
> - <linux/percpu.h> for DECLARE_PER_CPU(u64, ia64_mca_pal_base)
> - <linux/threads.h> for NR_CPUS
> - <linux/types.h> for u8, u64, size_t, etc.
> - <asm/ptrace.h> for KERNEL_STACK_SIZE
>
> The other header includes are actually unneeded.
>
> <asm/mca.h> previously included 436 headers, and now it includes
> only 138. I confirmed <asm/mca.h> is still self-contained.
Nice!
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Reviewed-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> ---
>
> arch/ia64/include/asm/mca.h | 9 +++------
> arch/ia64/kernel/efi.c | 1 +
> arch/ia64/kernel/mca.c | 1 +
> 3 files changed, 5 insertions(+), 6 deletions(-)
>
thanks.
--
~Randy
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]