From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8E51CE79AD for ; Wed, 20 Sep 2023 09:20:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 668666B0137; Wed, 20 Sep 2023 05:20:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 618FB6B0138; Wed, 20 Sep 2023 05:20:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4BC1E6B0139; Wed, 20 Sep 2023 05:20:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 33C696B0137 for ; Wed, 20 Sep 2023 05:20:56 -0400 (EDT) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 0A69E40AE0 for ; Wed, 20 Sep 2023 09:20:56 +0000 (UTC) X-FDA: 81256431312.18.720A642 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf07.hostedemail.com (Postfix) with ESMTP id 767AB40018 for ; Wed, 20 Sep 2023 09:20:52 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k6CSW+pp; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695201653; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=t7haaRMGJBzOvI9Fk/n92Eiy3YOe5z/vpaZIXRjL4pQ=; b=cuNiTN5wqvviJgUaJarPbvBdw/FxtEi7YDXpreCnW9CsGAHa+LEsJj80WbF91SyCI7nf+z LGqTn+1yjdM8Hfa4mdx10WYT+N/K8JGMwq8Wx9Nabp3i+D0Pb+8LUuPgMfboLf9vy4F6Ql 4ad5jYf7hZ2feArtnsizKb8ScLmuCvk= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=k6CSW+pp; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695201653; a=rsa-sha256; cv=none; b=f277OJo/EgubvrLunRmHXOSOymDUva0QTc5aYcjBZBKupbnSqXbrVlptcw61wfcAmu4e63 WfTNBpCA2BUafiIZMz3tMjZC7vxU9AbQLe0nfGHi2+PvQhNlLyz+OF0vnUFxonxt5uXQ6T xnR1+YZmdJaZL/7IQbEbtcN8fI3i/+U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695201652; x=1726737652; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=twJRWNYWnMIIIX1mRj+AWztTDGc+7AnM9GbZ+PRco+0=; b=k6CSW+ppwElEvKO8H92GxLzaUd5wHorGrQkLTdXZFuyUtHf5BZLUyWJO 0Y4rF8OuJCqkzFrIKih7VP09Q98J3LN2t7BzRUweg2g1YsNy4Lbblh3/N aMGA3dGMqKzPepd1r2g6pPsHc2LDxmwcEO7ftxaqbG9prFYR4Ojag1TyR k64/21YFPgI2K9nqbTJwSyYQ4kKuqeBJX+XQRJWHgKl1tNhcR4zcokxV/ bMwdGYMHXhGFH+hqRLGVbReNMWmrrNxJd/JfbWLMaydJq2lipo/OAtL8L dLqh8EJ2te6VbWOE78ZhIlcgz+2Bs2MWo+x79h3iy2CX02O1N6R9WfnoK w==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="446643873" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="446643873" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Sep 2023 02:20:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="740123092" X-IronPort-AV: E=Sophos;i="6.02,161,1688454000"; d="scan'208";a="740123092" Received: from lkp-server02.sh.intel.com (HELO 9ef86b2655e5) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 20 Sep 2023 02:20:47 -0700 Received: from kbuild by 9ef86b2655e5 with local (Exim 4.96) (envelope-from ) id 1qitO1-0008Yu-1s; Wed, 20 Sep 2023 09:20:45 +0000 Date: Wed, 20 Sep 2023 17:19:54 +0800 From: kernel test robot To: "Matthew Wilcox (Oracle)" , Andrew Morton Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List , "Matthew Wilcox (Oracle)" , Yin Fengwei , Dave Hansen , David Hildenbrand , Thomas Gleixner , syzbot+55cc72f8cc3a549119df@syzkaller.appspotmail.com Subject: Re: [PATCH 2/2] mm: Abstract moving to the next PFN Message-ID: <202309201731.Tr9SZYEz-lkp@intel.com> References: <20230920035336.854212-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230920035336.854212-2-willy@infradead.org> X-Rspamd-Queue-Id: 767AB40018 X-Rspam-User: X-Stat-Signature: 3ni5arphsrcqypyed4enqw6op1hoz3te X-Rspamd-Server: rspam01 X-HE-Tag: 1695201652-611289 X-HE-Meta: U2FsdGVkX198sMLW8dqRqW8QrddLBi+bx4XrdoETSKmcGmDQi22W449/7qQk3T/w+pbTFljvM+uuRgqS+nyQlEOGLPfBSGgTLif/ObqiEC23dOXZzP39D3dD8rvFK3SLJj0QycqnyZKYy99YZs129NlahqjVeK5cg0KydQ9N+KVGAFsZFx6FeiUd1SepxS7uWEHXg+4HKvfuuXvpbWjzIQGm+c3dn5vGlKVxUAOOdmQ4V5wtVnA79x+l4WMYbKXu2Mbr6r+qPPm+bYR0HpMFTnN6YiRFO5r1f5syieDHnybjWOC9RYf1zC604jDden+Y/M1wF6eN7/BM1Reozwn+zHx6sHFzqJTsALCtD6TgiXIvjlmjTKZfsL/vVNSCvDfpY7MrhasBR9HaA6yrqFGLv48m8WSSWyoQ1TUPe0jk6f12v/kUd6JU3HY0x9y6sxNuZY4jJtjfQrfPdEM9+FwEhVnWPS78vm7S1+0BPC8yWouz4NNw+606fzWch0eHkzQ/8+FKTErCzqbOGGdFPMlwUS5lH3Z9kqpN0GttcRtyYc/5zijXkJfuCWHd5naf7qjpUWsdYFK0XgcA8idcT782gwu4X3SL5Uh4LbnA9GYuKZ2hTy9FomAcuIRHKSxFYtszQrXALgXCXirkVZ4Yk64hSXFUC9IG+RUfFKJ/NUkDavYhBEjnGHknhx5Cfa1ioZX/nH7ZyzMjl9N+WBZGkXN36GYK+G4GF6xP06HWeQlY0L+Xgy9td0pDjpTwgcjA8Gjn/bonQ04QmwBodZ27uYvBK3qwxagUazTZQq8fvZfcwRF/ey7VNzt03X22EGU6Owrhcvfc1LA8vNAIy7DH7xuFI+KP5lJBrj+50B6VwS8rYMm3YRV9GbPv479V0Jdt2+4tY9ynOu5zSBaDCDkpxOF3Xq1Q0DfwpEH+vALqolGBQJuKDOkqpufWEhSq2L6PDqyLDGGreIeKbCThd437LuQ K2hoCjMl hss/Zg+7/mPpJXh7Raf4Fv3VhjBWwGJpJgfP8bubdwHvn963ae/Ykd1PdkXskg3b+siQ0byjkzK2+tdypxapZBbkPBsQJuTuLOD0hfwnzfzdtemYIndNv5zbrH8kA4ZYqJg0jjcy3/wfw8cs79q2yBHxAZFfIKUJQMVftFKQdi7snq/MUn1WhyImTcObWw71v3g61EUgR7QPAY62wUvkZcLRH1Wy+YvRzI1lJQ2Hq1S7qbiJrma+CCSotFbybj/tIkZYVBeVjF+knJnXet+D5U+t/jDJy+YQ3/9UVtmKF6yIYHLxLYDF62jmSQsQ43UcIQHhreKX/LRasapsNXs+7VjAHWBjo8F9iJr5pwOjj3Zq7BU43Av1ao9zWbe6DwGGNBA55SCslHVP/hxa8GHJ4rt/ZwZEdISaa1aQtuRBbclTdWNgESY671sCl8XXDyi8B6j2Sb34Cr+cjd+KtOFrelRjhgg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Matthew, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Matthew-Wilcox-Oracle/mm-Abstract-moving-to-the-next-PFN/20230920-115500 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230920035336.854212-2-willy%40infradead.org patch subject: [PATCH 2/2] mm: Abstract moving to the next PFN config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20230920/202309201731.Tr9SZYEz-lkp@intel.com/config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230920/202309201731.Tr9SZYEz-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309201731.Tr9SZYEz-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/mm.h:29:0, 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:90, from init/main.c:21: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from arch/x86/um/ptrace_32.c:6: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/x86/um/ptrace_32.c: At top level: arch/x86/um/ptrace_32.c:15:6: warning: no previous declaration for 'arch_switch_to' [-Wmissing-declarations] void arch_switch_to(struct task_struct *to) ^~~~~~~~~~~~~~ arch/x86/um/ptrace_32.c:28:5: warning: no previous declaration for 'is_syscall' [-Wmissing-declarations] int is_syscall(unsigned long addr) ^~~~~~~~~~ arch/x86/um/ptrace_32.c:125:5: warning: no previous declaration for 'poke_user' [-Wmissing-declarations] int poke_user(struct task_struct *child, long addr, long data) ^~~~~~~~~ arch/x86/um/ptrace_32.c:177:5: warning: no previous declaration for 'peek_user' [-Wmissing-declarations] int peek_user(struct task_struct *child, long addr, long data) ^~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from include/linux/pid_namespace.h:7, from include/linux/ptrace.h:10, from arch/x86/um/signal.c:9: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/x86/um/signal.c: At top level: arch/x86/um/signal.c:453:6: warning: no previous declaration for 'sys_sigreturn' [-Wmissing-declarations] long sys_sigreturn(void) ^~~~~~~~~~~~~ arch/x86/um/signal.c:560:6: warning: no previous declaration for 'sys_rt_sigreturn' [-Wmissing-declarations] long sys_rt_sigreturn(void) ^~~~~~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, 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:90, from arch/x86/um/tls_32.c:8: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/x86/um/tls_32.c: At top level: arch/x86/um/tls_32.c:23:5: warning: no previous declaration for 'do_set_thread_area' [-Wmissing-declarations] int do_set_thread_area(struct user_desc *info) ^~~~~~~~~~~~~~~~~~ arch/x86/um/tls_32.c:39:5: warning: no previous declaration for 'do_get_thread_area' [-Wmissing-declarations] int do_get_thread_area(struct user_desc *info) ^~~~~~~~~~~~~~~~~~ arch/x86/um/tls_32.c:184:5: warning: no previous declaration for 'arch_switch_tls' [-Wmissing-declarations] int arch_switch_tls(struct task_struct *to) ^~~~~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from include/linux/coredump.h:6, from arch/x86/um/elfcore.c:3: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/x86/um/elfcore.c: At top level: arch/x86/um/elfcore.c:10:12: warning: no previous declaration for 'elf_core_extra_phdrs' [-Wmissing-declarations] Elf32_Half elf_core_extra_phdrs(struct coredump_params *cprm) ^~~~~~~~~~~~~~~~~~~~ arch/x86/um/elfcore.c:15:5: warning: no previous declaration for 'elf_core_write_extra_phdrs' [-Wmissing-declarations] int elf_core_write_extra_phdrs(struct coredump_params *cprm, loff_t offset) ^~~~~~~~~~~~~~~~~~~~~~~~~~ arch/x86/um/elfcore.c:42:5: warning: no previous declaration for 'elf_core_write_extra_data' [-Wmissing-declarations] int elf_core_write_extra_data(struct coredump_params *cprm) ^~~~~~~~~~~~~~~~~~~~~~~~~ arch/x86/um/elfcore.c:63:8: warning: no previous declaration for 'elf_core_extra_data_size' [-Wmissing-declarations] size_t elf_core_extra_data_size(struct coredump_params *cprm) ^~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from include/linux/kallsyms.h:13, from include/linux/ftrace.h:13, from include/linux/kprobes.h:28, from include/linux/kgdb.h:19, from kernel/panic.c:15: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ kernel/panic.c: In function '__warn': kernel/panic.c:670:3: warning: function '__warn' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format] vprintk(args->fmt, args->args); ^~~~~~~ -- In file included from include/linux/mm.h:29:0, from include/linux/memblock.h:12, from arch/um/kernel/mem.c:8: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/um/kernel/mem.c: At top level: arch/um/kernel/mem.c:202:8: warning: no previous declaration for 'pgd_alloc' [-Wmissing-declarations] pgd_t *pgd_alloc(struct mm_struct *mm) ^~~~~~~~~ arch/um/kernel/mem.c:215:7: warning: no previous declaration for 'uml_kmalloc' [-Wmissing-declarations] void *uml_kmalloc(int size, int flags) ^~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from arch/um/kernel/process.c:12: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/um/kernel/process.c: At top level: arch/um/kernel/process.c:51:5: warning: no previous declaration for 'pid_to_processor_id' [-Wmissing-declarations] int pid_to_processor_id(int pid) ^~~~~~~~~~~~~~~~~~~ arch/um/kernel/process.c:87:7: warning: no previous declaration for '__switch_to' [-Wmissing-declarations] void *__switch_to(struct task_struct *from, struct task_struct *to) ^~~~~~~~~~~ arch/um/kernel/process.c: In function 'new_thread_handler': arch/um/kernel/process.c:122:21: warning: variable 'n' set but not used [-Wunused-but-set-variable] int (*fn)(void *), n; ^ arch/um/kernel/process.c: At top level: arch/um/kernel/process.c:140:6: warning: no previous declaration for 'fork_handler' [-Wmissing-declarations] void fork_handler(void) ^~~~~~~~~~~~ arch/um/kernel/process.c:217:6: warning: no previous declaration for 'arch_cpu_idle' [-Wmissing-declarations] void arch_cpu_idle(void) ^~~~~~~~~~~~~ arch/um/kernel/process.c:253:5: warning: no previous declaration for 'copy_to_user_proc' [-Wmissing-declarations] int copy_to_user_proc(void __user *to, void *from, int size) ^~~~~~~~~~~~~~~~~ arch/um/kernel/process.c:263:5: warning: no previous declaration for 'clear_user_proc' [-Wmissing-declarations] int clear_user_proc(void __user *buf, int size) ^~~~~~~~~~~~~~~ arch/um/kernel/process.c:316:12: warning: no previous declaration for 'make_proc_sysemu' [-Wmissing-declarations] int __init make_proc_sysemu(void) ^~~~~~~~~~~~~~~~ arch/um/kernel/process.c:356:15: warning: no previous declaration for 'arch_align_stack' [-Wmissing-declarations] unsigned long arch_align_stack(unsigned long sp) ^~~~~~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from include/linux/oom.h:11, from arch/um/kernel/reboot.c:11: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/um/kernel/reboot.c: At top level: arch/um/kernel/reboot.c:45:6: warning: no previous declaration for 'machine_restart' [-Wmissing-declarations] void machine_restart(char * __unused) ^~~~~~~~~~~~~~~ arch/um/kernel/reboot.c:51:6: warning: no previous declaration for 'machine_power_off' [-Wmissing-declarations] void machine_power_off(void) ^~~~~~~~~~~~~~~~~ arch/um/kernel/reboot.c:57:6: warning: no previous declaration for 'machine_halt' [-Wmissing-declarations] void machine_halt(void) ^~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from arch/um/kernel/tlb.c:6: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/um/kernel/tlb.c: At top level: arch/um/kernel/tlb.c:579:6: warning: no previous declaration for 'flush_tlb_mm_range' [-Wmissing-declarations] void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, ^~~~~~~~~~~~~~~~~~ arch/um/kernel/tlb.c:594:6: warning: no previous declaration for 'force_flush_all' [-Wmissing-declarations] void force_flush_all(void) ^~~~~~~~~~~~~~~ -- In file included from include/linux/mm.h:29:0, from arch/um/kernel/um_arch.c:9: include/linux/pgtable.h: In function 'set_ptes': >> include/linux/pgtable.h:209:34: error: invalid operands to binary + (have 'pte_t {aka struct }' and 'long unsigned int') #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) ^ include/linux/pgtable.h:238:9: note: in expansion of macro 'pte_next_pfn' pte = pte_next_pfn(pte); ^~~~~~~~~~~~ arch/um/kernel/um_arch.c: At top level: arch/um/kernel/um_arch.c:408:19: warning: no previous declaration for 'read_initrd' [-Wmissing-declarations] int __init __weak read_initrd(void) ^~~~~~~~~~~ arch/um/kernel/um_arch.c:461:7: warning: no previous declaration for 'text_poke' [-Wmissing-declarations] void *text_poke(void *addr, const void *opcode, size_t len) ^~~~~~~~~ arch/um/kernel/um_arch.c:473:6: warning: no previous declaration for 'text_poke_sync' [-Wmissing-declarations] void text_poke_sync(void) ^~~~~~~~~~~~~~ .. vim +209 include/linux/pgtable.h 207 208 #ifndef pte_next_pfn > 209 #define pte_next_pfn(pte) ((pte) + (1UL << PFN_PTE_SHIFT)) 210 #endif 211 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki