# git rev-parse -q --verify 650c8207e3e6dcc93fc2c48e43da9440cadbca18^{commit} 650c8207e3e6dcc93fc2c48e43da9440cadbca18 already have revision, skipping fetch # git checkout -q -f -B kisskb 650c8207e3e6dcc93fc2c48e43da9440cadbca18 # git clean -qxdf # < git log -1 # commit 650c8207e3e6dcc93fc2c48e43da9440cadbca18 # Author: Christophe Leroy # Date: Fri Oct 19 06:12:50 2018 +0000 # # powerpc/msi: Fix compile error on mpc83xx # # mpic_get_primary_version() is not defined when not using MPIC. # The compile error log like: # # arch/powerpc/sysdev/built-in.o: In function `fsl_of_msi_probe': # fsl_msi.c:(.text+0x150c): undefined reference to `fsl_mpic_primary_get_version' # # Signed-off-by: Jia Hongtao # Signed-off-by: Scott Wood # Reported-by: Radu Rendec # Fixes: 807d38b73b6 ("powerpc/mpic: Add get_version API both for internal and external use") # Cc: stable@vger.kernel.org # Signed-off-by: Christophe Leroy # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 650c8207e3e6dcc93fc2c48e43da9440cadbca18 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc32_allmodconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/scripts/unifdef.c: In function 'Mpass': /kisskb/src/scripts/unifdef.c:453:28: warning: 'strncpy' output truncated before terminating nul copying 4 bytes from a string of the same length [-Wstringop-truncation] static void Mpass (void) { strncpy(keyword, "if ", 4); Pelif(); } ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/include/linux/rcupdate.h:44, from /kisskb/src/include/linux/rculist.h:11, from /kisskb/src/include/linux/pid.h:5, from /kisskb/src/include/linux/sched.h:14, from /kisskb/src/kernel/debug/kdb/kdb_support.c:15: In function 'strncpy', inlined from 'kallsyms_symbol_next' at /kisskb/src/kernel/debug/kdb/kdb_support.c:239:4: /kisskb/src/include/linux/string.h:246:9: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] return __builtin_strncpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/kernel/debug/kdb/kdb_support.c: In function 'kallsyms_symbol_next': /kisskb/src/include/linux/string.h:267:10: note: length computed here return __builtin_strlen(p); ^~~~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/include/linux/rcupdate.h:44, from /kisskb/src/include/linux/rculist.h:11, from /kisskb/src/include/linux/pid.h:5, from /kisskb/src/include/linux/sched.h:14, from /kisskb/src/arch/powerpc/kernel/ptrace.c:19: In function 'memcpy', inlined from 'user_regset_copyin' at /kisskb/src/include/linux/regset.h:295:4, inlined from 'vr_set' at /kisskb/src/arch/powerpc/kernel/ptrace.c:619:9: /kisskb/src/include/linux/string.h:345:9: warning: '__builtin_memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union ' [-Warray-bounds] return __builtin_memcpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/kernel/ptrace.c: In function 'vr_set': /kisskb/src/arch/powerpc/kernel/ptrace.c:614:5: note: 'vrsave' declared here } vrsave; ^~~~~~ In file included from /kisskb/src/include/linux/bitmap.h:9, from /kisskb/src/include/linux/cpumask.h:12, from /kisskb/src/include/linux/rcupdate.h:44, from /kisskb/src/include/linux/rculist.h:11, from /kisskb/src/include/linux/pid.h:5, from /kisskb/src/include/linux/sched.h:14, from /kisskb/src/arch/powerpc/kernel/ptrace.c:19: In function 'memcpy', inlined from 'user_regset_copyout' at /kisskb/src/include/linux/regset.h:270:4, inlined from 'vr_get' at /kisskb/src/arch/powerpc/kernel/ptrace.c:572:9: /kisskb/src/include/linux/string.h:345:9: warning: '__builtin_memcpy' offset [-527, -529] is out of the bounds [0, 16] of object 'vrsave' with type 'union ' [-Warray-bounds] return __builtin_memcpy(p, q, size); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/arch/powerpc/kernel/ptrace.c: In function 'vr_get': /kisskb/src/arch/powerpc/kernel/ptrace.c:567:5: note: 'vrsave' declared here } vrsave; ^~~~~~ In file included from /kisskb/src/arch/powerpc/include/asm/book3s/pgtable.h:8, from /kisskb/src/arch/powerpc/include/asm/pgtable.h:18, from /kisskb/src/include/linux/hugetlb.h:12, from /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:19: /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c: In function 'populate_markers': /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:143:19: error: 'PKMAP_BASE' undeclared (first use in this function); did you mean 'AT_BASE'? #define KVIRT_TOP PKMAP_BASE ^~~~~~~~~~ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:154:23: note: in expansion of macro 'KVIRT_TOP' #define IOREMAP_TOP ((KVIRT_TOP - CONFIG_CONSISTENT_SIZE) & PAGE_MASK) ^~~~~~~~~ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:306:39: note: in expansion of macro 'IOREMAP_TOP' address_markers[i++].start_address = IOREMAP_TOP; ^~~~~~~~~~~ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:143:19: note: each undeclared identifier is reported only once for each function it appears in #define KVIRT_TOP PKMAP_BASE ^~~~~~~~~~ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:154:23: note: in expansion of macro 'KVIRT_TOP' #define IOREMAP_TOP ((KVIRT_TOP - CONFIG_CONSISTENT_SIZE) & PAGE_MASK) ^~~~~~~~~ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:306:39: note: in expansion of macro 'IOREMAP_TOP' address_markers[i++].start_address = IOREMAP_TOP; ^~~~~~~~~~~ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:314:39: error: implicit declaration of function 'PKMAP_ADDR'; did you mean 'PCI_IO_ADDR'? [-Werror=implicit-function-declaration] address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP); ^~~~~~~~~~ PCI_IO_ADDR /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:314:50: error: 'LAST_PKMAP' undeclared (first use in this function); did you mean 'LIST_HEAD'? address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP); ^~~~~~~~~~ LIST_HEAD cc1: some warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:305: arch/powerpc/mm/dump_linuxpagetables.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:546: arch/powerpc/mm] Error 2 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/arch/powerpc/platforms/52xx/lite5200_sleep.S: Assembler messages: /kisskb/src/arch/powerpc/platforms/52xx/lite5200_sleep.S:184: Warning: invalid register expression /kisskb/src/arch/powerpc/kernel/head_32.S: Assembler messages: /kisskb/src/arch/powerpc/kernel/head_32.S:990: Warning: invalid register expression /kisskb/src/sound/aoa/codecs/onyx.c: In function 'onyx_snd_single_bit_get': /kisskb/src/sound/aoa/codecs/onyx.c:380:37: warning: 'c' may be used uninitialized in this function [-Wmaybe-uninitialized] ucontrol->value.integer.value[0] = !!(c & mask) ^ polarity; ^~~~~~~~~~~~ make[1]: *** [/kisskb/src/Makefile:1060: arch/powerpc] Error 2 make[1]: *** Waiting for unfinished jobs.... In file included from /kisskb/src/include/linux/cache.h:5, from /kisskb/src/include/linux/printk.h:9, from /kisskb/src/include/linux/kernel.h:14, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:253:32: note: in expansion of macro 'ZS_SIZE_CLASSES' struct size_class *size_class[ZS_SIZE_CLASSES]; ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:253:32: note: in expansion of macro 'ZS_SIZE_CLASSES' struct size_class *size_class[ZS_SIZE_CLASSES]; ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:253:21: error: variably modified 'size_class' at file scope struct size_class *size_class[ZS_SIZE_CLASSES]; ^~~~~~~~~~ In file included from /kisskb/src/include/linux/kernel.h:10, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c: In function 'get_size_class_index': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/compiler.h:76:40: note: in definition of macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:540:20: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' if (likely(size > ZS_MIN_ALLOC_SIZE)) ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/compiler.h:76:40: note: in definition of macro 'likely' # define likely(x) __builtin_expect(!!(x), 1) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:540:20: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' if (likely(size > ZS_MIN_ALLOC_SIZE)) ^~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/cache.h:5, from /kisskb/src/include/linux/printk.h:9, from /kisskb/src/include/linux/kernel.h:14, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:541:29: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' idx = DIV_ROUND_UP(size - ZS_MIN_ALLOC_SIZE, ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:541:29: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' idx = DIV_ROUND_UP(size - ZS_MIN_ALLOC_SIZE, ^~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/kernel.h:861:27: note: in definition of macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ /kisskb/src/include/linux/kernel.h:937:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:9: note: in expansion of macro 'min_t' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~ /kisskb/src/include/linux/kernel.h:116:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:20: note: in expansion of macro 'ZS_SIZE_CLASSES' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/kernel.h:861:27: note: in definition of macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ /kisskb/src/include/linux/kernel.h:937:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:9: note: in expansion of macro 'min_t' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~ /kisskb/src/include/linux/kernel.h:116:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:20: note: in expansion of macro 'ZS_SIZE_CLASSES' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/kernel.h:861:40: note: in definition of macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ /kisskb/src/include/linux/kernel.h:937:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:9: note: in expansion of macro 'min_t' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~ /kisskb/src/include/linux/kernel.h:116:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:20: note: in expansion of macro 'ZS_SIZE_CLASSES' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/kernel.h:861:40: note: in definition of macro '__cmp' #define __cmp(x, y, op) ((x) op (y) ? (x) : (y)) ^ /kisskb/src/include/linux/kernel.h:937:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:9: note: in expansion of macro 'min_t' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~ /kisskb/src/include/linux/kernel.h:116:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:20: note: in expansion of macro 'ZS_SIZE_CLASSES' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/kernel.h:864:25: note: in definition of macro '__cmp_once' typeof(x) unique_x = (x); \ ^ /kisskb/src/include/linux/kernel.h:937:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:9: note: in expansion of macro 'min_t' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~ /kisskb/src/include/linux/kernel.h:116:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:20: note: in expansion of macro 'ZS_SIZE_CLASSES' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/linux/kernel.h:864:25: note: in definition of macro '__cmp_once' typeof(x) unique_x = (x); \ ^ /kisskb/src/include/linux/kernel.h:937:27: note: in expansion of macro '__careful_cmp' #define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <) ^~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:9: note: in expansion of macro 'min_t' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~ /kisskb/src/include/linux/kernel.h:116:22: note: in expansion of macro '__KERNEL_DIV_ROUND_UP' #define DIV_ROUND_UP __KERNEL_DIV_ROUND_UP ^~~~~~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:544:20: note: in expansion of macro 'ZS_SIZE_CLASSES' return min_t(int, ZS_SIZE_CLASSES - 1, idx); ^~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/cache.h:5, from /kisskb/src/include/linux/printk.h:9, from /kisskb/src/include/linux/kernel.h:14, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c: In function 'zs_stats_size_show': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:606:18: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = 0; i < ZS_SIZE_CLASSES; i++) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:606:18: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = 0; i < ZS_SIZE_CLASSES; i++) { ^~~~~~~~~~~~~~~ In file included from /kisskb/src/arch/powerpc/include/asm/page.h:353, from /kisskb/src/arch/powerpc/include/asm/thread_info.h:29, from /kisskb/src/include/linux/thread_info.h:38, from /kisskb/src/include/asm-generic/preempt.h:5, from ./arch/powerpc/include/generated/asm/preempt.h:1, from /kisskb/src/include/linux/preempt.h:81, from /kisskb/src/include/linux/spinlock.h:51, from /kisskb/src/include/linux/seqlock.h:36, from /kisskb/src/include/linux/time.h:6, from /kisskb/src/include/linux/stat.h:19, from /kisskb/src/include/linux/module.h:10, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c: In function 'obj_to_location': /kisskb/src/mm/zsmalloc.c:863:26: warning: right shift count is negative [-Wshift-count-negative] *page = pfn_to_page(obj >> OBJ_INDEX_BITS); ^~ /kisskb/src/include/asm-generic/memory_model.h:33:41: note: in definition of macro '__pfn_to_page' #define __pfn_to_page(pfn) (mem_map + ((pfn) - ARCH_PFN_OFFSET)) ^~~ /kisskb/src/mm/zsmalloc.c:863:10: note: in expansion of macro 'pfn_to_page' *page = pfn_to_page(obj >> OBJ_INDEX_BITS); ^~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:120:37: warning: left shift count is negative [-Wshift-count-negative] #define OBJ_INDEX_MASK ((_AC(1, UL) << OBJ_INDEX_BITS) - 1) ^~ /kisskb/src/mm/zsmalloc.c:864:20: note: in expansion of macro 'OBJ_INDEX_MASK' *obj_idx = (obj & OBJ_INDEX_MASK); ^~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c: In function 'location_to_obj': /kisskb/src/mm/zsmalloc.c:876:26: warning: left shift count is negative [-Wshift-count-negative] obj = page_to_pfn(page) << OBJ_INDEX_BITS; ^~ /kisskb/src/mm/zsmalloc.c:120:37: warning: left shift count is negative [-Wshift-count-negative] #define OBJ_INDEX_MASK ((_AC(1, UL) << OBJ_INDEX_BITS) - 1) ^~ /kisskb/src/mm/zsmalloc.c:877:19: note: in expansion of macro 'OBJ_INDEX_MASK' obj |= obj_idx & OBJ_INDEX_MASK; ^~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/cache.h:5, from /kisskb/src/include/linux/printk.h:9, from /kisskb/src/include/linux/kernel.h:14, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c: In function 'async_free_zspage': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2151:18: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = 0; i < ZS_SIZE_CLASSES; i++) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2151:18: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = 0; i < ZS_SIZE_CLASSES; i++) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c: In function 'zs_compact': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2269:11: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = ZS_SIZE_CLASSES - 1; i >= 0; i--) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2269:11: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = ZS_SIZE_CLASSES - 1; i >= 0; i--) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c: In function 'zs_shrinker_count': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2315:11: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = ZS_SIZE_CLASSES - 1; i >= 0; i--) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2315:11: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = ZS_SIZE_CLASSES - 1; i >= 0; i--) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c: In function 'zs_create_pool': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2376:11: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = ZS_SIZE_CLASSES - 1; i >= 0; i--) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2376:11: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = ZS_SIZE_CLASSES - 1; i >= 0; i--) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/mm/zsmalloc.c:127:28: note: in definition of macro 'MAX' #define MAX(a, b) ((a) >= (b) ? (a) : (b)) ^ /kisskb/src/mm/zsmalloc.c:2383:10: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' size = ZS_MIN_ALLOC_SIZE + i * ZS_SIZE_CLASS_DELTA; ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/mm/zsmalloc.c:127:40: note: in definition of macro 'MAX' #define MAX(a, b) ((a) >= (b) ? (a) : (b)) ^ /kisskb/src/mm/zsmalloc.c:2383:10: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' size = ZS_MIN_ALLOC_SIZE + i * ZS_SIZE_CLASS_DELTA; ^~~~~~~~~~~~~~~~~ In file included from /kisskb/src/include/linux/cache.h:5, from /kisskb/src/include/linux/printk.h:9, from /kisskb/src/include/linux/kernel.h:14, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/mm/zsmalloc.c:33: /kisskb/src/mm/zsmalloc.c: In function 'zs_destroy_pool': /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2473:18: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = 0; i < ZS_SIZE_CLASSES; i++) { ^~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:130:49: warning: right shift count is negative [-Wshift-count-negative] MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~ /kisskb/src/include/uapi/linux/kernel.h:13:40: note: in definition of macro '__KERNEL_DIV_ROUND_UP' #define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d)) ^ /kisskb/src/mm/zsmalloc.c:130:2: note: in expansion of macro 'MAX' MAX(32, (ZS_MAX_PAGES_PER_ZSPAGE << PAGE_SHIFT >> OBJ_INDEX_BITS)) ^~~ /kisskb/src/mm/zsmalloc.c:148:59: note: in expansion of macro 'ZS_MIN_ALLOC_SIZE' #define ZS_SIZE_CLASSES (DIV_ROUND_UP(ZS_MAX_ALLOC_SIZE - ZS_MIN_ALLOC_SIZE, \ ^~~~~~~~~~~~~~~~~ /kisskb/src/mm/zsmalloc.c:2473:18: note: in expansion of macro 'ZS_SIZE_CLASSES' for (i = 0; i < ZS_SIZE_CLASSES; i++) { ^~~~~~~~~~~~~~~ make[2]: *** [/kisskb/src/scripts/Makefile.build:311: mm/zsmalloc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... /kisskb/src/drivers/char/tpm/tpm2-cmd.c: In function 'tpm2_unseal_trusted': /kisskb/src/drivers/char/tpm/tpm2-cmd.c:676:2: warning: 'blob_handle' may be used uninitialized in this function [-Wmaybe-uninitialized] tpm2_flush_context_cmd(chip, blob_handle, TPM_TRANSMIT_UNLOCKED); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [/kisskb/src/Makefile:1060: mm] Error 2 In file included from /kisskb/src/sound/ppc/pmac.h:25, from /kisskb/src/sound/ppc/awacs.c:29: /kisskb/src/sound/ppc/awacs.c: In function 'snd_pmac_awacs_init': /kisskb/src/include/sound/control.h:223:9: warning: 'speaker_vol' may be used uninitialized in this function [-Wmaybe-uninitialized] return _snd_ctl_add_slave(master, slave, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /kisskb/src/sound/ppc/awacs.c:886:36: note: 'speaker_vol' was declared here struct snd_kcontrol *master_vol, *speaker_vol; ^~~~~~~~~~~ /kisskb/src/drivers/scsi/esas2r/esas2r_ioctl.c: In function 'esas2r_write_vda': /kisskb/src/drivers/scsi/esas2r/esas2r_ioctl.c:1910:19: warning: 'dma_addr' may be used uninitialized in this function [-Wmaybe-uninitialized] a->ppvda_buffer = dma_addr; ~~~~~~~~~~~~~~~~^~~~~~~~~~ /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c: In function 'qe_ep_set_halt': /kisskb/src/drivers/usb/gadget/udc/fsl_qe_udc.c:1840:14: warning: 'udc' may be used uninitialized in this function [-Wmaybe-uninitialized] dev_vdbg(udc->dev, "%s %s halt stat %d\n", ep->ep.name, ^~ /kisskb/src/drivers/scsi/aha1542.c: In function 'aha1542_interrupt': /kisskb/src/drivers/scsi/aha1542.c:306:38: error: implicit declaration of function 'isa_virt_to_bus'; did you mean 'virt_to_bus'? [-Werror=implicit-function-declaration] mbo = (scsi2int(mb[mbi].ccbptr) - (isa_virt_to_bus(&ccb[0]))) / sizeof(struct ccb); ^~~~~~~~~~~~~~~ virt_to_bus /kisskb/src/drivers/scsi/aha1542.c: In function 'aha1542_queuecommand': /kisskb/src/drivers/scsi/aha1542.c:461:30: error: implicit declaration of function 'isa_page_to_bus'; did you mean 'page_to_bus'? [-Werror=implicit-function-declaration] any2scsi(cptr[i].dataptr, isa_page_to_bus(sg_page(sg)) ^~~~~~~~~~~~~~~ page_to_bus cc1: some warnings being treated as errors make[3]: *** [/kisskb/src/scripts/Makefile.build:311: drivers/scsi/aha1542.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [/kisskb/src/scripts/Makefile.build:546: drivers/scsi] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1060: drivers] Error 2 make: *** [Makefile:146: sub-make] Error 2 Command 'make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc8 # Build took: 0:10:40.782926