Buildresult: linux-next/sh-allyesconfig/sh4-gcc11 built on Jul 6 2023, 13:09
kisskb
Revisions
|
Branches
|
Compilers
|
Configs
|
Build Results
|
Build Failures
|
Status:
Failed
Date/Time:
Jul 6 2023, 13:09
Duration:
0:04:17.703274
Builder:
alpine2
Revision:
Add linux-next specific files for 20230706 (
c36ac601a98fb148147640bae219108ee81566f8)
Target:
linux-next/sh-allyesconfig/sh4-gcc11
Branch:
linux-next
Compiler:
sh4-gcc11
(sh4-linux-gcc (GCC) 11.3.0 / GNU ld (GNU Binutils) 2.38)
Config:
allyesconfig
(
download
)
Log:
Download original
Possible errors
arch/sh/kernel/machine_kexec.c:41:34: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] arch/sh/kernel/machine_kexec.c:46:35: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] arch/sh/kernel/machine_kexec.c:50:31: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] arch/sh/kernel/machine_kexec.c:54:30: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:57:43: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:58:43: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:59:43: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:60:43: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:62:63: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:69:27: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] arch/sh/kernel/machine_kexec.c:83:26: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:101:26: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:105:58: error: invalid use of undefined type 'struct kimage' arch/sh/kernel/machine_kexec.c:111:20: error: passing argument 1 of 'kexec_info' from incompatible pointer type [-Werror=incompatible-pointer-types] arch/sh/kernel/machine_kexec.c:119:49: error: invalid use of undefined type 'struct kimage' cc1: all warnings being treated as errors make[5]: *** [scripts/Makefile.build:243: arch/sh/kernel/machine_kexec.o] Error 1 make[4]: *** [scripts/Makefile.build:477: arch/sh/kernel] Error 2 make[3]: *** [scripts/Makefile.build:477: arch/sh] Error 2 {standard input}:1097: Error: unknown pseudo-op: `.glo' sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 make[6]: *** [scripts/Makefile.build:243: drivers/net/pcs/pcs-xpcs.o] Error 4 make[5]: *** [scripts/Makefile.build:477: drivers/net/pcs] Error 2 kernel/kexec.c:33:30: error: implicit declaration of function 'phys_to_boot_phys' [-Werror=implicit-function-declaration] kernel/kexec.c:43:14: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:44:14: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:45:21: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:45:62: error: invalid application of 'sizeof' to incomplete type 'struct kexec_segment' kernel/kexec.c:49:22: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:50:22: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:50:31: error: 'KEXEC_TYPE_CRASH' undeclared (first use in this function); did you mean 'KEXEC_ON_CRASH'? kernel/kexec.c:63:14: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:63:36: error: implicit declaration of function 'kimage_alloc_control_pages' [-Werror=implicit-function-declaration] kernel/kexec.c:64:54: error: 'KEXEC_CONTROL_PAGE_SIZE' undeclared (first use in this function) kernel/kexec.c:65:19: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:71:22: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:72:27: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:81:37: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:103:31: error: 'kexec_crash_image' undeclared (first use in this function); did you mean 'kexec_crash_loaded'? kernel/kexec.c:105:25: error: implicit declaration of function 'arch_kexec_unprotect_crashkres' [-Werror=implicit-function-declaration] kernel/kexec.c:107:31: error: 'kexec_image' undeclared (first use in this function) include/linux/atomic/atomic-instrumented.h:4715:55: error: invalid type argument of unary '*' (have 'int') include/linux/atomic/atomic-instrumented.h:4715:38: error: passing argument 1 of 'instrument_atomic_read_write' makes pointer from integer without a cast [-Werror=int-conversion] arch/sh/include/asm/cmpxchg.h:49:22: error: invalid type argument of unary '*' (have 'int') arch/sh/include/asm/cmpxchg.h:28:37: error: initialization of 'volatile void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] arch/sh/include/asm/cmpxchg.h:49:75: error: invalid type argument of unary '*' (have 'int') kernel/kexec.c:130:22: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:132:15: error: implicit declaration of function 'machine_kexec_prepare' [-Werror=implicit-function-declaration] kernel/kexec.c:140:15: error: implicit declaration of function 'kimage_crash_copy_vmcoreinfo'; did you mean 'arch_crash_save_vmcoreinfo'? [-Werror=implicit-function-declaration] kernel/kexec.c:145:56: error: invalid use of undefined type 'struct kimage' kernel/kexec.c:152:15: error: implicit declaration of function 'machine_kexec_post_load' [-Werror=implicit-function-declaration] kernel/kexec.c:161:17: error: implicit declaration of function 'arch_kexec_protect_crashkres' [-Werror=implicit-function-declaration] kernel/kexec.c:194:26: error: 'KEXEC_TYPE_CRASH' undeclared (first use in this function); did you mean 'KEXEC_ON_CRASH'? kernel/kexec.c:194:45: error: 'KEXEC_TYPE_DEFAULT' undeclared (first use in this function); did you mean 'KEXEC_ARCH_DEFAULT'? kernel/kexec.c:198:14: error: implicit declaration of function 'kexec_load_permitted' [-Werror=implicit-function-declaration] kernel/kexec.c:218:22: error: 'KEXEC_FLAGS' undeclared (first use in this function); did you mean 'QC_FLAGS'? kernel/kexec.c:241:43: error: 'KEXEC_ARCH' undeclared (first use in this function); did you mean 'KEXEC_ARCH_SH'? kernel/kexec.c:245:73: error: invalid use of undefined type 'struct kexec_segment' kernel/kexec.c:245:63: error: invalid application of 'sizeof' to incomplete type 'struct kexec_segment' cc1: all warnings being treated as errors make[4]: *** [scripts/Makefile.build:243: kernel/kexec.o] Error 1 make[4]: *** [scripts/Makefile.build:477: drivers/net] Error 2 make[3]: *** [scripts/Makefile.build:477: kernel] Error 2 make[3]: *** [scripts/Makefile.build:477: drivers] Error 2 make[2]: *** [Makefile:2020: .] Error 2 make[1]: *** [Makefile:234: __sub-make] Error 2 make: *** [Makefile:234: __sub-make] Error 2
Possible warnings (10)
WARNING: unmet direct dependencies detected for KEXEC WARNING: unmet direct dependencies detected for KEXEC WARNING: unmet direct dependencies detected for KEXEC WARNING: unmet direct dependencies detected for KEXEC WARNING: unmet direct dependencies detected for KEXEC <stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] arch/sh/kernel/cpu/sh2/../../entry-common.S:85: Warning: overflow in branch to __restore_all; converted into longer instruction sequence arch/sh/kernel/cpu/sh2/../../entry-common.S:357: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence arch/sh/kernel/cpu/sh2/../../entry-common.S:360: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence {standard input}: Warning: end of file not at end of a line; newline inserted
Full Log
# git rev-parse -q --verify c36ac601a98fb148147640bae219108ee81566f8^{commit} c36ac601a98fb148147640bae219108ee81566f8 already have revision, skipping fetch # git checkout -q -f -B kisskb c36ac601a98fb148147640bae219108ee81566f8 # git clean -qxdf # < git log -1 # commit c36ac601a98fb148147640bae219108ee81566f8 # Author: Stephen Rothwell <sfr@canb.auug.org.au> # Date: Thu Jul 6 11:55:48 2023 +1000 # # Add linux-next specific files for 20230706 # # Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux-ld --version # < git log --format=%s --max-count=1 c36ac601a98fb148147640bae219108ee81566f8 # make -s -j 160 ARCH=sh O=/kisskb/build/linux-next_allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- allyesconfig WARNING: unmet direct dependencies detected for KEXEC Depends on [n]: ARCH_SUPPORTS_KEXEC [=n] Selected by [y]: - CRASH_DUMP [=y] && ARCH_SUPPORTS_CRASH_DUMP [=y] # Added to kconfig CONFIG_BUILD_DOCSRC=n # Added to kconfig CONFIG_MODULE_SIG=n # < make -s -j 160 ARCH=sh O=/kisskb/build/linux-next_allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- help # make -s -j 160 ARCH=sh O=/kisskb/build/linux-next_allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- olddefconfig WARNING: unmet direct dependencies detected for KEXEC Depends on [n]: ARCH_SUPPORTS_KEXEC [=n] Selected by [y]: - CRASH_DUMP [=y] && ARCH_SUPPORTS_CRASH_DUMP [=y] # make -s -j 160 ARCH=sh O=/kisskb/build/linux-next_allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- WARNING: unmet direct dependencies detected for KEXEC Depends on [n]: ARCH_SUPPORTS_KEXEC [=n] Selected by [y]: - CRASH_DUMP [=y] && ARCH_SUPPORTS_CRASH_DUMP [=y] WARNING: unmet direct dependencies detected for KEXEC Depends on [n]: ARCH_SUPPORTS_KEXEC [=n] Selected by [y]: - CRASH_DUMP [=y] && ARCH_SUPPORTS_CRASH_DUMP [=y] WARNING: unmet direct dependencies detected for KEXEC Depends on [n]: ARCH_SUPPORTS_KEXEC [=n] Selected by [y]: - CRASH_DUMP [=y] && ARCH_SUPPORTS_CRASH_DUMP [=y] Generating include/generated/machtypes.h <stdin>:1519:2: warning: #warning syscall clone3 not implemented [-Wcpp] /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S: Assembler messages: /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:85: Warning: overflow in branch to __restore_all; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:357: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/cpu/sh2/../../entry-common.S:360: Warning: overflow in branch to syscall_exit_work; converted into longer instruction sequence /kisskb/src/arch/sh/kernel/machine_kexec.c:41:34: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 41 | int machine_kexec_prepare(struct kimage *image) | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:46:35: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 46 | void machine_kexec_cleanup(struct kimage *image) | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:50:31: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 50 | static void kexec_info(struct kimage *image) | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c: In function 'kexec_info': /kisskb/src/arch/sh/kernel/machine_kexec.c:54:30: error: invalid use of undefined type 'struct kimage' 54 | for (i = 0; i < image->nr_segments; i++) { | ^~ In file included from /kisskb/src/include/asm-generic/bug.h:22, from /kisskb/src/arch/sh/include/asm/bug.h:112, from /kisskb/src/include/linux/bug.h:5, from /kisskb/src/include/linux/mmdebug.h:5, from /kisskb/src/include/linux/mm.h:6, from /kisskb/src/arch/sh/kernel/machine_kexec.c:9: /kisskb/src/arch/sh/kernel/machine_kexec.c:57:43: error: invalid use of undefined type 'struct kimage' 57 | (unsigned int)image->segment[i].mem, | ^~ /kisskb/src/include/linux/printk.h:427:33: note: in definition of macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:55:17: note: in expansion of macro 'printk' 55 | printk(" segment[%d]: 0x%08x - 0x%08x (0x%08x)\n", | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:58:43: error: invalid use of undefined type 'struct kimage' 58 | (unsigned int)image->segment[i].mem + | ^~ /kisskb/src/include/linux/printk.h:427:33: note: in definition of macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:55:17: note: in expansion of macro 'printk' 55 | printk(" segment[%d]: 0x%08x - 0x%08x (0x%08x)\n", | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:59:43: error: invalid use of undefined type 'struct kimage' 59 | image->segment[i].memsz, | ^~ /kisskb/src/include/linux/printk.h:427:33: note: in definition of macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:55:17: note: in expansion of macro 'printk' 55 | printk(" segment[%d]: 0x%08x - 0x%08x (0x%08x)\n", | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:60:43: error: invalid use of undefined type 'struct kimage' 60 | (unsigned int)image->segment[i].memsz); | ^~ /kisskb/src/include/linux/printk.h:427:33: note: in definition of macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:55:17: note: in expansion of macro 'printk' 55 | printk(" segment[%d]: 0x%08x - 0x%08x (0x%08x)\n", | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:62:63: error: invalid use of undefined type 'struct kimage' 62 | printk(" start : 0x%08x\n\n", (unsigned int)image->start); | ^~ /kisskb/src/include/linux/printk.h:427:33: note: in definition of macro 'printk_index_wrap' 427 | _p_func(_fmt, ##__VA_ARGS__); \ | ^~~~~~~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:62:9: note: in expansion of macro 'printk' 62 | printk(" start : 0x%08x\n\n", (unsigned int)image->start); | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c: At top level: /kisskb/src/arch/sh/kernel/machine_kexec.c:69:27: error: 'struct kimage' declared inside parameter list will not be visible outside of this definition or declaration [-Werror] 69 | void machine_kexec(struct kimage *image) | ^~~~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c: In function 'machine_kexec': /kisskb/src/arch/sh/kernel/machine_kexec.c:83:26: error: invalid use of undefined type 'struct kimage' 83 | for (ptr = &image->head; (entry = *ptr) && !(entry & IND_DONE); | ^~ /kisskb/src/arch/sh/kernel/machine_kexec.c:101:26: error: invalid use of undefined type 'struct kimage' 101 | page_list = image->head; | ^~ In file included from /kisskb/src/arch/sh/kernel/machine_kexec.c:9: /kisskb/src/arch/sh/kernel/machine_kexec.c:105:58: error: invalid use of undefined type 'struct kimage' 105 | (unsigned long)page_address(image->control_code_page); | ^~ /kisskb/src/include/linux/mm.h:2222:48: note: in definition of macro 'page_address' 2222 | #define page_address(page) lowmem_page_address(page) | ^~~~ /kisskb/src/arch/sh/kernel/machine_kexec.c:111:20: error: passing argument 1 of 'kexec_info' from incompatible pointer type [-Werror=incompatible-pointer-types] 111 | kexec_info(image); | ^~~~~ | | | struct kimage * /kisskb/src/arch/sh/kernel/machine_kexec.c:50:39: note: expected 'struct kimage *' but argument is of type 'struct kimage *' 50 | static void kexec_info(struct kimage *image) | ~~~~~~~~~~~~~~~^~~~~ In file included from /kisskb/src/include/linux/kexec.h:19, from /kisskb/src/arch/sh/kernel/machine_kexec.c:10: /kisskb/src/arch/sh/kernel/machine_kexec.c:119:49: error: invalid use of undefined type 'struct kimage' 119 | (unsigned long)phys_to_virt(image->start)); | ^~ /kisskb/src/arch/sh/include/asm/io.h:239:43: note: in definition of macro 'phys_to_virt' 239 | #define phys_to_virt(address) ((void *)(address)) | ^~~~~~~ cc1: all warnings being treated as errors make[5]: *** [/kisskb/src/scripts/Makefile.build:243: arch/sh/kernel/machine_kexec.o] Error 1 make[4]: *** [/kisskb/src/scripts/Makefile.build:477: arch/sh/kernel] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:477: arch/sh] Error 2 make[3]: *** Waiting for unfinished jobs.... {standard input}: Assembler messages: {standard input}: Warning: end of file not at end of a line; newline inserted {standard input}:1097: Error: unknown pseudo-op: `.glo' sh4-linux-gcc: internal compiler error: Segmentation fault signal terminated program cc1 Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. make[6]: *** [/kisskb/src/scripts/Makefile.build:243: drivers/net/pcs/pcs-xpcs.o] Error 4 make[5]: *** [/kisskb/src/scripts/Makefile.build:477: drivers/net/pcs] Error 2 make[5]: *** Waiting for unfinished jobs.... /kisskb/src/kernel/kexec.c: In function 'kimage_alloc_init': /kisskb/src/kernel/kexec.c:33:30: error: implicit declaration of function 'phys_to_boot_phys' [-Werror=implicit-function-declaration] 33 | if ((entry < phys_to_boot_phys(crashk_res.start)) || | ^~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:43:14: error: invalid use of undefined type 'struct kimage' 43 | image->start = entry; | ^~ /kisskb/src/kernel/kexec.c:44:14: error: invalid use of undefined type 'struct kimage' 44 | image->nr_segments = nr_segments; | ^~ /kisskb/src/kernel/kexec.c:45:21: error: invalid use of undefined type 'struct kimage' 45 | memcpy(image->segment, segments, nr_segments * sizeof(*segments)); | ^~ /kisskb/src/kernel/kexec.c:45:62: error: invalid application of 'sizeof' to incomplete type 'struct kexec_segment' 45 | memcpy(image->segment, segments, nr_segments * sizeof(*segments)); | ^ /kisskb/src/kernel/kexec.c:49:22: error: invalid use of undefined type 'struct kimage' 49 | image->control_page = crashk_res.start; | ^~ /kisskb/src/kernel/kexec.c:50:22: error: invalid use of undefined type 'struct kimage' 50 | image->type = KEXEC_TYPE_CRASH; | ^~ /kisskb/src/kernel/kexec.c:50:31: error: 'KEXEC_TYPE_CRASH' undeclared (first use in this function); did you mean 'KEXEC_ON_CRASH'? 50 | image->type = KEXEC_TYPE_CRASH; | ^~~~~~~~~~~~~~~~ | KEXEC_ON_CRASH /kisskb/src/kernel/kexec.c:50:31: note: each undeclared identifier is reported only once for each function it appears in /kisskb/src/kernel/kexec.c:63:14: error: invalid use of undefined type 'struct kimage' 63 | image->control_code_page = kimage_alloc_control_pages(image, | ^~ /kisskb/src/kernel/kexec.c:63:36: error: implicit declaration of function 'kimage_alloc_control_pages' [-Werror=implicit-function-declaration] 63 | image->control_code_page = kimage_alloc_control_pages(image, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:64:54: error: 'KEXEC_CONTROL_PAGE_SIZE' undeclared (first use in this function) 64 | get_order(KEXEC_CONTROL_PAGE_SIZE)); | ^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:65:19: error: invalid use of undefined type 'struct kimage' 65 | if (!image->control_code_page) { | ^~ /kisskb/src/kernel/kexec.c:71:22: error: invalid use of undefined type 'struct kimage' 71 | image->swap_page = kimage_alloc_control_pages(image, 0); | ^~ /kisskb/src/kernel/kexec.c:72:27: error: invalid use of undefined type 'struct kimage' 72 | if (!image->swap_page) { | ^~ /kisskb/src/kernel/kexec.c:81:37: error: invalid use of undefined type 'struct kimage' 81 | kimage_free_page_list(&image->control_pages); | ^~ /kisskb/src/kernel/kexec.c: In function 'do_kexec_load': /kisskb/src/kernel/kexec.c:103:31: error: 'kexec_crash_image' undeclared (first use in this function); did you mean 'kexec_crash_loaded'? 103 | dest_image = &kexec_crash_image; | ^~~~~~~~~~~~~~~~~ | kexec_crash_loaded /kisskb/src/kernel/kexec.c:105:25: error: implicit declaration of function 'arch_kexec_unprotect_crashkres' [-Werror=implicit-function-declaration] 105 | arch_kexec_unprotect_crashkres(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:107:31: error: 'kexec_image' undeclared (first use in this function) 107 | dest_image = &kexec_image; | ^~~~~~~~~~~ In file included from /kisskb/src/include/linux/atomic.h:82, from /kisskb/src/include/asm-generic/bitops/atomic.h:5, from /kisskb/src/arch/sh/include/asm/bitops.h:23, from /kisskb/src/include/linux/bitops.h:68, from /kisskb/src/include/linux/log2.h:12, from /kisskb/src/include/asm-generic/div64.h:55, from ./arch/sh/include/generated/asm/div64.h:1, from /kisskb/src/include/linux/math.h:6, from /kisskb/src/include/linux/math64.h:6, from /kisskb/src/include/linux/time64.h:5, from /kisskb/src/include/linux/restart_block.h:10, from /kisskb/src/include/linux/thread_info.h:14, from /kisskb/src/include/asm-generic/preempt.h:5, from ./arch/sh/include/generated/asm/preempt.h:1, from /kisskb/src/include/linux/preempt.h:79, from /kisskb/src/include/linux/spinlock.h:56, from /kisskb/src/include/linux/mmzone.h:8, from /kisskb/src/include/linux/gfp.h:7, from /kisskb/src/include/linux/mm.h:7, from /kisskb/src/kernel/kexec.c:10: /kisskb/src/include/linux/atomic/atomic-instrumented.h:4715:55: error: invalid type argument of unary '*' (have 'int') 4715 | instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \ | ^~~~~~~~~ /kisskb/src/kernel/kexec.c:122:29: note: in expansion of macro 'xchg' 122 | kimage_free(xchg(&kexec_crash_image, NULL)); | ^~~~ /kisskb/src/include/linux/atomic/atomic-instrumented.h:4715:38: error: passing argument 1 of 'instrument_atomic_read_write' makes pointer from integer without a cast [-Werror=int-conversion] 4715 | instrument_atomic_read_write(__ai_ptr, sizeof(*__ai_ptr)); \ | ^~~~~~~~ | | | int /kisskb/src/kernel/kexec.c:122:29: note: in expansion of macro 'xchg' 122 | kimage_free(xchg(&kexec_crash_image, NULL)); | ^~~~ In file included from /kisskb/src/include/linux/atomic/atomic-instrumented.h:17, from /kisskb/src/include/linux/atomic.h:82, from /kisskb/src/include/asm-generic/bitops/atomic.h:5, from /kisskb/src/arch/sh/include/asm/bitops.h:23, from /kisskb/src/include/linux/bitops.h:68, from /kisskb/src/include/linux/log2.h:12, from /kisskb/src/include/asm-generic/div64.h:55, from ./arch/sh/include/generated/asm/div64.h:1, from /kisskb/src/include/linux/math.h:6, from /kisskb/src/include/linux/math64.h:6, from /kisskb/src/include/linux/time64.h:5, from /kisskb/src/include/linux/restart_block.h:10, from /kisskb/src/include/linux/thread_info.h:14, from /kisskb/src/include/asm-generic/preempt.h:5, from ./arch/sh/include/generated/asm/preempt.h:1, from /kisskb/src/include/linux/preempt.h:79, from /kisskb/src/include/linux/spinlock.h:56, from /kisskb/src/include/linux/mmzone.h:8, from /kisskb/src/include/linux/gfp.h:7, from /kisskb/src/include/linux/mm.h:7, from /kisskb/src/kernel/kexec.c:10: /kisskb/src/include/linux/instrumented.h:94:79: note: expected 'const volatile void *' but argument is of type 'int' 94 | static __always_inline void instrument_atomic_read_write(const volatile void *v, size_t size) | ~~~~~~~~~~~~~~~~~~~~~^ In file included from /kisskb/src/arch/sh/include/asm/atomic.h:19, from /kisskb/src/include/linux/atomic.h:7, from /kisskb/src/include/asm-generic/bitops/atomic.h:5, from /kisskb/src/arch/sh/include/asm/bitops.h:23, from /kisskb/src/include/linux/bitops.h:68, from /kisskb/src/include/linux/log2.h:12, from /kisskb/src/include/asm-generic/div64.h:55, from ./arch/sh/include/generated/asm/div64.h:1, from /kisskb/src/include/linux/math.h:6, from /kisskb/src/include/linux/math64.h:6, from /kisskb/src/include/linux/time64.h:5, from /kisskb/src/include/linux/restart_block.h:10, from /kisskb/src/include/linux/thread_info.h:14, from /kisskb/src/include/asm-generic/preempt.h:5, from ./arch/sh/include/generated/asm/preempt.h:1, from /kisskb/src/include/linux/preempt.h:79, from /kisskb/src/include/linux/spinlock.h:56, from /kisskb/src/include/linux/mmzone.h:8, from /kisskb/src/include/linux/gfp.h:7, from /kisskb/src/include/linux/mm.h:7, from /kisskb/src/kernel/kexec.c:10: /kisskb/src/arch/sh/include/asm/cmpxchg.h:49:22: error: invalid type argument of unary '*' (have 'int') 49 | ((__typeof__(*(ptr)))__arch_xchg((ptr),(unsigned long)(x), sizeof(*(ptr)))) | ^~~~~~ /kisskb/src/include/linux/atomic/atomic-arch-fallback.h:12:18: note: in expansion of macro 'arch_xchg' 12 | #define raw_xchg arch_xchg | ^~~~~~~~~ /kisskb/src/include/linux/atomic/atomic-instrumented.h:4716:9: note: in expansion of macro 'raw_xchg' 4716 | raw_xchg(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~ /kisskb/src/kernel/kexec.c:122:29: note: in expansion of macro 'xchg' 122 | kimage_free(xchg(&kexec_crash_image, NULL)); | ^~~~ /kisskb/src/arch/sh/include/asm/cmpxchg.h:28:37: error: initialization of 'volatile void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion] 28 | volatile void *__xchg_ptr = (ptr); \ | ^ /kisskb/src/arch/sh/include/asm/cmpxchg.h:49:30: note: in expansion of macro '__arch_xchg' 49 | ((__typeof__(*(ptr)))__arch_xchg((ptr),(unsigned long)(x), sizeof(*(ptr)))) | ^~~~~~~~~~~ /kisskb/src/include/linux/atomic/atomic-arch-fallback.h:12:18: note: in expansion of macro 'arch_xchg' 12 | #define raw_xchg arch_xchg | ^~~~~~~~~ /kisskb/src/include/linux/atomic/atomic-instrumented.h:4716:9: note: in expansion of macro 'raw_xchg' 4716 | raw_xchg(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~ /kisskb/src/kernel/kexec.c:122:29: note: in expansion of macro 'xchg' 122 | kimage_free(xchg(&kexec_crash_image, NULL)); | ^~~~ /kisskb/src/arch/sh/include/asm/cmpxchg.h:49:75: error: invalid type argument of unary '*' (have 'int') 49 | ((__typeof__(*(ptr)))__arch_xchg((ptr),(unsigned long)(x), sizeof(*(ptr)))) | ^~~~~~ /kisskb/src/arch/sh/include/asm/cmpxchg.h:29:17: note: in definition of macro '__arch_xchg' 29 | switch (size) { \ | ^~~~ /kisskb/src/include/linux/atomic/atomic-arch-fallback.h:12:18: note: in expansion of macro 'arch_xchg' 12 | #define raw_xchg arch_xchg | ^~~~~~~~~ /kisskb/src/include/linux/atomic/atomic-instrumented.h:4716:9: note: in expansion of macro 'raw_xchg' 4716 | raw_xchg(__ai_ptr, __VA_ARGS__); \ | ^~~~~~~~ /kisskb/src/kernel/kexec.c:122:29: note: in expansion of macro 'xchg' 122 | kimage_free(xchg(&kexec_crash_image, NULL)); | ^~~~ /kisskb/src/kernel/kexec.c:130:22: error: invalid use of undefined type 'struct kimage' 130 | image->preserve_context = 1; | ^~ /kisskb/src/kernel/kexec.c:132:15: error: implicit declaration of function 'machine_kexec_prepare' [-Werror=implicit-function-declaration] 132 | ret = machine_kexec_prepare(image); | ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:140:15: error: implicit declaration of function 'kimage_crash_copy_vmcoreinfo'; did you mean 'arch_crash_save_vmcoreinfo'? [-Werror=implicit-function-declaration] 140 | ret = kimage_crash_copy_vmcoreinfo(image); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | arch_crash_save_vmcoreinfo /kisskb/src/kernel/kexec.c:145:56: error: invalid use of undefined type 'struct kimage' 145 | ret = kimage_load_segment(image, &image->segment[i]); | ^~ /kisskb/src/kernel/kexec.c:152:15: error: implicit declaration of function 'machine_kexec_post_load' [-Werror=implicit-function-declaration] 152 | ret = machine_kexec_post_load(image); | ^~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:161:17: error: implicit declaration of function 'arch_kexec_protect_crashkres' [-Werror=implicit-function-declaration] 161 | arch_kexec_protect_crashkres(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c: In function 'kexec_load_check': /kisskb/src/kernel/kexec.c:194:26: error: 'KEXEC_TYPE_CRASH' undeclared (first use in this function); did you mean 'KEXEC_ON_CRASH'? 194 | KEXEC_TYPE_CRASH : KEXEC_TYPE_DEFAULT; | ^~~~~~~~~~~~~~~~ | KEXEC_ON_CRASH /kisskb/src/kernel/kexec.c:194:45: error: 'KEXEC_TYPE_DEFAULT' undeclared (first use in this function); did you mean 'KEXEC_ARCH_DEFAULT'? 194 | KEXEC_TYPE_CRASH : KEXEC_TYPE_DEFAULT; | ^~~~~~~~~~~~~~~~~~ | KEXEC_ARCH_DEFAULT /kisskb/src/kernel/kexec.c:198:14: error: implicit declaration of function 'kexec_load_permitted' [-Werror=implicit-function-declaration] 198 | if (!kexec_load_permitted(image_type)) | ^~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/kexec.c:218:22: error: 'KEXEC_FLAGS' undeclared (first use in this function); did you mean 'QC_FLAGS'? 218 | if ((flags & KEXEC_FLAGS) != (flags & ~KEXEC_ARCH_MASK)) | ^~~~~~~~~~~ | QC_FLAGS /kisskb/src/kernel/kexec.c: In function '__do_sys_kexec_load': /kisskb/src/kernel/kexec.c:241:43: error: 'KEXEC_ARCH' undeclared (first use in this function); did you mean 'KEXEC_ARCH_SH'? 241 | if (((flags & KEXEC_ARCH_MASK) != KEXEC_ARCH) && | ^~~~~~~~~~ | KEXEC_ARCH_SH /kisskb/src/kernel/kexec.c:245:73: error: invalid use of undefined type 'struct kexec_segment' 245 | ksegments = memdup_user(segments, nr_segments * sizeof(ksegments[0])); | ^ /kisskb/src/kernel/kexec.c:245:63: error: invalid application of 'sizeof' to incomplete type 'struct kexec_segment' 245 | ksegments = memdup_user(segments, nr_segments * sizeof(ksegments[0])); | ^ cc1: all warnings being treated as errors make[4]: *** [/kisskb/src/scripts/Makefile.build:243: kernel/kexec.o] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: *** [/kisskb/src/scripts/Makefile.build:477: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [/kisskb/src/scripts/Makefile.build:477: kernel] Error 2 make[3]: *** [/kisskb/src/scripts/Makefile.build:477: drivers] Error 2 make[2]: *** [/kisskb/src/Makefile:2020: .] Error 2 make[1]: *** [/kisskb/src/Makefile:234: __sub-make] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Command 'make -s -j 160 ARCH=sh O=/kisskb/build/linux-next_allyesconfig_sh4-gcc11 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-11.3.0-nolibc/sh4-linux/bin/sh4-linux- ' returned non-zero exit status 2. # rm -rf /kisskb/build/linux-next_allyesconfig_sh4-gcc11 # Build took: 0:04:17.703274
© Michael Ellerman 2006-2018.