From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8BC4449659 for ; Sat, 3 Aug 2024 13:52:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722693180; cv=none; b=ehmlrOKaq8tgWRppWetWB5Avd64pScpe9XFjgtDWfiP1r31C4530tqDCoX8r+MsqhZXOyKV33Com1St1EHLFLk3WWwkP4twdhc3UAqwfU77zEtDxwU+6Eh3fsb8B0TvfGyA4Ene1L/uGshZsLsNz3VHXrUAqNZGMBSeovZeYUc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722693180; c=relaxed/simple; bh=u9PB3XUR/ySD5ocJgmXuw9J1LydDozcHJCrpJvj6MJ4=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Qdy7MqJtBv5b/5Szyo3S4hyL/qJXBY+tr0iAXzBCGSLSmqdDPsFrybo9DYVBj7l/85ZoFQahHTMQmNBPzT8e9eQVCSIKBffX9pSEYidAlR495fjatCpKBRuQOGN7cpftESuWrxl/AiS1Ah7/GYjmT0hPCsyUNQOZcplzHiOa12c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GZCSRuQP; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GZCSRuQP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722693179; x=1754229179; h=date:from:to:cc:subject:message-id:mime-version; bh=u9PB3XUR/ySD5ocJgmXuw9J1LydDozcHJCrpJvj6MJ4=; b=GZCSRuQPZNi0OfQIfkRI4OpAu874eFoP2ZqYzGvAhdc7dOQfNLe1eOva GyoSBVA7ephQ3FwM7xofk21TuKQWBgxZ+5CaqeQB51LXeLG2qa/4fRuVP WBVgbCeRO7/gNGoB0HJ8h2+zqqDgrsNNtVqU3XXiQ7h0VQp4LVf0msCcr HMq0JVz4ILmx3eXsLR95PsdXGhDmg7V30YQDgZutfpyQ0Ywm/LNUe4LUG timUBIR7ZWAnwOV/cxO7JvvBE5anrClYVxi1BExk0Uy50GaRxLGlICvkr DdYVKSa/pU5EFgXJ94tkhvXO9gS9WNVrq1wsw9ItQ46TvHOxeFzcZ4BFT w==; X-CSE-ConnectionGUID: I6Gm1RReTMKO2lSJbLdi3A== X-CSE-MsgGUID: 2XhKV5L3SVOtd5wxIlxLnA== X-IronPort-AV: E=McAfee;i="6700,10204,11153"; a="23617649" X-IronPort-AV: E=Sophos;i="6.09,260,1716274800"; d="scan'208";a="23617649" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2024 06:52:58 -0700 X-CSE-ConnectionGUID: H6G7cXDsQNeF1X/ChKQ9GA== X-CSE-MsgGUID: 7J5YlGn2TLaZE1+lwp5/Pg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,260,1716274800"; d="scan'208";a="78982482" Received: from unknown (HELO b6bf6c95bbab) ([10.239.97.151]) by fmviesa002.fm.intel.com with ESMTP; 03 Aug 2024 06:52:56 -0700 Received: from kbuild by b6bf6c95bbab with local (Exim 4.96) (envelope-from ) id 1saFBg-0000Uo-1g; Sat, 03 Aug 2024 13:52:49 +0000 Date: Sat, 3 Aug 2024 21:52:39 +0800 From: kernel test robot To: Arnd Bergmann Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Gleixner Subject: arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared; did you mean 'CONFIG_LOG_BUF_SHIFT'? Message-ID: <202408032138.P7sBvIns-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Arnd, FYI, the error/warning still remains. tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 17712b7ea0756799635ba159cc773082230ed028 commit: 5394f1e9b687bcf26595cabf83483e568676128d arch: define CONFIG_PAGE_SIZE_*KB on all architectures date: 5 months ago config: m68k-alldefconfig (https://download.01.org/0day-ci/archive/20240803/202408032138.P7sBvIns-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240803/202408032138.P7sBvIns-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/202408032138.P7sBvIns-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/m68k/include/asm/thread_info.h:6, from include/linux/thread_info.h:60, from include/asm-generic/preempt.h:5, from ./arch/m68k/include/generated/asm/preempt.h:1, from include/linux/preempt.h:79, from arch/m68k/include/asm/processor.h:11, from include/linux/sched.h:13, from arch/m68k/kernel/asm-offsets.c:15: arch/m68k/include/asm/page_mm.h: In function 'virt_to_pfn': >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page_mm.h:125:31: note: in expansion of macro 'PAGE_SHIFT' 125 | return __pa(kaddr) >> PAGE_SHIFT; | ^~~~~~~~~~ arch/m68k/include/asm/page.h:10:25: note: each undeclared identifier is reported only once for each function it appears in 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page_mm.h:125:31: note: in expansion of macro 'PAGE_SHIFT' 125 | return __pa(kaddr) >> PAGE_SHIFT; | ^~~~~~~~~~ arch/m68k/include/asm/page_mm.h: In function 'pfn_to_virt': >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page_mm.h:130:28: note: in expansion of macro 'PAGE_SHIFT' 130 | return __va(pfn << PAGE_SHIFT); | ^~~~~~~~~~ include/asm-generic/getorder.h: In function 'get_order': >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ include/asm-generic/getorder.h:33:48: note: in expansion of macro 'PAGE_SHIFT' 33 | return BITS_PER_LONG - PAGE_SHIFT; | ^~~~~~~~~~ arch/m68k/include/asm/thread_info.h: At top level: arch/m68k/include/asm/page.h:10:25: warning: "CONFIG_PAGE_SHIFT" is not defined, evaluates to 0 [-Wundef] 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/thread_info.h:13:5: note: in expansion of macro 'PAGE_SHIFT' 13 | #if PAGE_SHIFT < 13 | ^~~~~~~~~~ arch/m68k/include/asm/page.h:10:25: warning: "CONFIG_PAGE_SHIFT" is not defined, evaluates to 0 [-Wundef] 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page.h:11:40: note: in expansion of macro 'PAGE_SHIFT' 11 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | ^~~~~~~~~~ include/linux/mm_types_task.h:40:30: note: in expansion of macro 'PAGE_SIZE' 40 | #if (BITS_PER_LONG > 32) || (PAGE_SIZE >= 65536) | ^~~~~~~~~ arch/m68k/include/asm/page.h:10:25: warning: "CONFIG_PAGE_SHIFT" is not defined, evaluates to 0 [-Wundef] 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page.h:11:40: note: in expansion of macro 'PAGE_SHIFT' 11 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | ^~~~~~~~~~ include/linux/mm_types.h:502:6: note: in expansion of macro 'PAGE_SIZE' 502 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^~~~~~~~~ In file included from include/vdso/const.h:5, from include/linux/const.h:4, from include/linux/bits.h:5, from include/linux/ratelimit_types.h:5, from include/linux/printk.h:9, from include/asm-generic/bug.h:22, from arch/m68k/include/asm/bug.h:32, from include/linux/bug.h:5, from include/linux/thread_info.h:13: arch/m68k/include/asm/page.h:10:25: warning: "CONFIG_PAGE_SHIFT" is not defined, evaluates to 0 [-Wundef] 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ include/uapi/linux/const.h:32:50: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/mm_types.h:479:41: note: in expansion of macro '__ALIGN_MASK' 479 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^~~~~~~~~~~~ arch/m68k/include/asm/page.h:11:40: note: in expansion of macro 'PAGE_SHIFT' 11 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | ^~~~~~~~~~ arch/m68k/include/asm/page.h:12:28: note: in expansion of macro 'PAGE_SIZE' 12 | #define PAGE_MASK (~(PAGE_SIZE-1)) | ^~~~~~~~~ include/linux/mm_types.h:479:62: note: in expansion of macro 'PAGE_MASK' 479 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^~~~~~~~~ include/linux/mm_types.h:502:18: note: in expansion of macro 'PAGE_FRAG_CACHE_MAX_SIZE' 502 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^~~~~~~~~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page.h:10:25: warning: "CONFIG_PAGE_SHIFT" is not defined, evaluates to 0 [-Wundef] 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ include/uapi/linux/const.h:32:61: note: in definition of macro '__ALIGN_KERNEL_MASK' 32 | #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) | ^~~~ include/linux/mm_types.h:479:41: note: in expansion of macro '__ALIGN_MASK' 479 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^~~~~~~~~~~~ arch/m68k/include/asm/page.h:11:40: note: in expansion of macro 'PAGE_SHIFT' 11 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | ^~~~~~~~~~ arch/m68k/include/asm/page.h:12:28: note: in expansion of macro 'PAGE_SIZE' 12 | #define PAGE_MASK (~(PAGE_SIZE-1)) | ^~~~~~~~~ include/linux/mm_types.h:479:62: note: in expansion of macro 'PAGE_MASK' 479 | #define PAGE_FRAG_CACHE_MAX_SIZE __ALIGN_MASK(32768, ~PAGE_MASK) | ^~~~~~~~~ include/linux/mm_types.h:502:18: note: in expansion of macro 'PAGE_FRAG_CACHE_MAX_SIZE' 502 | #if (PAGE_SIZE < PAGE_FRAG_CACHE_MAX_SIZE) | ^~~~~~~~~~~~~~~~~~~~~~~~ include/linux/vmalloc.h: In function 'arch_vmap_pte_range_map_size': >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page.h:11:40: note: in expansion of macro 'PAGE_SHIFT' 11 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | ^~~~~~~~~~ include/linux/vmalloc.h:109:16: note: in expansion of macro 'PAGE_SIZE' 109 | return PAGE_SIZE; | ^~~~~~~~~ include/linux/vmalloc.h: In function 'arch_vmap_pte_supported_shift': >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ include/linux/vmalloc.h:116:16: note: in expansion of macro 'PAGE_SHIFT' 116 | return PAGE_SHIFT; | ^~~~~~~~~~ include/linux/vmalloc.h: In function 'get_vm_area_size': >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared (first use in this function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ arch/m68k/include/asm/page.h:11:40: note: in expansion of macro 'PAGE_SHIFT' 11 | #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) | ^~~~~~~~~~ include/linux/vmalloc.h:200:37: note: in expansion of macro 'PAGE_SIZE' 200 | return area->size - PAGE_SIZE; | ^~~~~~~~~ include/linux/slab.h: At top level: >> arch/m68k/include/asm/page.h:10:25: error: 'CONFIG_PAGE_SHIFT' undeclared here (not in a function); did you mean 'CONFIG_LOG_BUF_SHIFT'? 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ include/linux/slab.h:309:34: note: in expansion of macro 'PAGE_SHIFT' 309 | #define KMALLOC_SHIFT_HIGH (PAGE_SHIFT + 1) | ^~~~~~~~~~ include/linux/slab.h:379:34: note: in expansion of macro 'KMALLOC_SHIFT_HIGH' 379 | kmalloc_caches[NR_KMALLOC_TYPES][KMALLOC_SHIFT_HIGH + 1]; | ^~~~~~~~~~~~~~~~~~ In file included from include/linux/init.h:5, from include/linux/printk.h:6: >> arch/m68k/include/asm/page.h:10:25: error: expression in static assertion is not an integer 10 | #define PAGE_SHIFT CONFIG_PAGE_SHIFT | ^~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/slab.h:475:1: note: in expansion of macro 'static_assert' 475 | static_assert(PAGE_SHIFT <= 20); | ^~~~~~~~~~~~~ include/linux/slab.h:475:15: note: in expansion of macro 'PAGE_SHIFT' 475 | static_assert(PAGE_SHIFT <= 20); | ^~~~~~~~~~ In file included from include/linux/irq.h:21, from include/asm-generic/hardirq.h:17, from ./arch/m68k/include/generated/asm/hardirq.h:1, from include/linux/hardirq.h:11, from include/linux/interrupt.h:11, from include/linux/kernel_stat.h:9, from arch/m68k/kernel/asm-offsets.c:16: include/linux/slab.h:522:47: warning: 'assume_aligned' attribute argument is not an integer constant [-Wattributes] 522 | __alloc_size(1); | ^~~~~~~~~~~~ include/linux/slab.h:525:62: warning: 'assume_aligned' attribute argument is not an integer constant [-Wattributes] 525 | __alloc_size(1); | ^~~~~~~~~~~~ include/linux/slab.h: In function 'kmalloc': include/linux/slab.h:584:30: warning: variable 'index' set but not used [-Wunused-but-set-variable] 584 | unsigned int index; | ^~~~~ include/linux/slab.h: In function 'kmalloc_node': include/linux/slab.h:600:30: warning: variable 'index' set but not used [-Wunused-but-set-variable] 600 | unsigned int index; | ^~~~~ make[3]: *** [scripts/Makefile.build:116: arch/m68k/kernel/asm-offsets.s] Error 1 make[3]: Target 'prepare' not remade because of errors. make[2]: *** [Makefile:1199: prepare0] Error 2 make[2]: Target 'prepare' not remade because of errors. make[1]: *** [Makefile:240: __sub-make] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:240: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. vim +10 arch/m68k/include/asm/page.h 8 9 /* PAGE_SHIFT determines the page size */ > 10 #define PAGE_SHIFT CONFIG_PAGE_SHIFT > 11 #define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) 12 #define PAGE_MASK (~(PAGE_SIZE-1)) 13 #define PAGE_OFFSET (PAGE_OFFSET_RAW) 14 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki