Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

local64.h: make <asm/local64.h> mandatory

Make <asm-generic/local64.h> mandatory in include/asm-generic/Kbuild and
remove all arch/*/include/asm/local64.h arch-specific files since they
only #include <asm-generic/local64.h>.

This fixes build errors on arch/c6x/ and arch/nios2/ for
block/blk-iocost.c.

Build-tested on 21 of 25 arch-es. (tools problems on the others)

Yes, we could even rename <asm-generic/local64.h> to
<linux/local64.h> and change all #includes to use
<linux/local64.h> instead.

Link: https://lkml.kernel.org/r/20201227024446.17018-1-rdunlap@infradead.org
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Suggested-by: Christoph Hellwig <hch@infradead.org>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <jacquiot.aurelien@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Randy Dunlap and committed by
Linus Torvalds
87dbc209 13384f61

+1 -21
-1
arch/alpha/include/asm/local64.h
··· 1 - #include <asm-generic/local64.h>
-1
arch/arc/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 generic-y += extable.h 3 3 generic-y += kvm_para.h 4 - generic-y += local64.h 5 4 generic-y += mcs_spinlock.h 6 5 generic-y += parport.h 7 6 generic-y += user.h
-1
arch/arm/include/asm/Kbuild
··· 2 2 generic-y += early_ioremap.h 3 3 generic-y += extable.h 4 4 generic-y += flat.h 5 - generic-y += local64.h 6 5 generic-y += parport.h 7 6 8 7 generated-y += mach-types.h
-1
arch/arm64/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 generic-y += early_ioremap.h 3 - generic-y += local64.h 4 3 generic-y += mcs_spinlock.h 5 4 generic-y += qrwlock.h 6 5 generic-y += qspinlock.h
-1
arch/csky/include/asm/Kbuild
··· 2 2 generic-y += asm-offsets.h 3 3 generic-y += gpio.h 4 4 generic-y += kvm_para.h 5 - generic-y += local64.h 6 5 generic-y += qrwlock.h 7 6 generic-y += user.h 8 7 generic-y += vmlinux.lds.h
-1
arch/h8300/include/asm/Kbuild
··· 2 2 generic-y += asm-offsets.h 3 3 generic-y += extable.h 4 4 generic-y += kvm_para.h 5 - generic-y += local64.h 6 5 generic-y += mcs_spinlock.h 7 6 generic-y += parport.h 8 7 generic-y += spinlock.h
-1
arch/hexagon/include/asm/Kbuild
··· 2 2 generic-y += extable.h 3 3 generic-y += iomap.h 4 4 generic-y += kvm_para.h 5 - generic-y += local64.h 6 5 generic-y += mcs_spinlock.h
-1
arch/ia64/include/asm/local64.h
··· 1 - #include <asm-generic/local64.h>
-1
arch/m68k/include/asm/Kbuild
··· 2 2 generated-y += syscall_table.h 3 3 generic-y += extable.h 4 4 generic-y += kvm_para.h 5 - generic-y += local64.h 6 5 generic-y += mcs_spinlock.h 7 6 generic-y += spinlock.h
-1
arch/microblaze/include/asm/Kbuild
··· 2 2 generated-y += syscall_table.h 3 3 generic-y += extable.h 4 4 generic-y += kvm_para.h 5 - generic-y += local64.h 6 5 generic-y += mcs_spinlock.h 7 6 generic-y += parport.h 8 7 generic-y += syscalls.h
-1
arch/mips/include/asm/Kbuild
··· 6 6 generated-y += syscall_table_64_o32.h 7 7 generic-y += export.h 8 8 generic-y += kvm_para.h 9 - generic-y += local64.h 10 9 generic-y += mcs_spinlock.h 11 10 generic-y += parport.h 12 11 generic-y += qrwlock.h
-1
arch/nds32/include/asm/Kbuild
··· 4 4 generic-y += export.h 5 5 generic-y += gpio.h 6 6 generic-y += kvm_para.h 7 - generic-y += local64.h 8 7 generic-y += parport.h 9 8 generic-y += user.h
-1
arch/openrisc/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 generic-y += extable.h 3 3 generic-y += kvm_para.h 4 - generic-y += local64.h 5 4 generic-y += mcs_spinlock.h 6 5 generic-y += qspinlock_types.h 7 6 generic-y += qspinlock.h
-1
arch/parisc/include/asm/Kbuild
··· 3 3 generated-y += syscall_table_64.h 4 4 generated-y += syscall_table_c32.h 5 5 generic-y += kvm_para.h 6 - generic-y += local64.h 7 6 generic-y += mcs_spinlock.h 8 7 generic-y += user.h
-1
arch/powerpc/include/asm/Kbuild
··· 5 5 generated-y += syscall_table_spu.h 6 6 generic-y += export.h 7 7 generic-y += kvm_types.h 8 - generic-y += local64.h 9 8 generic-y += mcs_spinlock.h 10 9 generic-y += qrwlock.h 11 10 generic-y += vtime.h
-1
arch/riscv/include/asm/Kbuild
··· 3 3 generic-y += extable.h 4 4 generic-y += flat.h 5 5 generic-y += kvm_para.h 6 - generic-y += local64.h 7 6 generic-y += user.h 8 7 generic-y += vmlinux.lds.h
-1
arch/s390/include/asm/Kbuild
··· 7 7 generic-y += asm-offsets.h 8 8 generic-y += export.h 9 9 generic-y += kvm_types.h 10 - generic-y += local64.h 11 10 generic-y += mcs_spinlock.h
-1
arch/sh/include/asm/Kbuild
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 generated-y += syscall_table.h 3 3 generic-y += kvm_para.h 4 - generic-y += local64.h 5 4 generic-y += mcs_spinlock.h 6 5 generic-y += parport.h
-1
arch/sparc/include/asm/Kbuild
··· 6 6 generated-y += syscall_table_c32.h 7 7 generic-y += export.h 8 8 generic-y += kvm_para.h 9 - generic-y += local64.h 10 9 generic-y += mcs_spinlock.h
-1
arch/x86/include/asm/local64.h
··· 1 - #include <asm-generic/local64.h>
-1
arch/xtensa/include/asm/Kbuild
··· 2 2 generated-y += syscall_table.h 3 3 generic-y += extable.h 4 4 generic-y += kvm_para.h 5 - generic-y += local64.h 6 5 generic-y += mcs_spinlock.h 7 6 generic-y += param.h 8 7 generic-y += qrwlock.h
+1
include/asm-generic/Kbuild
··· 34 34 mandatory-y += kprobes.h 35 35 mandatory-y += linkage.h 36 36 mandatory-y += local.h 37 + mandatory-y += local64.h 37 38 mandatory-y += mm-arch-hooks.h 38 39 mandatory-y += mmiowb.h 39 40 mandatory-y += mmu.h