>>> linux 5.17.15 Extracting xzcat /home/buildroot/autobuild/instance-1/dl/linux/linux-5.17.15.tar.xz | tar --strip-components=1 -C /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15 -xf - WARNING: no hash file for ev3dev-linux-drivers-0e551eb25ae8600c1f178814781bfb42dc835496.tar.gz >>> ev3dev-linux-drivers 0e551eb25ae8600c1f178814781bfb42dc835496 Extracting gzip -d -c /home/buildroot/autobuild/instance-1/dl/ev3dev-linux-drivers/ev3dev-linux-drivers-0e551eb25ae8600c1f178814781bfb42dc835496.tar.gz | tar --strip-components=1 -C /home/buildroot/autobuild/instance-1/output-1/build/ev3dev-linux-drivers-0e551eb25ae8600c1f178814781bfb42dc835496 -xf - >>> ev3dev-linux-drivers 0e551eb25ae8600c1f178814781bfb42dc835496 Patching fbtft-274035404701245e7491c0c6471c5b72ade4d491.tar.gz: OK (sha256: 0e81de89fdd7ab810716fc0549e767527f342e829309dee5c2cca1e9d1728770) >>> fbtft 274035404701245e7491c0c6471c5b72ade4d491 Extracting gzip -d -c /home/buildroot/autobuild/instance-1/dl/fbtft/fbtft-274035404701245e7491c0c6471c5b72ade4d491.tar.gz | tar --strip-components=1 -C /home/buildroot/autobuild/instance-1/output-1/build/fbtft-274035404701245e7491c0c6471c5b72ade4d491 -xf - >>> fbtft 274035404701245e7491c0c6471c5b72ade4d491 Patching >>> linux 5.17.15 Patching mkdir -p /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/drivers/lego cp -dpfr /home/buildroot/autobuild/instance-1/output-1/build/ev3dev-linux-drivers-0e551eb25ae8600c1f178814781bfb42dc835496/* /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/drivers/lego/ if [ -e /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/drivers/video/fbdev ]; then dest=drivers/video/fbdev ; else dest=drivers/video ; fi ; mkdir -p /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/${dest}/fbtft; cp -dpfr /home/buildroot/autobuild/instance-1/output-1/build/fbtft-274035404701245e7491c0c6471c5b72ade4d491/* /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/${dest}/fbtft/ ; echo "source \"${dest}/fbtft/Kconfig\"" >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/${dest}/Kconfig ; echo 'obj-y += fbtft/' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/${dest}/Makefile if [ -f /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/tools/perf/Documentation/Makefile ]; then printf "%%:\n\t@:\n" >/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/tools/perf/Documentation/GNUmakefile; fi for p in ; do if test -d $p ; then PATH=/home/buildroot/autobuild/instance-1/output-1/host/bin:$PATH support/scripts/apply-patches.sh /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15 $p \*.patch || exit 1 ; else PATH=/home/buildroot/autobuild/instance-1/output-1/host/bin:$PATH support/scripts/apply-patches.sh /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15 `dirname $p` `basename $p` || exit 1; fi done make[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTCC scripts/kconfig/lexer.lex.o HOSTLD scripts/kconfig/conf *** Default configuration is based on 'multi_defconfig' # # configuration written to .config # make[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' Using /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/.config as base # # merged configuration written to /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/.config (needs make) # make[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' # # No change to .config # make[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_MODULES=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_KERNEL_LZMA=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_KERNEL_GZIP is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_KERNEL_LZ4 is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_KERNEL_LZO is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_KERNEL_XZ is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_KERNEL_ZSTD is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_KERNEL_UNCOMPRESSED is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_CPU_BIG_ENDIAN=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config if grep -q "^CONFIG_DEBUG_INFO_BTF=y" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config; then echo "To use CONFIG_DEBUG_INFO_BTF, enable host-pahole (BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE)" 1>&2; exit 1; fi # As the kernel gets compiled before root filesystems are # built, we create a fake cpio file. It'll be # replaced later by the real cpio archive, and the kernel will be # rebuilt using the linux-rebuild-with-initramfs target. /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_DEVTMPFS=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_DEVTMPFS_MOUNT=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_NET=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_GCC_PLUGINS is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_CRC16=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_LIBCRC32C=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_IP_NF_IPTABLES=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_IP_NF_FILTER=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_NETFILTER=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_NETFILTER_XTABLES=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_NET=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_WIRELESS=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo 'CONFIG_CFG80211=y' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config make[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' # # configuration written to .config # make[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' >>> linux 5.17.15 Configuring >>> linux 5.17.15 Building /bin/sed -i -e "/\\/d" /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config echo '# CONFIG_GCC_PLUGINS is not set' >> /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15//.config PATH="/home/buildroot/autobuild/instance-1/output-1/host/bin:/home/buildroot/autobuild/instance-1/output-1/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" PKG_CONFIG="/home/buildroot/autobuild/instance-1/output-1/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/buildroot/autobuild/instance-1/output-1/host/lib/pkgconfig:/home/buildroot/autobuild/instance-1/output-1/host/share/pkgconfig" BR_BINARIES_DIR=/home/buildroot/autobuild/instance-1/output-1/images KCFLAGS=-Wno-attribute-alias /usr/bin/make -j4 HOSTCC="/usr/bin/gcc -O2 -I/home/buildroot/autobuild/instance-1/output-1/host/include -L/home/buildroot/autobuild/instance-1/output-1/host/lib -Wl,-rpath,/home/buildroot/autobuild/instance-1/output-1/host/lib" ARCH=m68k INSTALL_MOD_PATH=/home/buildroot/autobuild/instance-1/output-1/target CROSS_COMPILE="/home/buildroot/autobuild/instance-1/output-1/host/bin/m68k-linux-" WERROR=0 DEPMOD=/home/buildroot/autobuild/instance-1/output-1/host/sbin/depmod -C /home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15 all make[1]: Entering directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' SYNC include/config/auto.conf.cmd HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/conf SYSHDR arch/m68k/include/generated/uapi/asm/unistd_32.h SYSTBL arch/m68k/include/generated/asm/syscall_table.h WRAP arch/m68k/include/generated/uapi/asm/auxvec.h WRAP arch/m68k/include/generated/uapi/asm/bitsperlong.h WRAP arch/m68k/include/generated/uapi/asm/bpf_perf_event.h WRAP arch/m68k/include/generated/uapi/asm/errno.h WRAP arch/m68k/include/generated/uapi/asm/ioctl.h WRAP arch/m68k/include/generated/uapi/asm/ipcbuf.h WRAP arch/m68k/include/generated/uapi/asm/mman.h WRAP arch/m68k/include/generated/uapi/asm/msgbuf.h WRAP arch/m68k/include/generated/uapi/asm/resource.h WRAP arch/m68k/include/generated/uapi/asm/sembuf.h WRAP arch/m68k/include/generated/uapi/asm/siginfo.h WRAP arch/m68k/include/generated/uapi/asm/shmbuf.h WRAP arch/m68k/include/generated/uapi/asm/socket.h WRAP arch/m68k/include/generated/uapi/asm/sockios.h WRAP arch/m68k/include/generated/uapi/asm/statfs.h WRAP arch/m68k/include/generated/uapi/asm/termbits.h WRAP arch/m68k/include/generated/uapi/asm/termios.h WRAP arch/m68k/include/generated/uapi/asm/types.h UPD include/config/kernel.release WRAP arch/m68k/include/generated/asm/extable.h WRAP arch/m68k/include/generated/asm/kvm_para.h WRAP arch/m68k/include/generated/asm/mcs_spinlock.h WRAP arch/m68k/include/generated/asm/spinlock.h WRAP arch/m68k/include/generated/asm/barrier.h WRAP arch/m68k/include/generated/asm/compat.h WRAP arch/m68k/include/generated/asm/device.h WRAP arch/m68k/include/generated/asm/dma-mapping.h WRAP arch/m68k/include/generated/asm/emergency-restart.h WRAP arch/m68k/include/generated/asm/exec.h WRAP arch/m68k/include/generated/asm/futex.h WRAP arch/m68k/include/generated/asm/hardirq.h WRAP arch/m68k/include/generated/asm/hw_irq.h WRAP arch/m68k/include/generated/asm/irq_regs.h WRAP arch/m68k/include/generated/asm/irq_work.h WRAP arch/m68k/include/generated/asm/kprobes.h WRAP arch/m68k/include/generated/asm/kdebug.h WRAP arch/m68k/include/generated/asm/kmap_size.h WRAP arch/m68k/include/generated/asm/local.h UPD include/generated/uapi/linux/version.h WRAP arch/m68k/include/generated/asm/local64.h WRAP arch/m68k/include/generated/asm/percpu.h WRAP arch/m68k/include/generated/asm/mmiowb.h WRAP arch/m68k/include/generated/asm/msi.h WRAP arch/m68k/include/generated/asm/preempt.h WRAP arch/m68k/include/generated/asm/rwonce.h WRAP arch/m68k/include/generated/asm/sections.h WRAP arch/m68k/include/generated/asm/shmparam.h WRAP arch/m68k/include/generated/asm/simd.h WRAP arch/m68k/include/generated/asm/softirq_stack.h WRAP arch/m68k/include/generated/asm/topology.h WRAP arch/m68k/include/generated/asm/trace_clock.h WRAP arch/m68k/include/generated/asm/unaligned.h WRAP arch/m68k/include/generated/asm/vermagic.h WRAP arch/m68k/include/generated/asm/word-at-a-time.h WRAP arch/m68k/include/generated/asm/xor.h UPD include/generated/utsrelease.h HOSTCC scripts/kallsyms HOSTCC scripts/asn1_compiler CC scripts/mod/empty.o HOSTCC scripts/mod/mk_elfconfig CC scripts/mod/devicetable-offsets.s UPD scripts/mod/devicetable-offsets.h MKELF scripts/mod/elfconfig.h HOSTCC scripts/mod/modpost.o HOSTCC scripts/mod/file2alias.o HOSTCC scripts/mod/sumversion.o HOSTLD scripts/mod/modpost CC kernel/bounds.s CALL scripts/atomic/check-atomics.sh UPD include/generated/timeconst.h UPD include/generated/bounds.h CC arch/m68k/kernel/asm-offsets.s UPD include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CC init/main.o CHK include/generated/compile.h HOSTCC usr/gen_init_cpio UPD include/generated/compile.h AS arch/m68k/kernel/head.o In file included from ./include/linux/kernel.h:15, from ./include/linux/cpumask.h:10, from ./include/linux/smp.h:13, from ./include/linux/percpu.h:7, from ./include/linux/arch_topology.h:9, from ./include/linux/topology.h:30, from ./include/linux/gfp.h:9, from ./include/linux/slab.h:15, from ./arch/m68k/include/asm/pgtable_no.h:11, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from arch/m68k/kernel/head.S:258: ./include/linux/align.h:8: warning: "ALIGN" redefined 8 | #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) | In file included from arch/m68k/kernel/head.S:256: ./include/linux/linkage.h:103: note: this is the location of the previous definition 103 | #define ALIGN __ALIGN | In file included from ./include/linux/panic.h:5, from ./include/linux/kernel.h:28, from ./include/linux/cpumask.h:10, from ./include/linux/smp.h:13, from ./include/linux/percpu.h:7, from ./include/linux/arch_topology.h:9, from ./include/linux/topology.h:30, from ./include/linux/gfp.h:9, from ./include/linux/slab.h:15, from ./arch/m68k/include/asm/pgtable_no.h:11, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from arch/m68k/kernel/head.S:258: ./include/linux/compiler_attributes.h:54: warning: "__always_inline" redefined 54 | #define __always_inline inline __attribute__((__always_inline__)) | In file included from ./include/linux/stddef.h:5, from ./include/linux/gfp.h:7, from ./include/linux/slab.h:15, from ./arch/m68k/include/asm/pgtable_no.h:11, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from arch/m68k/kernel/head.S:258: ./include/uapi/linux/stddef.h:8: note: this is the location of the previous definition 8 | #define __always_inline inline | In file included from ./include/linux/panic.h:5, from ./include/linux/kernel.h:28, from ./include/linux/cpumask.h:10, from ./include/linux/smp.h:13, from ./include/linux/percpu.h:7, from ./include/linux/arch_topology.h:9, from ./include/linux/topology.h:30, from ./include/linux/gfp.h:9, from ./include/linux/slab.h:15, from ./arch/m68k/include/asm/pgtable_no.h:11, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from arch/m68k/kernel/head.S:258: ./include/linux/compiler_attributes.h:71:20: error: missing binary operator before token "(" 71 | #if __has_attribute(__assume_aligned__) | ^ ./include/linux/compiler_attributes.h:97:20: error: missing binary operator before token "(" 97 | #if __has_attribute(__copy__) | ^ ./include/linux/compiler_attributes.h:121:20: error: missing binary operator before token "(" 121 | #if __has_attribute(__designated_init__) | ^ ./include/linux/compiler_attributes.h:132:20: error: missing binary operator before token "(" 132 | #if __has_attribute(__error__) | ^ ./include/linux/compiler_attributes.h:143:20: error: missing binary operator before token "(" 143 | #if __has_attribute(__externally_visible__) | ^ In file included from ./include/linux/panic.h:5, from ./include/linux/kernel.h:28, from ./include/linux/cpumask.h:10, from ./include/linux/smp.h:13, from ./include/linux/percpu.h:7, from ./include/linux/arch_topology.h:9, from ./include/linux/topology.h:30, from ./include/linux/gfp.h:9, from ./include/linux/slab.h:15, from ./arch/m68k/include/asm/pgtable_no.h:11, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from arch/m68k/kernel/head.S:258: ./include/linux/compiler_attributes.h:180:20: error: missing binary operator before token "(" 180 | #if __has_attribute(__no_caller_saved_registers__) | ^ ./include/linux/compiler_attributes.h:191:20: error: missing binary operator before token "(" 191 | #if __has_attribute(__noclone__) | ^ ./include/linux/compiler_attributes.h:208:20: error: missing binary operator before token "(" 208 | #if __has_attribute(__fallthrough__) | ^ ./include/linux/compiler_attributes.h:235:20: error: missing binary operator before token "(" 235 | #if __has_attribute(__nonstring__) | ^ ./include/linux/compiler_attributes.h:247:20: error: missing binary operator before token "(" 247 | #if __has_attribute(__no_profile_instrument_function__) | ^ ./include/linux/compiler_attributes.h:305:20: error: missing binary operator before token "(" 305 | #if __has_attribute(__warning__) | ^ ./include/linux/compiler_attributes.h:322:20: error: missing binary operator before token "(" 322 | #if __has_attribute(disable_sanitizer_instrumentation) | ^ CC kernel/sched/core.o scripts/Makefile.build:389: recipe for target 'arch/m68k/kernel/head.o' failed make[3]: *** [arch/m68k/kernel/head.o] Error 1 scripts/Makefile.build:550: recipe for target 'arch/m68k/kernel' failed make[2]: *** [arch/m68k/kernel] Error 2 Makefile:1831: recipe for target 'arch/m68k' failed make[1]: *** [arch/m68k] Error 2 make[1]: *** Waiting for unfinished jobs.... CC kernel/sched/loadavg.o GEN usr/initramfs_data.cpio SHIPPED usr/initramfs_inc_data AS usr/initramfs_data.o In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:88, from init/main.c:21: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D AR usr/built-in.a CC kernel/sched/clock.o In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:88, from init/main.c:21: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:88, from init/main.c:21: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/build_bug.h:5, from ./include/linux/container_of.h:5, from ./include/linux/list.h:5, from ./include/linux/module.h:12, from init/main.c:17: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:88, from init/main.c:21: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ In file included from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:88, from init/main.c:21: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr In file included from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/syscall.h:7, from ./include/linux/syscalls.h:88, from init/main.c:21: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/err.h:5, from ./include/linux/kthread.h:5, from ./include/trace/events/sched.h:8, from kernel/sched/core.c:10: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/build_bug.h:5, from ./include/linux/container_of.h:5, from ./include/linux/list.h:5, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from kernel/sched/sched.h:5, from kernel/sched/loadavg.c:9: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present In file included from ./include/linux/mmu_context.h:5, from ./include/linux/cpuset.h:18, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./arch/m68k/include/asm/mmu_context.h: In function ‘switch_mm_0230’: ./arch/m68k/include/asm/mmu_context.h:235:30: error: ‘_PAGE_TABLE’ undeclared (first use in this function); did you mean ‘NR_PAGETABLE’? 235 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from ./include/linux/mmu_context.h:5, from ./include/linux/cpuset.h:18, from init/main.c:51: ./arch/m68k/include/asm/mmu_context.h: In function ‘switch_mm_0230’: ./arch/m68k/include/asm/mmu_context.h:235:30: error: ‘_PAGE_TABLE’ undeclared (first use in this function); did you mean ‘NR_PAGETABLE’? 235 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE ./arch/m68k/include/asm/mmu_context.h:246:38: error: ‘FLUSH_I_AND_D’ undeclared (first use in this function) 246 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./arch/m68k/include/asm/mmu_context.h:246:38: error: ‘FLUSH_I_AND_D’ undeclared (first use in this function) 246 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ In file included from ./include/linux/mmu_context.h:5, from ./include/linux/cpuset.h:18, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./arch/m68k/include/asm/mmu_context.h: In function ‘switch_mm_0230’: ./arch/m68k/include/asm/mmu_context.h:235:30: error: ‘_PAGE_TABLE’ undeclared (first use in this function); did you mean ‘NR_PAGETABLE’? 235 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./arch/m68k/include/asm/mmu_context.h:246:38: error: ‘FLUSH_I_AND_D’ undeclared (first use in this function) 246 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/build_bug.h:5, from ./include/linux/container_of.h:5, from ./include/linux/list.h:5, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from kernel/sched/sched.h:5, from kernel/sched/clock.c:56: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:70, from kernel/sched/core.c:13: ./include/asm-generic/tlb.h: In function ‘tlb_get_unmap_shift’: ./include/asm-generic/tlb.h:470:24: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 470 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'init/main.o' failed make[2]: *** [init/main.o] Error 1 Makefile:1831: recipe for target 'init' failed make[1]: *** [init] Error 2 CC kernel/sched/cputime.o In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/core.c:13: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:472:24: note: in expansion of macro ‘PUD_SHIFT’ 472 | return PUD_SHIFT; | ^~~~~~~~~ In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/linux/mmu_context.h:5, from ./include/linux/cpuset.h:18, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./arch/m68k/include/asm/mmu_context.h: In function ‘switch_mm_0230’: ./arch/m68k/include/asm/mmu_context.h:235:30: error: ‘_PAGE_TABLE’ undeclared (first use in this function); did you mean ‘NR_PAGETABLE’? 235 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:70, from kernel/sched/loadavg.c:9: ./include/asm-generic/tlb.h: In function ‘tlb_get_unmap_shift’: ./include/asm-generic/tlb.h:470:24: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 470 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT ./arch/m68k/include/asm/mmu_context.h:246:38: error: ‘FLUSH_I_AND_D’ undeclared (first use in this function) 246 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/loadavg.c:9: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:472:24: note: in expansion of macro ‘PUD_SHIFT’ 472 | return PUD_SHIFT; | ^~~~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'kernel/sched/loadavg.o' failed make[3]: *** [kernel/sched/loadavg.o] Error 1 make[3]: *** Waiting for unfinished jobs.... CC kernel/locking/mutex.o cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'kernel/sched/core.o' failed make[3]: *** [kernel/sched/core.o] Error 1 CC kernel/locking/semaphore.o In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:70, from kernel/sched/clock.c:56: ./include/asm-generic/tlb.h: In function ‘tlb_get_unmap_shift’: ./include/asm-generic/tlb.h:470:24: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 470 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/clock.c:56: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:472:24: note: in expansion of macro ‘PUD_SHIFT’ 472 | return PUD_SHIFT; | ^~~~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'kernel/sched/clock.o' failed make[3]: *** [kernel/sched/clock.o] Error 1 CC kernel/locking/rwsem.o In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none In file included from ./include/linux/build_bug.h:5, from ./include/linux/container_of.h:5, from ./include/linux/list.h:5, from ./include/linux/rculist.h:10, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from kernel/sched/sched.h:5, from kernel/sched/cputime.c:5: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ In file included from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from kernel/locking/semaphore.c:27: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from kernel/locking/semaphore.c:34: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present In file included from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_PUD’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_PUD In file included from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from kernel/locking/semaphore.c:34: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from ./include/linux/mmu_context.h:5, from ./include/linux/cpuset.h:18, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./arch/m68k/include/asm/mmu_context.h: In function ‘switch_mm_0230’: ./arch/m68k/include/asm/mmu_context.h:235:30: error: ‘_PAGE_TABLE’ undeclared (first use in this function); did you mean ‘NR_PAGETABLE’? 235 | 0x80000000 | _PAGE_TABLE, mm->context | ^~~~~~~~~~~ | NR_PAGETABLE {standard input}: Assembler messages: {standard input}:65: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:135: Error: operands mismatch -- statement `andl #-8,(%a0)' ignored {standard input}:339: Error: operands mismatch -- statement `orl #1,(%a3)' ignored {standard input}:494: Error: operands mismatch -- statement `orl #1,(%a4)' ignored {standard input}:585: Error: operands mismatch -- statement `orl #1,(%a4)' ignored {standard input}:700: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:739: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:776: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:798: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:820: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:870: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:924: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:945: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:996: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored In file included from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from kernel/locking/semaphore.c:34: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D scripts/Makefile.build:288: recipe for target 'kernel/locking/mutex.o' failed make[3]: *** [kernel/locking/mutex.o] Error 1 make[3]: *** Waiting for unfinished jobs.... ./arch/m68k/include/asm/mmu_context.h:246:38: error: ‘FLUSH_I_AND_D’ undeclared (first use in this function) 246 | : "=d" (tmp) : "di" (FLUSH_I_AND_D)); | ^~~~~~~~~~~~~ CC kernel/power/qos.o ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'kernel/locking/semaphore.o' failed make[3]: *** [kernel/locking/semaphore.o] Error 1 CC kernel/printk/printk.o {standard input}: Assembler messages: {standard input}:21: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `andiw #-1793,%sr' ignored {standard input}:100: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:129: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:175: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:250: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:322: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:363: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:402: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:428: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:441: Error: operands mismatch -- statement `andl #-7,(%a3)' ignored {standard input}:496: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:518: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:531: Error: operands mismatch -- statement `orl #2,(%a3)' ignored {standard input}:572: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:602: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:619: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:649: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:669: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:696: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:722: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:760: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:798: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:825: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:866: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:881: Error: operands mismatch -- statement `andl #-7,(%a3)' ignored scripts/Makefile.build:288: recipe for target 'kernel/locking/rwsem.o' failed make[3]: *** [kernel/locking/rwsem.o] Error 1 scripts/Makefile.build:550: recipe for target 'kernel/locking' failed make[2]: *** [kernel/locking] Error 2 make[2]: *** Waiting for unfinished jobs.... CC kernel/power/poweroff.o In file included from ./arch/m68k/include/asm/tlb.h:5, from kernel/sched/sched.h:70, from kernel/sched/cputime.c:5: ./include/asm-generic/tlb.h: In function ‘tlb_get_unmap_shift’: In file included from ./include/linux/mm.h:33, from kernel/printk/printk.c:23: ./include/linux/pgtable.h: In function ‘pte_index’: In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/asm-generic/tlb.h:470:24: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 470 | return PMD_SHIFT; | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from kernel/printk/printk.c:23: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/cpuset.h:17, from kernel/sched/sched.h:44, from kernel/sched/cputime.c:5: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/asm-generic/tlb.h:472:24: note: in expansion of macro ‘PUD_SHIFT’ 472 | return PUD_SHIFT; | ^~~~~~~~~ In file included from ./include/linux/mm.h:33, from kernel/printk/printk.c:23: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ In file included from ./include/linux/kernel.h:20, from kernel/printk/printk.c:22: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ cc1: some warnings being treated as errors In file included from ./include/linux/mm.h:33, from kernel/printk/printk.c:23: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ scripts/Makefile.build:288: recipe for target 'kernel/sched/cputime.o' failed make[3]: *** [kernel/sched/cputime.o] Error 1 scripts/Makefile.build:550: recipe for target 'kernel/sched' failed make[2]: *** [kernel/sched] Error 2 ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none CC kernel/printk/printk_safe.o ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ CC kernel/printk/printk_ringbuffer.o ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/build_bug.h:5, from ./include/linux/container_of.h:5, from ./include/linux/plist.h:76, from ./include/linux/pm_qos.h:15, from kernel/power/qos.c:23: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present In file included from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from kernel/printk/printk.c:23: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from ./include/linux/ring_buffer.h:5, from ./include/linux/trace_events.h:6, from ./include/trace/events/power.h:12, from kernel/power/qos.c:40: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from kernel/printk/printk.c:23: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'kernel/power/qos.o' failed make[3]: *** [kernel/power/qos.o] Error 1 scripts/Makefile.build:550: recipe for target 'kernel/power' failed make[2]: *** [kernel/power] Error 2 CC kernel/printk/sysctl.o In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:28, from kernel/printk/printk_safe.c:11: ./include/linux/pgtable.h: In function ‘pte_index’: ./include/linux/pgtable.h:63:43: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 63 | return (address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/pgtable.h:63:43: note: each undeclared identifier is reported only once for each function it appears in ./include/linux/pgtable.h: In function ‘pmd_index’: ./include/linux/pgtable.h:70:28: error: ‘PMD_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~ | PUD_SHIFT ./include/linux/pgtable.h:70:42: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 70 | return (address >> PMD_SHIFT) & (PTRS_PER_PMD - 1); | ^~~~~~~~~~~~ | PTRS_PER_P4D In file included from ./include/asm-generic/pgtable-nopud.h:7, from ./arch/m68k/include/asm/pgtable_no.h:5, from ./arch/m68k/include/asm/pgtable.h:3, from ./include/linux/pgtable.h:6, from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:28, from kernel/printk/printk_safe.c:11: ./include/linux/pgtable.h: In function ‘pud_index’: ./include/asm-generic/pgtable-nop4d.h:11:33: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 11 | #define P4D_SHIFT PGDIR_SHIFT | ^~~~~~~~~~~ ./include/asm-generic/pgtable-nopud.h:18:25: note: in expansion of macro ‘P4D_SHIFT’ 18 | #define PUD_SHIFT P4D_SHIFT | ^~~~~~~~~ ./include/linux/pgtable.h:78:28: note: in expansion of macro ‘PUD_SHIFT’ 78 | return (address >> PUD_SHIFT) & (PTRS_PER_PUD - 1); | ^~~~~~~~~ In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:28, from kernel/printk/printk_safe.c:11: ./include/linux/pgtable.h: In function ‘pte_offset_kernel’: ./include/linux/pgtable.h:91:25: error: implicit declaration of function ‘pmd_page_vaddr’; did you mean ‘pgd_page_vaddr’? [-Werror=implicit-function-declaration] 91 | return (pte_t *)pmd_page_vaddr(*pmd) + pte_index(address); | ^~~~~~~~~~~~~~ | pgd_page_vaddr ./include/linux/pgtable.h: In function ‘pgd_offset_pgd’: ./include/linux/pgtable.h:85:32: error: ‘PGDIR_SHIFT’ undeclared (first use in this function); did you mean ‘PUD_SHIFT’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h:85:48: error: ‘PTRS_PER_PGD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 85 | #define pgd_index(a) (((a) >> PGDIR_SHIFT) & (PTRS_PER_PGD - 1)) | ^~~~~~~~~~~~ ./include/linux/pgtable.h:125:23: note: in expansion of macro ‘pgd_index’ 125 | return (pgd + pgd_index(address)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘virt_to_kpte’: ./include/linux/pgtable.h:164:16: error: implicit declaration of function ‘pmd_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 164 | return pmd_none(*pmd) ? NULL : pte_offset_kernel(pmd, vaddr); | ^~~~~~~~ | p4d_none ./include/linux/pgtable.h: In function ‘ptep_test_and_clear_young’: ./include/linux/pgtable.h:206:14: error: implicit declaration of function ‘pte_young’ [-Werror=implicit-function-declaration] 206 | if (!pte_young(pte)) | ^~~~~~~~~ ./include/linux/pgtable.h:209:17: error: implicit declaration of function ‘set_pte_at’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~~ ./include/linux/pgtable.h:209:55: error: implicit declaration of function ‘pte_mkold’ [-Werror=implicit-function-declaration] 209 | set_pte_at(vma->vm_mm, address, ptep, pte_mkold(pte)); | ^~~~~~~~~ ./include/linux/pgtable.h: In function ‘ptep_clear’: ./include/linux/pgtable.h:266:9: error: implicit declaration of function ‘pte_clear’; did you mean ‘ptep_clear’? [-Werror=implicit-function-declaration] 266 | pte_clear(mm, addr, ptep); | ^~~~~~~~~ | ptep_clear cc1: some warnings being treated as errors ./include/linux/pgtable.h: In function ‘ptep_set_wrprotect’: ./include/linux/pgtable.h:450:39: error: implicit declaration of function ‘pte_wrprotect’; did you mean ‘ptep_set_wrprotect’? [-Werror=implicit-function-declaration] 450 | set_pte_at(mm, address, ptep, pte_wrprotect(old_pte)); | ^~~~~~~~~~~~~ | ptep_set_wrprotect scripts/Makefile.build:288: recipe for target 'kernel/printk/printk.o' failed make[3]: *** [kernel/printk/printk.o] Error 1 make[3]: *** Waiting for unfinished jobs.... ./include/linux/pgtable.h: In function ‘pud_none_or_clear_bad’: ./include/linux/pgtable.h:839:13: error: implicit declaration of function ‘pud_none’; did you mean ‘p4d_none’? [-Werror=implicit-function-declaration] 839 | if (pud_none(*pud)) | ^~~~~~~~ | p4d_none In file included from ./include/linux/build_bug.h:5, from ./include/linux/container_of.h:5, from ./include/linux/list.h:5, from ./include/linux/preempt.h:11, from kernel/printk/printk_safe.c:6: ./include/linux/pgtable.h:841:22: error: implicit declaration of function ‘pud_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 841 | if (unlikely(pud_bad(*pud))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ ./include/linux/pgtable.h: In function ‘pmd_none_or_clear_bad’: ./include/linux/pgtable.h:852:22: error: implicit declaration of function ‘pmd_bad’; did you mean ‘p4d_bad’? [-Werror=implicit-function-declaration] 852 | if (unlikely(pmd_bad(*pmd))) { | ^~~~~~~ ./include/linux/compiler.h:78:45: note: in definition of macro ‘unlikely’ 78 | # define unlikely(x) __builtin_expect(!!(x), 0) | ^ In file included from ./include/linux/mm.h:33, from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:28, from kernel/printk/printk_safe.c:11: ./include/linux/pgtable.h: In function ‘pmd_none_or_trans_huge_or_clear_bad’: ./include/linux/pgtable.h:1330:67: error: implicit declaration of function ‘pmd_present’; did you mean ‘p4d_present’? [-Werror=implicit-function-declaration] 1330 | (IS_ENABLED(CONFIG_ARCH_ENABLE_THP_MIGRATION) && !pmd_present(pmdval))) | ^~~~~~~~~~~ | p4d_present {standard input}: Assembler messages: {standard input}:9: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:849: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored {standard input}:1164: Error: invalid instruction for this architecture; needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `oriw #0x0700,%sr' ignored scripts/Makefile.build:288: recipe for target 'kernel/printk/printk_ringbuffer.o' failed make[3]: *** [kernel/printk/printk_ringbuffer.o] Error 1 In file included from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:28, from kernel/printk/printk_safe.c:11: ./include/linux/mm.h: In function ‘maybe_mkwrite’: ./include/linux/mm.h:953:23: error: implicit declaration of function ‘pte_mkwrite’; did you mean ‘maybe_mkwrite’? [-Werror=implicit-function-declaration] 953 | pte = pte_mkwrite(pte); | ^~~~~~~~~~~ | maybe_mkwrite ./include/linux/mm.h:953:23: error: incompatible types when assigning to type ‘pte_t’ from type ‘int’ In file included from ./include/linux/kallsyms.h:13, from ./include/linux/ftrace.h:12, from ./include/linux/kprobes.h:28, from kernel/printk/printk_safe.c:11: ./include/linux/mm.h: In function ‘mm_inc_nr_pmds’: ./include/linux/mm.h:2186:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2186 | atomic_long_add(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_pmds’: ./include/linux/mm.h:2193:25: error: ‘PTRS_PER_PMD’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2193 | atomic_long_sub(PTRS_PER_PMD * sizeof(pmd_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_inc_nr_ptes’: ./include/linux/mm.h:2210:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2210 | atomic_long_add(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D ./include/linux/mm.h: In function ‘mm_dec_nr_ptes’: ./include/linux/mm.h:2215:25: error: ‘PTRS_PER_PTE’ undeclared (first use in this function); did you mean ‘PTRS_PER_P4D’? 2215 | atomic_long_sub(PTRS_PER_PTE * sizeof(pte_t), &mm->pgtables_bytes); | ^~~~~~~~~~~~ | PTRS_PER_P4D cc1: some warnings being treated as errors scripts/Makefile.build:288: recipe for target 'kernel/printk/printk_safe.o' failed make[3]: *** [kernel/printk/printk_safe.o] Error 1 scripts/Makefile.build:550: recipe for target 'kernel/printk' failed make[2]: *** [kernel/printk] Error 2 Makefile:1831: recipe for target 'kernel' failed make[1]: *** [kernel] Error 2 make[1]: Leaving directory '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15' package/pkg-generic.mk:290: recipe for target '/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/.stamp_built' failed make: *** [/home/buildroot/autobuild/instance-1/output-1/build/linux-5.17.15/.stamp_built] Error 2 make: Leaving directory '/home/buildroot/autobuild/instance-1/buildroot'