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 25057EDE996 for ; Tue, 10 Sep 2024 01:34:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4C9EC6B025B; Mon, 9 Sep 2024 21:34:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 479726B025E; Mon, 9 Sep 2024 21:34:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31A796B025F; Mon, 9 Sep 2024 21:34:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 14DB16B025B for ; Mon, 9 Sep 2024 21:34:33 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 08E97A12DF for ; Tue, 10 Sep 2024 01:34:32 +0000 (UTC) X-FDA: 82547108784.19.76F8519 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by imf23.hostedemail.com (Postfix) with ESMTP id CFB16140002 for ; Tue, 10 Sep 2024 01:34:28 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="f5H4M/HT"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of lkp@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1725932042; a=rsa-sha256; cv=none; b=t3bEqxJ+4E85Z2rqi8ogHN82HOGi8Ns/gsLHxPDK4mn4NHLM3qJRnDuOHKC5b1HGMm5hZI WI65T1UdGXrzEG1BUP4IYPyDWRHt2Dk/HDERsmCON80YZZ1bP/sL/SUMp2RpI42kNhWNve 4th5oK3bn/BVgi33Y1km0rEHtfxayXk= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b="f5H4M/HT"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf23.hostedemail.com: domain of lkp@intel.com designates 198.175.65.16 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1725932042; 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: references:dkim-signature; bh=go9uo9dl3XAWw7zCa/MuxDWqNBHlPer2V2duyoxo9YI=; b=lUrJZRqIxEhNn2/KbGjfLBkrMOV4LRMwmbRwnLYhMmxLQ1uiE9gO6QWMcc9kPtH/yPSoY+ RosMMNWV3ZCChoM3Qr5yR7CForqcMK3SXkcjbI6+hvUhQHuMzuSya3SomWsNlbmZ1nf10+ aJ84J7l/0QnuHr2VA4BKuZ2L054v1A4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1725932069; x=1757468069; h=date:from:to:cc:subject:message-id:mime-version; bh=QUxtSaAYmpbUkzJjIR2faDH04Hu615Kv8ZqRCadnoaA=; b=f5H4M/HTbdOSg8mBotLhc1mCoZExnOay0C9JXhJLRQ5KlNyOEd0ESdTx 1ju8PU2TyxNSH5ouMjOY4CGNShd1mfn7kPmoPt/4jcLV+mRXJg3khtVlN NV49iLaZJ/qtvC1z2Z4Glg/6LcdzGDBh8/J4lL5sCPpG4drUJ281riw/O 2Ug3UfORQLjV3TP0lvVxAg3/wac8fv5lAHQtjJUYPLpnSIciUvH94FSt/ eMdYwcynsB2wzUNonFC9Jyc6Vqy3rABI2xgAFbGgKf95KZTqSrRXiI7m+ UJBYSHnttqZ1mS5EcjDM0K7qyiy0mYEhwGok5OQ6cqm5gwSN4WjruGnAh A==; X-CSE-ConnectionGUID: 0W1QEPwyRtOaQDvzTrWlLw== X-CSE-MsgGUID: 9DZU3ls4T0a5J5YMZAnXkA== X-IronPort-AV: E=McAfee;i="6700,10204,11190"; a="24767190" X-IronPort-AV: E=Sophos;i="6.10,215,1719903600"; d="scan'208";a="24767190" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2024 18:34:27 -0700 X-CSE-ConnectionGUID: SfIMpeOFTu+Z/gtDDSDxng== X-CSE-MsgGUID: 2cw/JPAmQWKMh4bhmsf4lg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,215,1719903600"; d="scan'208";a="71828487" Received: from lkp-server01.sh.intel.com (HELO 9c6b1c7d3b50) ([10.239.97.150]) by orviesa004.jf.intel.com with ESMTP; 09 Sep 2024 18:34:26 -0700 Received: from kbuild by 9c6b1c7d3b50 with local (Exim 4.96) (envelope-from ) id 1snplv-000FSY-0v; Tue, 10 Sep 2024 01:34:23 +0000 Date: Tue, 10 Sep 2024 09:33:48 +0800 From: kernel test robot To: Andrew Morton Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 10352/10516] include/linux/mm.h:101:35: error: 'MAX_PHYSMEM_BITS' undeclared Message-ID: <202409100913.RxkfrKU6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Queue-Id: CFB16140002 X-Rspamd-Server: rspam01 X-Stat-Signature: 645773u4r4eahwdbnh6x49yyzshgerye X-HE-Tag: 1725932068-685414 X-HE-Meta: U2FsdGVkX1938f8joRkPBSYQP/bvRGsK3esD0mSQ/vDEqKdnTWEmF7j972TEWJnfT1yFrOEagfeOaSYmkHWV913KtNPx/xAA3AEdMDPIj+Mp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U+zVDP8ws+cD+2KXYi1NJK78js71FqmTSaXjgAegtjn8QHXQU3VgEafkEbbK4RfoklK+J+slvmXvoyF47j5Kta+ONtC+TbrHm6535Evvb8N848czY0l4ylHt3sxT/WnwR79jNvGckOn6aOGYnspSLqk+ATFEiiq2Wt3yRFzTg== 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 100cc857359b5d731407d1038f7e76cd0e871d94 commit: 5f445800cbdfc4b4185d496a43dfd78df63d2265 [10352/10516] Merge branch 'mm-everything' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20240910/202409100913.RxkfrKU6-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/20240910/202409100913.RxkfrKU6-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/202409100913.RxkfrKU6-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/ioport.h:15, from kernel/resource.c:15: kernel/resource.c: In function 'gfr_start': >> include/linux/mm.h:101:35: error: 'MAX_PHYSMEM_BITS' undeclared (first use in this function) 101 | # define PHYSMEM_END ((1ULL << MAX_PHYSMEM_BITS) - 1) | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:93:38: note: in definition of macro '__cmp_once_unique' 93 | ({ type ux = (x); type uy = (y); __cmp(op, ux, uy); }) | ^ include/linux/minmax.h:213:27: note: in expansion of macro '__cmp_once' 213 | #define min_t(type, x, y) __cmp_once(min, type, x, y) | ^~~~~~~~~~ kernel/resource.c:1874:23: note: in expansion of macro 'min_t' 1874 | end = min_t(resource_size_t, base->end, PHYSMEM_END); | ^~~~~ kernel/resource.c:1874:57: note: in expansion of macro 'PHYSMEM_END' 1874 | end = min_t(resource_size_t, base->end, PHYSMEM_END); | ^~~~~~~~~~~ include/linux/mm.h:101:35: note: each undeclared identifier is reported only once for each function it appears in 101 | # define PHYSMEM_END ((1ULL << MAX_PHYSMEM_BITS) - 1) | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:93:38: note: in definition of macro '__cmp_once_unique' 93 | ({ type ux = (x); type uy = (y); __cmp(op, ux, uy); }) | ^ include/linux/minmax.h:213:27: note: in expansion of macro '__cmp_once' 213 | #define min_t(type, x, y) __cmp_once(min, type, x, y) | ^~~~~~~~~~ kernel/resource.c:1874:23: note: in expansion of macro 'min_t' 1874 | end = min_t(resource_size_t, base->end, PHYSMEM_END); | ^~~~~ kernel/resource.c:1874:57: note: in expansion of macro 'PHYSMEM_END' 1874 | end = min_t(resource_size_t, base->end, PHYSMEM_END); | ^~~~~~~~~~~ kernel/resource.c: In function 'gfr_continue': >> include/linux/mm.h:101:35: error: 'MAX_PHYSMEM_BITS' undeclared (first use in this function) 101 | # define PHYSMEM_END ((1ULL << MAX_PHYSMEM_BITS) - 1) | ^~~~~~~~~~~~~~~~ include/linux/minmax.h:93:38: note: in definition of macro '__cmp_once_unique' 93 | ({ type ux = (x); type uy = (y); __cmp(op, ux, uy); }) | ^ include/linux/minmax.h:213:27: note: in expansion of macro '__cmp_once' 213 | #define min_t(type, x, y) __cmp_once(min, type, x, y) | ^~~~~~~~~~ kernel/resource.c:1891:24: note: in expansion of macro 'min_t' 1891 | addr <= min_t(resource_size_t, base->end, PHYSMEM_END); | ^~~~~ kernel/resource.c:1891:58: note: in expansion of macro 'PHYSMEM_END' 1891 | addr <= min_t(resource_size_t, base->end, PHYSMEM_END); | ^~~~~~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] vim +/MAX_PHYSMEM_BITS +101 include/linux/mm.h d07e22597d1d35 Daniel Cashman 2016-01-14 99 ea72ce5da22806 Thomas Gleixner 2024-08-14 100 #ifndef PHYSMEM_END ea72ce5da22806 Thomas Gleixner 2024-08-14 @101 # define PHYSMEM_END ((1ULL << MAX_PHYSMEM_BITS) - 1) ea72ce5da22806 Thomas Gleixner 2024-08-14 102 #endif ea72ce5da22806 Thomas Gleixner 2024-08-14 103 :::::: The code at line 101 was first introduced by commit :::::: ea72ce5da22806d5713f3ffb39a6d5ae73841f93 x86/kaslr: Expose and use the end of the physical memory address space :::::: TO: Thomas Gleixner :::::: CC: Thomas Gleixner -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki