tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes
head: 0a39298198681fe7b6ad576dc2ae15b326d0344a
commit: b338cb921e6739ff59ce32f43342779fe5ffa732 [60/210] bpf: Restore behaviour of
CAP_SYS_ADMIN allowing the loading of networking bpf programs
config: powerpc-randconfig-r033-20200630 (attached as .config)
compiler: clang version 11.0.0 (
https://github.com/llvm/llvm-project
cf1d04484344be52ada8178e41d18fd15a9b880c)
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout b338cb921e6739ff59ce32f43342779fe5ffa732
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> arch/powerpc/sysdev/xive/common.c:1568:6: error: no previous
prototype for function 'xive_debug_show_cpu' [-Werror,-Wmissing-prototypes]
void xive_debug_show_cpu(struct seq_file *m, int cpu)
^
arch/powerpc/sysdev/xive/common.c:1568:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
void xive_debug_show_cpu(struct seq_file *m, int cpu)
^
static
> arch/powerpc/sysdev/xive/common.c:1602:6: error: no previous
prototype for function 'xive_debug_show_irq' [-Werror,-Wmissing-prototypes]
void xive_debug_show_irq(struct seq_file *m, u32 hw_irq, struct irq_data *d)
^
arch/powerpc/sysdev/xive/common.c:1602:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
void xive_debug_show_irq(struct seq_file *m, u32 hw_irq, struct irq_data *d)
^
static
2 errors generated.
make[4]: *** [scripts/Makefile.build:281: arch/powerpc/sysdev/xive/common.o] Error 1
arch/powerpc/lib/pmem.c:15:6: error: no previous prototype for function
'arch_wb_cache_pmem' [-Werror,-Wmissing-prototypes]
void arch_wb_cache_pmem(void *addr, size_t size)
^
arch/powerpc/lib/pmem.c:15:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void arch_wb_cache_pmem(void *addr, size_t size)
^
static
arch/powerpc/lib/pmem.c:22:6: error: no previous prototype for function
'arch_invalidate_pmem' [-Werror,-Wmissing-prototypes]
void arch_invalidate_pmem(void *addr, size_t size)
^
arch/powerpc/lib/pmem.c:22:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void arch_invalidate_pmem(void *addr, size_t size)
^
static
2 errors generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/lib/pmem.o] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: arch/powerpc/sysdev/xive] Error 2
In file included from arch/powerpc/kvm/powerpc.c:41:
In file included from arch/powerpc/kvm/trace.h:127:
include/trace/define_trace.h:95:10: fatal error: './trace.h' file not found
#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/define_trace.h:90:32: note: expanded from macro 'TRACE_INCLUDE'
# define TRACE_INCLUDE(system) __TRACE_INCLUDE(system)
^~~~~~~~~~~~~~~~~~~~~~~
include/trace/define_trace.h:87:34: note: expanded from macro
'__TRACE_INCLUDE'
# define __TRACE_INCLUDE(system) __stringify(TRACE_INCLUDE_PATH/system.h)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/stringify.h:10:27: note: expanded from macro '__stringify'
#define __stringify(x...) __stringify_1(x)
^~~~~~~~~~~~~~~~
include/linux/stringify.h:9:29: note: expanded from macro '__stringify_1'
#define __stringify_1(x...) #x
^~
<scratch space>:4:1: note: expanded from here
"./trace.h"
^~~~~~~~~~~
arch/powerpc/mm/book3s64/hash_utils.c:1497:5: error: no previous prototype for function
'__hash_page' [-Werror,-Wmissing-prototypes]
int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr,
^
arch/powerpc/mm/book3s64/hash_utils.c:1497:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr,
^
static
arch/powerpc/mm/book3s64/hash_utils.c:1811:6: error: no previous prototype for function
'low_hash_fault' [-Werror,-Wmissing-prototypes]
void low_hash_fault(struct pt_regs *regs, unsigned long address, int rc)
^
arch/powerpc/mm/book3s64/hash_utils.c:1811:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
void low_hash_fault(struct pt_regs *regs, unsigned long address, int rc)
^
static
arch/powerpc/mm/book3s64/hash_utils.c:1828:6: error: no previous prototype for function
'hpte_insert_repeating' [-Werror,-Wmissing-prototypes]
long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
^
arch/powerpc/mm/book3s64/hash_utils.c:1828:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
long hpte_insert_repeating(unsigned long hash, unsigned long vpn,
^
static
3 errors generated.
1 error generated.
make[4]: *** [scripts/Makefile.build:281: arch/powerpc/mm/book3s64/hash_utils.o] Error
1
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/kvm/powerpc.o] Error 1
> arch/powerpc/perf/ppc970-pmu.c:489:5: error: no previous
prototype for function 'init_ppc970_pmu' [-Werror,-Wmissing-prototypes]
int init_ppc970_pmu(void)
^
arch/powerpc/perf/ppc970-pmu.c:489:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int init_ppc970_pmu(void)
^
static
arch/powerpc/mm/pgtable.c:341:8: error: no previous prototype for function
'__find_linux_pte' [-Werror,-Wmissing-prototypes]
pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
^
arch/powerpc/mm/pgtable.c:341:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
^
static
1 error generated.
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/mm/pgtable.o] Error 1
arch/powerpc/mm/book3s64/slb.c:354:6: error: no previous prototype for function
'slb_setup_new_exec' [-Werror,-Wmissing-prototypes]
void slb_setup_new_exec(void)
^
arch/powerpc/mm/book3s64/slb.c:354:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void slb_setup_new_exec(void)
^
static
arch/powerpc/mm/book3s64/slb.c:404:6: error: no previous prototype for function
'preload_new_slb_context' [-Werror,-Wmissing-prototypes]
void preload_new_slb_context(unsigned long start, unsigned long sp)
^
arch/powerpc/mm/book3s64/slb.c:404:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void preload_new_slb_context(unsigned long start, unsigned long sp)
^
static
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/perf/ppc970-pmu.o] Error 1
2 errors generated.
make[4]: *** [scripts/Makefile.build:281: arch/powerpc/mm/book3s64/slb.o] Error 1
arch/powerpc/platforms/pseries/lpar.c:1041: warning: Function parameter or member
'idx' not described in 'call_block_remove'
arch/powerpc/platforms/pseries/lpar.c:1041: warning: Function parameter or member
'param' not described in 'call_block_remove'
arch/powerpc/platforms/pseries/lpar.c:1041: warning: Function parameter or member
'retry_busy' not described in 'call_block_remove'
arch/powerpc/platforms/pseries/lpar.c:1302: warning: Function parameter or member
'number' not described in 'do_block_remove'
arch/powerpc/platforms/pseries/lpar.c:1302: warning: Function parameter or member
'batch' not described in 'do_block_remove'
arch/powerpc/platforms/pseries/lpar.c:1302: warning: Function parameter or member
'param' not described in 'do_block_remove'
arch/powerpc/platforms/pseries/lpar.c:1889: warning: Function parameter or member
'mpp_data' not described in 'h_get_mpp'
arch/powerpc/mm/mem.c:521: warning: Function parameter or member 'p' not
described in '__flush_dcache_icache'
arch/powerpc/mm/mem.c:521: warning: Excess function parameter 'page'
description in '__flush_dcache_icache'
> arch/powerpc/perf/power5-pmu.c:617:5: error: no previous
prototype for function 'init_power5_pmu' [-Werror,-Wmissing-prototypes]
int init_power5_pmu(void)
^
arch/powerpc/perf/power5-pmu.c:617:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int init_power5_pmu(void)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/power5-pmu.o] Error 1
arch/powerpc/mm/book3s64/pgtable.c:399:6: error: no previous prototype for function
'arch_report_meminfo' [-Werror,-Wmissing-prototypes]
void arch_report_meminfo(struct seq_file *m)
^
arch/powerpc/mm/book3s64/pgtable.c:399:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
void arch_report_meminfo(struct seq_file *m)
^
static
> arch/powerpc/mm/book3s64/pgtable.c:455:5: error: no previous
prototype for function 'pmd_move_must_withdraw' [-Werror,-Wmissing-prototypes]
int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
^
arch/powerpc/mm/book3s64/pgtable.c:455:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int pmd_move_must_withdraw(struct spinlock *new_pmd_ptl,
^
static
2 errors generated.
make[4]: *** [scripts/Makefile.build:280: arch/powerpc/mm/book3s64/pgtable.o] Error 1
> arch/powerpc/perf/power8-pmu.c:381:5: error: no previous
prototype for function 'init_power8_pmu' [-Werror,-Wmissing-prototypes]
int init_power8_pmu(void)
^
arch/powerpc/perf/power8-pmu.c:381:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int init_power8_pmu(void)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/power8-pmu.o] Error 1
> arch/powerpc/platforms/pseries/ras.c:125:12: error: no previous
prototype for function 'init_ras_hotplug_IRQ' [-Werror,-Wmissing-prototypes]
int __init init_ras_hotplug_IRQ(void)
^
arch/powerpc/platforms/pseries/ras.c:125:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int __init init_ras_hotplug_IRQ(void)
^
static
1 error generated.
make[4]: *** [scripts/Makefile.build:280: arch/powerpc/platforms/pseries/ras.o] Error
1
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/sysdev] Error 2
make[3]: Target '__build' not remade because of errors.
> arch/powerpc/perf/power9-pmu.c:439:5: error: no previous
prototype for function 'init_power9_pmu' [-Werror,-Wmissing-prototypes]
int init_power9_pmu(void)
^
arch/powerpc/perf/power9-pmu.c:439:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int init_power9_pmu(void)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/power9-pmu.o] Error 1
> arch/powerpc/perf/power5+-pmu.c:676:5: error: no previous
prototype for function 'init_power5p_pmu' [-Werror,-Wmissing-prototypes]
int init_power5p_pmu(void)
^
arch/powerpc/perf/power5+-pmu.c:676:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
int init_power5p_pmu(void)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/power5+-pmu.o] Error 1
> arch/powerpc/perf/generic-compat-pmu.c:222:5: error: no previous
prototype for function 'init_generic_compat_pmu' [-Werror,-Wmissing-prototypes]
int init_generic_compat_pmu(void)
^
arch/powerpc/perf/generic-compat-pmu.c:222:1: note: declare 'static' if the
function is not intended to be used outside of this translation unit
int init_generic_compat_pmu(void)
^
static
1 error generated.
> arch/powerpc/perf/power6-pmu.c:539:5: error: no previous
prototype for function 'init_power6_pmu' [-Werror,-Wmissing-prototypes]
int init_power6_pmu(void)
^
arch/powerpc/perf/power6-pmu.c:539:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int init_power6_pmu(void)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/power6-pmu.o] Error 1
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/generic-compat-pmu.o] Error
1
> arch/powerpc/perf/power7-pmu.c:444:5: error: no previous
prototype for function 'init_power7_pmu' [-Werror,-Wmissing-prototypes]
int init_power7_pmu(void)
^
arch/powerpc/perf/power7-pmu.c:444:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int init_power7_pmu(void)
^
static
1 error generated.
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/perf] Error 2
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/perf/power7-pmu.o] Error 1
make[3]: Target '__build' not remade because of errors.
arch/powerpc/mm/hugetlbpage.c:220:12: error: no previous prototype for function
'pseries_alloc_bootmem_huge_page' [-Werror,-Wmissing-prototypes]
int __init pseries_alloc_bootmem_huge_page(struct hstate *hstate)
^
arch/powerpc/mm/hugetlbpage.c:220:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
int __init pseries_alloc_bootmem_huge_page(struct hstate *hstate)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/mm/hugetlbpage.o] Error 1
> arch/powerpc/mm/book3s64/radix_tlb.c:895:23: error: variable
'hstart' is uninitialized when used here [-Werror,-Wuninitialized]
__tlbiel_va_range(hstart, hend, pid,
^~~~~~
arch/powerpc/mm/book3s64/radix_tlb.c:882:23: note: initialize the variable
'hstart' to silence this warning
unsigned long hstart, hend;
^
= 0
> arch/powerpc/mm/book3s64/radix_tlb.c:895:31: error: variable
'hend' is uninitialized when used here [-Werror,-Wuninitialized]
__tlbiel_va_range(hstart, hend, pid,
^~~~
arch/powerpc/mm/book3s64/radix_tlb.c:882:29: note: initialize the variable
'hend' to silence this warning
unsigned long hstart, hend;
^
= 0
2 errors generated.
make[4]: *** [scripts/Makefile.build:281: arch/powerpc/mm/book3s64/radix_tlb.o] Error
1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/kvm] Error 2
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: arch/powerpc/mm/book3s64] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/mm] Error 2
> arch/powerpc/platforms/pseries/eeh_pseries.c:45:6: error: no
previous prototype for function 'pseries_pcibios_bus_add_device'
[-Werror,-Wmissing-prototypes]
void pseries_pcibios_bus_add_device(struct pci_dev
*pdev)
^
arch/powerpc/platforms/pseries/eeh_pseries.c:45:1: note: declare 'static' if
the function is not intended to be used outside of this translation unit
void pseries_pcibios_bus_add_device(struct pci_dev *pdev)
^
static
1 error generated.
make[4]: *** [scripts/Makefile.build:280: arch/powerpc/platforms/pseries/eeh_pseries.o]
Error 1
arch/powerpc/platforms/pseries/smp.c:90: warning: Function parameter or member
'lcpu' not described in 'smp_startup_cpu'
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/lib] Error 2
arch/powerpc/platforms/pseries/vio.c:50: warning: cannot understand function prototype:
'struct vio_cmo_pool '
arch/powerpc/platforms/pseries/vio.c:67: warning: cannot understand function prototype:
'struct vio_cmo_dev_entry '
arch/powerpc/platforms/pseries/vio.c:87: warning: cannot understand function prototype:
'struct vio_cmo '
arch/powerpc/platforms/pseries/vio.c:697: warning: Function parameter or member
'viodev' not described in 'vio_cmo_bus_probe'
arch/powerpc/platforms/pseries/vio.c:806: warning: Function parameter or member
'viodev' not described in 'vio_cmo_bus_remove'
arch/powerpc/platforms/pseries/vio.c:1108: warning: Function parameter or member
'vdev' not described in 'vio_h_cop_sync'
arch/powerpc/platforms/pseries/vio.c:1108: warning: Function parameter or member
'op' not described in 'vio_h_cop_sync'
arch/powerpc/platforms/pseries/vio.c:1286: warning: Function parameter or member
'owner' not described in '__vio_register_driver'
arch/powerpc/platforms/pseries/vio.c:1286: warning: Function parameter or member
'mod_name' not described in '__vio_register_driver'
arch/powerpc/platforms/pseries/lparcfg.c:224: warning: Function parameter or member
'm' not described in 'parse_mpp_data'
arch/powerpc/platforms/pseries/lparcfg.c:262: warning: Function parameter or member
'm' not described in 'parse_mpp_x_data'
arch/powerpc/platforms/pseries/lparcfg.c:547: warning: Function parameter or member
'entitlement' not described in 'update_mpp'
arch/powerpc/platforms/pseries/lparcfg.c:547: warning: Function parameter or member
'weight' not described in 'update_mpp'
arch/powerpc/kernel/sys_ppc32.c:51:15: error: no previous prototype for function
'compat_sys_mmap2' [-Werror,-Wmissing-prototypes]
unsigned long compat_sys_mmap2(unsigned long addr, size_t len,
^
arch/powerpc/kernel/sys_ppc32.c:51:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
unsigned long compat_sys_mmap2(unsigned long addr, size_t len,
^
static
arch/powerpc/kernel/sys_ppc32.c:64:16: error: no previous prototype for function
'compat_sys_pread64' [-Werror,-Wmissing-prototypes]
compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t
count,
^
arch/powerpc/kernel/sys_ppc32.c:64:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
compat_ssize_t compat_sys_pread64(unsigned int fd, char __user *ubuf, compat_size_t
count,
^
static
arch/powerpc/kernel/sys_ppc32.c:70:16: error: no previous prototype for function
'compat_sys_pwrite64' [-Werror,-Wmissing-prototypes]
compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf,
compat_size_t count,
^
arch/powerpc/kernel/sys_ppc32.c:70:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
compat_ssize_t compat_sys_pwrite64(unsigned int fd, const char __user *ubuf,
compat_size_t count,
^
static
arch/powerpc/kernel/sys_ppc32.c:76:16: error: no previous prototype for function
'compat_sys_readahead' [-Werror,-Wmissing-prototypes]
compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offhi, u32 offlo, u32 count)
^
arch/powerpc/kernel/sys_ppc32.c:76:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
compat_ssize_t compat_sys_readahead(int fd, u32 r4, u32 offhi, u32 offlo, u32 count)
^
static
arch/powerpc/kernel/sys_ppc32.c:81:16: error: no previous prototype for function
'compat_sys_truncate64' [-Werror,-Wmissing-prototypes]
asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4,
^
arch/powerpc/kernel/sys_ppc32.c:81:12: note: declare 'static' if the function
is not intended to be used outside of this translation unit
asmlinkage int compat_sys_truncate64(const char __user * path, u32 reg4,
^
static
arch/powerpc/kernel/sys_ppc32.c:87:17: error: no previous prototype for function
'compat_sys_fallocate' [-Werror,-Wmissing-prototypes]
asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
^
arch/powerpc/kernel/sys_ppc32.c:87:12: note: declare 'static' if the function
is not intended to be used outside of this translation unit
asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo,
^
static
arch/powerpc/kernel/sys_ppc32.c:94:16: error: no previous prototype for function
'compat_sys_ftruncate64' [-Werror,-Wmissing-prototypes]
asmlinkage int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long high,
^
arch/powerpc/kernel/sys_ppc32.c:94:12: note: declare 'static' if the function
is not intended to be used outside of this translation unit
asmlinkage int compat_sys_ftruncate64(unsigned int fd, u32 reg4, unsigned long high,
^
static
arch/powerpc/kernel/sys_ppc32.c:100:6: error: no previous prototype for function
'ppc32_fadvise64' [-Werror,-Wmissing-prototypes]
long ppc32_fadvise64(int fd, u32 unused, u32 offset_high, u32 offset_low,
^
arch/powerpc/kernel/sys_ppc32.c:100:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
long ppc32_fadvise64(int fd, u32 unused, u32 offset_high, u32 offset_low,
^
static
arch/powerpc/kernel/sys_ppc32.c:107:17: error: no previous prototype for function
'compat_sys_sync_file_range2' [-Werror,-Wmissing-prototypes]
asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags,
^
arch/powerpc/kernel/sys_ppc32.c:107:12: note: declare 'static' if the function
is not intended to be used outside of this translation unit
asmlinkage long compat_sys_sync_file_range2(int fd, unsigned int flags,
^
static
9 errors generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/kernel/sys_ppc32.o] Error 1
arch/powerpc/kernel/setup_64.c:257:13: error: no previous prototype for function
'record_spr_defaults' [-Werror,-Wmissing-prototypes]
void __init record_spr_defaults(void)
^
arch/powerpc/kernel/setup_64.c:257:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void __init record_spr_defaults(void)
^
static
arch/powerpc/kernel/setup_64.c:282:32: error: no previous prototype for function
'early_setup' [-Werror,-Wmissing-prototypes]
void __init __nostackprotector early_setup(unsigned long dt_ptr)
^
arch/powerpc/kernel/setup_64.c:282:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void __init __nostackprotector early_setup(unsigned long dt_ptr)
^
static
arch/powerpc/kernel/setup_64.c:396:6: error: no previous prototype for function
'early_setup_secondary' [-Werror,-Wmissing-prototypes]
void early_setup_secondary(void)
^
arch/powerpc/kernel/setup_64.c:396:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void early_setup_secondary(void)
^
static
arch/powerpc/kernel/setup_64.c:417:6: error: no previous prototype for function
'panic_smp_self_stop' [-Werror,-Wmissing-prototypes]
void panic_smp_self_stop(void)
^
arch/powerpc/kernel/setup_64.c:417:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void panic_smp_self_stop(void)
^
static
4 errors generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/kernel/setup_64.o] Error 1
arch/powerpc/kernel/mce.c:575:14: error: no previous prototype for function
'machine_check_early' [-Werror,-Wmissing-prototypes]
long notrace machine_check_early(struct pt_regs *regs)
^
arch/powerpc/kernel/mce.c:575:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
long notrace machine_check_early(struct pt_regs *regs)
^
static
arch/powerpc/kernel/mce.c:710:6: error: no previous prototype for function
'hmi_exception_realmode' [-Werror,-Wmissing-prototypes]
long hmi_exception_realmode(struct pt_regs *regs)
^
arch/powerpc/kernel/mce.c:710:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
long hmi_exception_realmode(struct pt_regs *regs)
^
static
2 errors generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/kernel/mce.o] Error 1
arch/powerpc/kernel/mce_power.c:630:6: error: no previous prototype for function
'__machine_check_early_realmode_p7' [-Werror,-Wmissing-prototypes]
long __machine_check_early_realmode_p7(struct pt_regs *regs)
^
arch/powerpc/kernel/mce_power.c:630:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
long __machine_check_early_realmode_p7(struct pt_regs *regs)
^
static
arch/powerpc/kernel/mce_power.c:638:6: error: no previous prototype for function
'__machine_check_early_realmode_p8' [-Werror,-Wmissing-prototypes]
long __machine_check_early_realmode_p8(struct pt_regs *regs)
^
arch/powerpc/kernel/mce_power.c:638:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
long __machine_check_early_realmode_p8(struct pt_regs *regs)
^
static
arch/powerpc/kernel/mce_power.c:643:6: error: no previous prototype for function
'__machine_check_early_realmode_p9' [-Werror,-Wmissing-prototypes]
long __machine_check_early_realmode_p9(struct pt_regs *regs)
^
arch/powerpc/kernel/mce_power.c:643:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
long __machine_check_early_realmode_p9(struct pt_regs *regs)
^
static
3 errors generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/kernel/mce_power.o] Error 1
arch/powerpc/kernel/traps.c:1663:6: error: no previous prototype for function
'stack_overflow_exception' [-Werror,-Wmissing-prototypes]
void stack_overflow_exception(struct pt_regs *regs)
^
arch/powerpc/kernel/traps.c:1663:1: note: declare 'static' if the function is
not intended to be used outside of this translation unit
void stack_overflow_exception(struct pt_regs *regs)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/kernel/traps.o] Error 1
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/platforms] Error 2
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: arch/powerpc/platforms/pseries] Error 2
make[3]: Target '__build' not remade because of errors.
arch/powerpc/kernel/eeh.c:633: warning: Function parameter or member 'function'
not described in 'eeh_pci_enable'
arch/powerpc/kernel/eeh.c:869: warning: Function parameter or member 'edev' not
described in 'eeh_set_dev_freset'
arch/powerpc/kernel/eeh.c:869: warning: Excess function parameter 'data'
description in 'eeh_set_dev_freset'
arch/powerpc/kernel/eeh.c:909: warning: Function parameter or member
'include_passed' not described in 'eeh_pe_reset_full'
arch/powerpc/kernel/eeh.c:1611: warning: Function parameter or member
'include_passed' not described in 'eeh_pe_reset'
arch/powerpc/kernel/eeh.c:1686: warning: Function parameter or member 'func'
not described in 'eeh_pe_inject_err'
arch/powerpc/kernel/eeh.c:1686: warning: Excess function parameter 'function'
description in 'eeh_pe_inject_err'
arch/powerpc/kernel/eeh_pe.c:262: warning: cannot understand function prototype:
'struct eeh_pe_get_flag '
arch/powerpc/kernel/eeh_pe.c:584: warning: Function parameter or member 'root'
not described in 'eeh_pe_state_mark'
arch/powerpc/kernel/eeh_pe.c:584: warning: Function parameter or member 'state'
not described in 'eeh_pe_state_mark'
arch/powerpc/kernel/eeh_pe.c:584: warning: Excess function parameter 'pe'
description in 'eeh_pe_state_mark'
arch/powerpc/kernel/eeh_pe.c:602: warning: Function parameter or member 'root'
not described in 'eeh_pe_mark_isolated'
arch/powerpc/kernel/eeh_pe.c:602: warning: Excess function parameter 'pe'
description in 'eeh_pe_mark_isolated'
arch/powerpc/kernel/eeh_pe.c:635: warning: Function parameter or member 'mode'
not described in 'eeh_pe_dev_mode_mark'
arch/powerpc/kernel/eeh_pe.c:650: warning: Function parameter or member 'root'
not described in 'eeh_pe_state_clear'
arch/powerpc/kernel/eeh_pe.c:650: warning: Excess function parameter 'data'
description in 'eeh_pe_state_clear'
arch/powerpc/kernel/eeh_pe.c:845: warning: Function parameter or member 'edev'
not described in 'eeh_restore_one_device_bars'
arch/powerpc/kernel/eeh_pe.c:845: warning: Excess function parameter 'data'
description in 'eeh_restore_one_device_bars'
> arch/powerpc/kernel/compat_audit.c:30:5: error: no previous
prototype for function 'ppc32_classify_syscall' [-Werror,-Wmissing-prototypes]
int ppc32_classify_syscall(unsigned syscall)
^
arch/powerpc/kernel/compat_audit.c:30:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
int ppc32_classify_syscall(unsigned syscall)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/kernel/compat_audit.o] Error 1
arch/powerpc/kernel/eeh_event.c:40: warning: Function parameter or member
'dummy' not described in 'eeh_event_handler'
arch/powerpc/kernel/dma-iommu.c:183:13: error: no previous prototype for function
'dma_iommu_sync_sg_for_cpu' [-Werror,-Wmissing-prototypes]
extern void dma_iommu_sync_sg_for_cpu(struct device *dev,
^
arch/powerpc/kernel/dma-iommu.c:183:8: note: declare 'static' if the function
is not intended to be used outside of this translation unit
extern void dma_iommu_sync_sg_for_cpu(struct device *dev,
^
arch/powerpc/kernel/dma-iommu.c:190:13: error: no previous prototype for function
'dma_iommu_sync_sg_for_device' [-Werror,-Wmissing-prototypes]
extern void dma_iommu_sync_sg_for_device(struct device *dev,
^
arch/powerpc/kernel/dma-iommu.c:190:8: note: declare 'static' if the function
is not intended to be used outside of this translation unit
extern void dma_iommu_sync_sg_for_device(struct device *dev,
^
2 errors generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/kernel/dma-iommu.o] Error 1
> arch/powerpc/kernel/crash_dump.c:125:6: error: no previous
prototype for function 'crash_free_reserved_phys_range'
[-Werror,-Wmissing-prototypes]
void crash_free_reserved_phys_range(unsigned long
begin, unsigned long end)
^
arch/powerpc/kernel/crash_dump.c:125:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
void crash_free_reserved_phys_range(unsigned long begin, unsigned long end)
^
static
1 error generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/kernel/crash_dump.o] Error 1
arch/powerpc/kernel/optprobes.c:149:6: error: no previous prototype for function
'patch_imm32_load_insns' [-Werror,-Wmissing-prototypes]
void patch_imm32_load_insns(unsigned int val, kprobe_opcode_t *addr)
^
arch/powerpc/kernel/optprobes.c:149:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
void patch_imm32_load_insns(unsigned int val, kprobe_opcode_t *addr)
^
static
arch/powerpc/kernel/optprobes.c:167:6: error: no previous prototype for function
'patch_imm64_load_insns' [-Werror,-Wmissing-prototypes]
void patch_imm64_load_insns(unsigned long val, int reg, kprobe_opcode_t *addr)
^
arch/powerpc/kernel/optprobes.c:167:1: note: declare 'static' if the function
is not intended to be used outside of this translation unit
void patch_imm64_load_insns(unsigned long val, int reg, kprobe_opcode_t *addr)
^
static
2 errors generated.
make[3]: *** [scripts/Makefile.build:280: arch/powerpc/kernel/optprobes.o] Error 1
arch/powerpc/kernel/smp.c:539:6: error: no previous prototype for function
'tick_broadcast' [-Werror,-Wmissing-prototypes]
void tick_broadcast(const struct cpumask *mask)
^
arch/powerpc/kernel/smp.c:539:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void tick_broadcast(const struct cpumask *mask)
^
static
arch/powerpc/kernel/smp.c:549:6: error: no previous prototype for function
'debugger_ipi_callback' [-Werror,-Wmissing-prototypes]
void debugger_ipi_callback(struct pt_regs *regs)
^
arch/powerpc/kernel/smp.c:549:1: note: declare 'static' if the function is not
intended to be used outside of this translation unit
void debugger_ipi_callback(struct pt_regs *regs)
^
static
2 errors generated.
make[3]: *** [scripts/Makefile.build:281: arch/powerpc/kernel/smp.o] Error 1
arch/powerpc/kernel/pci_dn.c:486: warning: Function parameter or member 'phb'
not described in 'pci_devs_phb_init_dynamic'
arch/powerpc/kernel/uprobes.c:40: warning: Function parameter or member
'auprobe' not described in 'arch_uprobe_analyze_insn'
arch/powerpc/kernel/uprobes.c:40: warning: Excess function parameter
'arch_uprobe' description in 'arch_uprobe_analyze_insn'
arch/powerpc/kernel/eeh_driver.c:142: warning: Function parameter or member
'edev' not described in 'eeh_disable_irq'
arch/powerpc/kernel/eeh_driver.c:142: warning: Excess function parameter 'dev'
description in 'eeh_disable_irq'
arch/powerpc/kernel/eeh_driver.c:165: warning: Function parameter or member
'edev' not described in 'eeh_enable_irq'
arch/powerpc/kernel/eeh_driver.c:165: warning: Excess function parameter 'dev'
description in 'eeh_enable_irq'
arch/powerpc/kernel/eeh_driver.c:327: warning: Function parameter or member
'pdev' not described in 'eeh_report_error'
arch/powerpc/kernel/eeh_driver.c:353: warning: Function parameter or member
'pdev' not described in 'eeh_report_mmio_enabled'
arch/powerpc/kernel/eeh_driver.c:373: warning: Function parameter or member
'pdev' not described in 'eeh_report_reset'
arch/powerpc/kernel/eeh_driver.c:419: warning: Function parameter or member
'pdev' not described in 'eeh_report_resume'
arch/powerpc/kernel/eeh_driver.c:445: warning: Function parameter or member
'pdev' not described in 'eeh_report_failure'
arch/powerpc/kernel/isa-bridge.c:142: warning: Function parameter or member
'hose' not described in 'isa_bridge_find_early'
arch/powerpc/kernel/isa-bridge.c:188: warning: Function parameter or member
'np' not described in 'isa_bridge_init_non_pci'
arch/powerpc/kernel/isa-bridge.c:277: warning: Function parameter or member
'pdev' not described in 'isa_bridge_find_late'
arch/powerpc/kernel/isa-bridge.c:277: warning: Function parameter or member
'devnode' not described in 'isa_bridge_find_late'
arch/powerpc/kernel/isa-bridge.c:322: warning: Function parameter or member
'nb' not described in 'isa_bridge_notify'
arch/powerpc/kernel/isa-bridge.c:322: warning: Function parameter or member
'action' not described in 'isa_bridge_notify'
arch/powerpc/kernel/isa-bridge.c:322: warning: Function parameter or member
'data' not described in 'isa_bridge_notify'
arch/powerpc/kernel/pci_of_scan.c:23: warning: Function parameter or member
'np' not described in 'get_int_prop'
arch/powerpc/kernel/pci_of_scan.c:23: warning: Function parameter or member
'name' not described in 'get_int_prop'
arch/powerpc/kernel/pci_of_scan.c:23: warning: Function parameter or member
'def' not described in 'get_int_prop'
arch/powerpc/kernel/pci_of_scan.c:61: warning: Function parameter or member
'ss' not described in 'OF_PCI_ADDR0_SPACE'
arch/powerpc/kernel/pci_of_scan.c:61: warning: Excess function parameter
'addr0' description in 'OF_PCI_ADDR0_SPACE'
arch/powerpc/kernel/pci_of_scan.c:61: warning: Excess function parameter
'bridge' description in 'OF_PCI_ADDR0_SPACE'
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: arch/powerpc/kernel] Error 2
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1764: arch/powerpc] Error 2
make[1]: Target '__all' not remade because of errors.
..
vim +/xive_debug_show_cpu +1568 arch/powerpc/sysdev/xive/common.c
930914b7d528fc Cédric Le Goater 2020-03-06 1567
930914b7d528fc Cédric Le Goater 2020-03-06 @1568 void xive_debug_show_cpu(struct seq_file
*m, int cpu)
930914b7d528fc Cédric Le Goater 2020-03-06 1569 {
930914b7d528fc Cédric Le Goater 2020-03-06 1570 struct xive_cpu *xc = per_cpu(xive_cpu,
cpu);
930914b7d528fc Cédric Le Goater 2020-03-06 1571
930914b7d528fc Cédric Le Goater 2020-03-06 1572 seq_printf(m, "CPU %d:",
cpu);
930914b7d528fc Cédric Le Goater 2020-03-06 1573 if (xc) {
930914b7d528fc Cédric Le Goater 2020-03-06 1574 seq_printf(m, "pp=%02x CPPR=%02x
", xc->pending_prio, xc->cppr);
930914b7d528fc Cédric Le Goater 2020-03-06 1575
930914b7d528fc Cédric Le Goater 2020-03-06 1576 #ifdef CONFIG_SMP
930914b7d528fc Cédric Le Goater 2020-03-06 1577 {
930914b7d528fc Cédric Le Goater 2020-03-06 1578 u64 val =
xive_esb_read(&xc->ipi_data, XIVE_ESB_GET);
930914b7d528fc Cédric Le Goater 2020-03-06 1579
930914b7d528fc Cédric Le Goater 2020-03-06 1580 seq_printf(m, "IPI=0x%08x
PQ=%c%c ", xc->hw_ipi,
930914b7d528fc Cédric Le Goater 2020-03-06 1581 val & XIVE_ESB_VAL_P ?
'P' : '-',
930914b7d528fc Cédric Le Goater 2020-03-06 1582 val & XIVE_ESB_VAL_Q ?
'Q' : '-');
930914b7d528fc Cédric Le Goater 2020-03-06 1583 }
930914b7d528fc Cédric Le Goater 2020-03-06 1584 #endif
930914b7d528fc Cédric Le Goater 2020-03-06 1585 {
930914b7d528fc Cédric Le Goater 2020-03-06 1586 struct xive_q *q =
&xc->queue[xive_irq_priority];
930914b7d528fc Cédric Le Goater 2020-03-06 1587 u32 i0, i1, idx;
930914b7d528fc Cédric Le Goater 2020-03-06 1588
930914b7d528fc Cédric Le Goater 2020-03-06 1589 if (q->qpage) {
930914b7d528fc Cédric Le Goater 2020-03-06 1590 idx = q->idx;
930914b7d528fc Cédric Le Goater 2020-03-06 1591 i0 = be32_to_cpup(q->qpage +
idx);
930914b7d528fc Cédric Le Goater 2020-03-06 1592 idx = (idx + 1) & q->msk;
930914b7d528fc Cédric Le Goater 2020-03-06 1593 i1 = be32_to_cpup(q->qpage +
idx);
930914b7d528fc Cédric Le Goater 2020-03-06 1594 seq_printf(m, "EQ idx=%d T=%d
%08x %08x ...",
930914b7d528fc Cédric Le Goater 2020-03-06 1595 q->idx, q->toggle, i0,
i1);
930914b7d528fc Cédric Le Goater 2020-03-06 1596 }
930914b7d528fc Cédric Le Goater 2020-03-06 1597 }
930914b7d528fc Cédric Le Goater 2020-03-06 1598 }
930914b7d528fc Cédric Le Goater 2020-03-06 1599 seq_puts(m, "\n");
930914b7d528fc Cédric Le Goater 2020-03-06 1600 }
930914b7d528fc Cédric Le Goater 2020-03-06 1601
930914b7d528fc Cédric Le Goater 2020-03-06 @1602 void xive_debug_show_irq(struct seq_file
*m, u32 hw_irq, struct irq_data *d)
930914b7d528fc Cédric Le Goater 2020-03-06 1603 {
930914b7d528fc Cédric Le Goater 2020-03-06 1604 struct irq_chip *chip =
irq_data_get_irq_chip(d);
930914b7d528fc Cédric Le Goater 2020-03-06 1605 int rc;
930914b7d528fc Cédric Le Goater 2020-03-06 1606 u32 target;
930914b7d528fc Cédric Le Goater 2020-03-06 1607 u8 prio;
930914b7d528fc Cédric Le Goater 2020-03-06 1608 u32 lirq;
930914b7d528fc Cédric Le Goater 2020-03-06 1609
930914b7d528fc Cédric Le Goater 2020-03-06 1610 if (!is_xive_irq(chip))
930914b7d528fc Cédric Le Goater 2020-03-06 1611 return;
930914b7d528fc Cédric Le Goater 2020-03-06 1612
930914b7d528fc Cédric Le Goater 2020-03-06 1613 rc =
xive_ops->get_irq_config(hw_irq, &target, &prio, &lirq);
930914b7d528fc Cédric Le Goater 2020-03-06 1614 if (rc) {
930914b7d528fc Cédric Le Goater 2020-03-06 1615 seq_printf(m, "IRQ 0x%08x : no
config rc=%d\n", hw_irq, rc);
930914b7d528fc Cédric Le Goater 2020-03-06 1616 return;
930914b7d528fc Cédric Le Goater 2020-03-06 1617 }
930914b7d528fc Cédric Le Goater 2020-03-06 1618
930914b7d528fc Cédric Le Goater 2020-03-06 1619 seq_printf(m, "IRQ 0x%08x :
target=0x%x prio=%02x lirq=0x%x ",
930914b7d528fc Cédric Le Goater 2020-03-06 1620 hw_irq, target, prio, lirq);
930914b7d528fc Cédric Le Goater 2020-03-06 1621
930914b7d528fc Cédric Le Goater 2020-03-06 1622 if (d) {
930914b7d528fc Cédric Le Goater 2020-03-06 1623 struct xive_irq_data *xd =
irq_data_get_irq_handler_data(d);
930914b7d528fc Cédric Le Goater 2020-03-06 1624 u64 val = xive_esb_read(xd,
XIVE_ESB_GET);
930914b7d528fc Cédric Le Goater 2020-03-06 1625
930914b7d528fc Cédric Le Goater 2020-03-06 1626 seq_printf(m, "flags=%c%c%c
PQ=%c%c",
930914b7d528fc Cédric Le Goater 2020-03-06 1627 xd->flags &
XIVE_IRQ_FLAG_STORE_EOI ? 'S' : ' ',
930914b7d528fc Cédric Le Goater 2020-03-06 1628 xd->flags &
XIVE_IRQ_FLAG_LSI ? 'L' : ' ',
930914b7d528fc Cédric Le Goater 2020-03-06 1629 xd->flags &
XIVE_IRQ_FLAG_H_INT_ESB ? 'H' : ' ',
930914b7d528fc Cédric Le Goater 2020-03-06 1630 val & XIVE_ESB_VAL_P ?
'P' : '-',
930914b7d528fc Cédric Le Goater 2020-03-06 1631 val & XIVE_ESB_VAL_Q ?
'Q' : '-');
930914b7d528fc Cédric Le Goater 2020-03-06 1632 }
930914b7d528fc Cédric Le Goater 2020-03-06 1633 seq_puts(m, "\n");
930914b7d528fc Cédric Le Goater 2020-03-06 1634 }
930914b7d528fc Cédric Le Goater 2020-03-06 1635
:::::: The code at line 1568 was first introduced by commit
:::::: 930914b7d528fc6b0249bffc00564100bcf6ef75 powerpc/xive: Add a debugfs file to dump
internal XIVE state
:::::: TO: Cédric Le Goater <clg(a)kaod.org>
:::::: CC: Michael Ellerman <mpe(a)ellerman.id.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org