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 6715BC04FFE for ; Mon, 20 May 2024 16:31:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EB3486B008C; Mon, 20 May 2024 12:31:48 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E38C76B0092; Mon, 20 May 2024 12:31:48 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CDBD46B0093; Mon, 20 May 2024 12:31:48 -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 AA8BB6B008C for ; Mon, 20 May 2024 12:31:48 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 604E81A0DF5 for ; Mon, 20 May 2024 16:31:48 +0000 (UTC) X-FDA: 82139315496.04.895963F Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by imf25.hostedemail.com (Postfix) with ESMTP id 21C40A0019 for ; Mon, 20 May 2024 16:31:43 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=I9JP+zqv; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.198.163.11 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=1716222706; a=rsa-sha256; cv=none; b=iT5eKqEr9ljxD7N9wSMnVxsKnupzvBrHpRilKr+ychcKQdTKx9SlAxjWLyR3vl4YZZML/Y qWGWsocBgUKUftiAdGzOH3klkbFcUOX4H1CtrhY4lfG0Be+c5fWYeeAxnM1r6GQHdsKaIk E5nR6K7WxZemSDSZot1Ok8bFz0jMNvs= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=I9JP+zqv; spf=pass (imf25.hostedemail.com: domain of lkp@intel.com designates 192.198.163.11 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=1716222706; 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=L92wMrgzV4BNRJys4dO2PjIovC5UdSaDMTjiU6yE21s=; b=p8ScCvIXlYS7qiC1fU7LZLUSrg7qw3kJ4av079aR7pcmgDn8KBL/PKjby59lsW7e2yWXKR cPPs9K/No/3bOGTQi5krBJfUkdsdI/4kLmU7j8gaCgOMroV9ls5wry1f4o6T2uWgskhj9E L41+FzGAFMeSY84+yl7MQQZPu9Lr4bQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716222704; x=1747758704; h=date:from:to:cc:subject:message-id:mime-version; bh=Dh+uJhI39asicZ2Tx302il4dLC2W4RA5ii2uGeQDU48=; b=I9JP+zqvXI0za8A2kwVeXaIm0yPvn7LrUxKZvOld5Qbt18BRk1UgqefT CybU839mPJPqzlP2owheSiwwb07FrrM5n7ObnMOMVaBmcvfGnYawXuqLB 4rFgif7c2y3sO0HSkmP4jpoC+dKq51Kpby8HEJhYdfrv82n514RGy5r+O vwWuUSAOrooKy+PgPS+YfdsKXSPHgTTYDsi/t7jRM0gmYYBuZNreE5/7a tYoYgq+QFNsZsYTAcRozHs+sA/WnFOmp6gC+Aha9W9yRRPIzmPcrGj8+O 7TxiuV9LS+FCJwGWuXZtG6Vn2y3dchmyApxPukE0Z/lIUSkTthJqYlCLZ g==; X-CSE-ConnectionGUID: EqnyJpXJQwaJNhl2loBjmw== X-CSE-MsgGUID: v0J1iDBhQVyMcvfioJgFYQ== X-IronPort-AV: E=McAfee;i="6600,9927,11078"; a="22969508" X-IronPort-AV: E=Sophos;i="6.08,175,1712646000"; d="scan'208";a="22969508" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 May 2024 09:31:43 -0700 X-CSE-ConnectionGUID: 6vd7fGjrTqmABDzbDSJZxg== X-CSE-MsgGUID: R3Uus9y+RPapxvAB+VAZoQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,175,1712646000"; d="scan'208";a="32503159" Received: from unknown (HELO 108735ec233b) ([10.239.97.151]) by fmviesa007.fm.intel.com with ESMTP; 20 May 2024 09:31:41 -0700 Received: from kbuild by 108735ec233b with local (Exim 4.96) (envelope-from ) id 1s95vG-0004y9-1r; Mon, 20 May 2024 16:31:38 +0000 Date: Tue, 21 May 2024 00:31:18 +0800 From: kernel test robot To: Suren Baghdasaryan Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List , Kent Overstreet Subject: include/asm-generic/percpu.h:31:40: error: implicit declaration of function 'raw_smp_processor_id' Message-ID: <202405210052.DIrMXJNz-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 21C40A0019 X-Rspam-User: X-Rspamd-Server: rspam12 X-Stat-Signature: ja7ecfat6z6wpudgxksz8pu3zc9seu9u X-HE-Tag: 1716222703-167826 X-HE-Meta: U2FsdGVkX1/pP6/TUdKAzbaaRZQ12ScNe7oDcnS4sJshsODkiLOps3DtI8LESDtCl1DTuazxauUB5rpeAS86d9Ag+yzQjrDvrd8ms9siqF34M6PRUiH3PyAY58gKUpTbMrJ1ozM0V3SKQZ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ybC5h5QfsAjgrhr6gWxXNuOttds2oInUFsKhfEXlkkdJP0cBHWY0ATF2wTxBxlHwGgjCZIpvXhLSQkabHYHQiRmxwMUXnp5D/NGGp0lj2GgfvGj8NCRI1NpG1INF+SjcyjVAuB/2JlXGx2YlBUA7z/Yg6+hJ1fd9CKJRgxljeTBYyky1XMm 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/torvalds/linux.git master head: eb6a9339efeb6f3d2b5c86fdf2382cdc293eca2c commit: 24e44cc22aa3112082f2ee23137d048c73ca96d5 mm: percpu: enable per-cpu allocation tagging date: 4 weeks ago config: mips-randconfig-r133-20240520 (https://download.01.org/0day-ci/archive/20240521/202405210052.DIrMXJNz-lkp@intel.com/config) compiler: mips-linux-gcc (GCC) 13.2.0 reproduce: (https://download.01.org/0day-ci/archive/20240521/202405210052.DIrMXJNz-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/202405210052.DIrMXJNz-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from include/linux/compiler_types.h:151, from : include/linux/alloc_tag.h: In function '__alloc_tag_ref_set': >> include/asm-generic/percpu.h:31:40: error: implicit declaration of function 'raw_smp_processor_id' [-Werror=implicit-function-declaration] 31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler-gcc.h:35:33: note: in definition of macro 'RELOC_HIDE' 35 | (typeof(ptr)) (__ptr + (off)); \ | ^~~ include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' 44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset) | ^~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset' 31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ^~~~~~~~~~~~~~ include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset' 44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset) | ^~~~~~~~~~~~~~~ include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr' 242 | arch_raw_cpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:72:10: note: in expansion of macro 'raw_cpu_ptr' 72 | *raw_cpu_ptr(&(pcp)) op val; \ | ^~~~~~~~~~~ include/asm-generic/percpu.h:156:9: note: in expansion of macro 'raw_cpu_generic_to_op' 156 | raw_cpu_generic_to_op(pcp, val, op); \ | ^~~~~~~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:401:41: note: in expansion of macro 'this_cpu_generic_to_op' 401 | #define this_cpu_add_1(pcp, val) this_cpu_generic_to_op(pcp, val, +=) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:501:41: note: in expansion of macro 'this_cpu_add' 501 | #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) | ^~~~~~~~~~~~ include/linux/alloc_tag.h:117:9: note: in expansion of macro 'this_cpu_inc' 117 | this_cpu_inc(tag->counters->calls); | ^~~~~~~~~~~~ In file included from include/linux/smp.h:119, from include/linux/percpu.h:8, from include/linux/context_tracking_state.h:5, from include/linux/hardirq.h:5, from include/linux/interrupt.h:11, from include/drm/drm_util.h:35, from drivers/gpu/drm/xe/xe_device.h:12, from drivers/gpu/drm/xe/xe_bb.c:10: arch/mips/include/asm/smp.h: At top level: >> arch/mips/include/asm/smp.h:26:19: error: static declaration of 'raw_smp_processor_id' follows non-static declaration 26 | static inline int raw_smp_processor_id(void) | ^~~~~~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:31:40: note: previous implicit declaration of 'raw_smp_processor_id' with type 'int()' 31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ^~~~~~~~~~~~~~~~~~~~ include/linux/compiler-gcc.h:35:33: note: in definition of macro 'RELOC_HIDE' 35 | (typeof(ptr)) (__ptr + (off)); \ | ^~~ include/asm-generic/percpu.h:44:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' 44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset) | ^~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:31:25: note: in expansion of macro 'per_cpu_offset' 31 | #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) | ^~~~~~~~~~~~~~ include/asm-generic/percpu.h:44:53: note: in expansion of macro '__my_cpu_offset' 44 | #define arch_raw_cpu_ptr(ptr) SHIFT_PERCPU_PTR(ptr, __my_cpu_offset) | ^~~~~~~~~~~~~~~ include/linux/percpu-defs.h:242:9: note: in expansion of macro 'arch_raw_cpu_ptr' 242 | arch_raw_cpu_ptr(ptr); \ | ^~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:72:10: note: in expansion of macro 'raw_cpu_ptr' 72 | *raw_cpu_ptr(&(pcp)) op val; \ | ^~~~~~~~~~~ include/asm-generic/percpu.h:156:9: note: in expansion of macro 'raw_cpu_generic_to_op' 156 | raw_cpu_generic_to_op(pcp, val, op); \ | ^~~~~~~~~~~~~~~~~~~~~ include/asm-generic/percpu.h:401:41: note: in expansion of macro 'this_cpu_generic_to_op' 401 | #define this_cpu_add_1(pcp, val) this_cpu_generic_to_op(pcp, val, +=) | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ include/linux/percpu-defs.h:501:41: note: in expansion of macro 'this_cpu_add' 501 | #define this_cpu_inc(pcp) this_cpu_add(pcp, 1) | ^~~~~~~~~~~~ include/linux/alloc_tag.h:117:9: note: in expansion of macro 'this_cpu_inc' 117 | this_cpu_inc(tag->counters->calls); | ^~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/raw_smp_processor_id +31 include/asm-generic/percpu.h acdac87202a408 travis@sgi.com 2008-01-30 23 acdac87202a408 travis@sgi.com 2008-01-30 24 /* acdac87202a408 travis@sgi.com 2008-01-30 25 * Determine the offset for the currently active processor. acdac87202a408 travis@sgi.com 2008-01-30 26 * An arch may define __my_cpu_offset to provide a more effective acdac87202a408 travis@sgi.com 2008-01-30 27 * means of obtaining the offset to the per cpu variables of the acdac87202a408 travis@sgi.com 2008-01-30 28 * current processor. acdac87202a408 travis@sgi.com 2008-01-30 29 */ acdac87202a408 travis@sgi.com 2008-01-30 30 #ifndef __my_cpu_offset acdac87202a408 travis@sgi.com 2008-01-30 @31 #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id()) 1e8352784abaed Hugh Dickins 2008-02-23 32 #endif 1e8352784abaed Hugh Dickins 2008-02-23 33 #ifdef CONFIG_DEBUG_PREEMPT acdac87202a408 travis@sgi.com 2008-01-30 34 #define my_cpu_offset per_cpu_offset(smp_processor_id()) acdac87202a408 travis@sgi.com 2008-01-30 35 #else acdac87202a408 travis@sgi.com 2008-01-30 36 #define my_cpu_offset __my_cpu_offset acdac87202a408 travis@sgi.com 2008-01-30 37 #endif acdac87202a408 travis@sgi.com 2008-01-30 38 :::::: The code at line 31 was first introduced by commit :::::: acdac87202a408133ee8f7985076de9d2e0dc5ab percpu: make the asm-generic/percpu.h more "generic" :::::: TO: travis@sgi.com :::::: CC: Ingo Molnar -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki