# git rev-parse -q --verify efc44292f0f0dcae4be8550641e3cf7f841bd138^{commit} efc44292f0f0dcae4be8550641e3cf7f841bd138 already have revision, skipping fetch # git checkout -q -f -B kisskb efc44292f0f0dcae4be8550641e3cf7f841bd138 # git clean -qxdf # < git log -1 # commit efc44292f0f0dcae4be8550641e3cf7f841bd138 # Author: Aneesh Kumar K.V # Date: Thu Sep 20 23:39:47 2018 +0530 # # powerpc/mm:book3s: Enable THP migration support # # Signed-off-by: Aneesh Kumar K.V # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < git log --format=%s --max-count=1 efc44292f0f0dcae4be8550641e3cf7f841bd138 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ppc32_allmodconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.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/arch/powerpc/include/asm/book3s/pgtable.h:8:0, 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:53:19: error: 'PKMAP_BASE' undeclared (first use in this function) #define KVIRT_TOP PKMAP_BASE ^ /kisskb/src/arch/powerpc/include/asm/book3s/32/pgtable.h:64: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:456: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:53: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:64: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:456:39: note: in expansion of macro 'IOREMAP_TOP' address_markers[i++].start_address = IOREMAP_TOP; ^ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:464:39: error: implicit declaration of function 'PKMAP_ADDR' [-Werror=implicit-function-declaration] address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP); ^ /kisskb/src/arch/powerpc/mm/dump_linuxpagetables.c:464:50: error: 'LAST_PKMAP' undeclared (first use in this function) address_markers[i++].start_address = PKMAP_ADDR(LAST_PKMAP); ^ cc1: some warnings being treated as errors make[2]: *** [/kisskb/src/scripts/Makefile.build:306: arch/powerpc/mm/dump_linuxpagetables.o] Error 1 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 make[1]: *** [/kisskb/src/Makefile:1060: arch/powerpc/mm] Error 2 make[1]: *** Waiting for unfinished jobs.... /kisskb/src/arch/powerpc/kernel/head_32.S: Assembler messages: /kisskb/src/arch/powerpc/kernel/head_32.S:990: Warning: invalid register expression In file included from /kisskb/src/include/linux/cache.h:5:0, 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:0, 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:0, 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:0, 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:0, 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:0, 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:0, 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:0, 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:312: mm/zsmalloc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/kisskb/src/Makefile:1060: mm] Error 2 make: *** [Makefile:146: sub-make] Error 2 Command 'make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- ' returned non-zero exit status 2 # rm -rf /kisskb/build/powerpc-next_ppc32_allmodconfig_powerpc-gcc5 # Build took: 0:00:15.202492