acrn-kernel/arch/openrisc/include/asm
Stafford Horne 94effcedaa openrisc: Fix compiler warnings in setup
This was pointed out with the recent name change of or32_early_setup to
or1k_early_setup.  Investigating the file I found a few other warnings
so cleaning them up here.

    arch/openrisc/kernel/setup.c:220:13: warning: no previous prototype for 'or1k_early_setup' [-Wmissing-prototypes]
      220 | void __init or1k_early_setup(void *fdt)
	  |             ^~~~~~~~~~~~~~~~

Fix this the missing or1k_early_setup prototype warning by adding an
asm/setup.h file to define the prototype.

    arch/openrisc/kernel/setup.c:246:13: warning: no previous prototype for 'detect_unit_config' [-Wmissing-prototypes]
      246 | void __init detect_unit_config(unsigned long upr, unsigned long mask,
	  |             ^~~~~~~~~~~~~~~~~~

The function detect_unit_config is not used, just remove it.

    arch/openrisc/kernel/setup.c:221: warning: Function parameter or member 'fdt' not described in 'or1k_early_setup'

Add @fdt docs to the function comment to suppress this warning.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
2021-08-11 06:14:23 +09:00
..
bitops
Kbuild
asm-offsets.h
atomic.h locking/atomic: openrisc: move to ARCH_ATOMIC 2021-05-26 13:20:51 +02:00
barrier.h openrisc: Define memory barrier mb 2021-05-15 16:00:10 +09:00
bitops.h
cache.h
cacheflush.h
cmpxchg.h locking/atomic: openrisc: move to ARCH_ATOMIC 2021-05-26 13:20:51 +02:00
cpuinfo.h
delay.h
elf.h
fixmap.h
futex.h
io.h openrisc: io: Add missing __iomem annotation to iounmap() 2021-01-20 06:14:26 +09:00
irq.h
irqflags.h
linkage.h
mmu.h
mmu_context.h
page.h
pgalloc.h mm/thp: define default pmd_pgtable() 2021-07-01 11:06:03 -07:00
pgtable.h openrisc: rename or32 code & comments to or1k 2021-08-05 10:53:59 +09:00
processor.h
ptrace.h
serial.h
setup.h openrisc: Fix compiler warnings in setup 2021-08-11 06:14:23 +09:00
smp.h
spinlock.h
spinlock_types.h
spr.h
spr_defs.h
string.h
syscall.h
syscalls.h
thread_info.h openrisc: rename or32 code & comments to or1k 2021-08-05 10:53:59 +09:00
time.h
timex.h
tlb.h
tlbflush.h mm: update legacy flush_tlb_* to use vma 2021-06-29 10:53:52 -07:00
uaccess.h
unwinder.h
vmalloc.h