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 A3F2EC4345F for ; Tue, 23 Apr 2024 04:02:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 374756B008C; Tue, 23 Apr 2024 00:02:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 324CB6B0095; Tue, 23 Apr 2024 00:02:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 19E046B0096; Tue, 23 Apr 2024 00:02:07 -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 F124E6B008C for ; Tue, 23 Apr 2024 00:02:06 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 983BB160CDB for ; Tue, 23 Apr 2024 04:02:06 +0000 (UTC) X-FDA: 82039448652.27.89AAB64 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by imf24.hostedemail.com (Postfix) with ESMTP id 7F592180015 for ; Tue, 23 Apr 2024 04:02:03 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=EiZ8oUtC; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 192.198.163.8 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=1713844924; 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=4Doz8SS5gsNOC0A5hHZ3N9V+Q7qoZ24x72v3g+PyGOA=; b=ftgPm1FwQZJs2owaUyNhjIbEKe+mPrAEifDJ0/V4vm+Sq6eUztBLjxIuZtYIJWVqrywNPC DEGU0HzeW+OahV918iEE0om8NdIjjja50oBMZZ9vzaWeGodYguyfYOSNeBTVTKBX5nTOCT x0G1IJbu/k/pvFI6NjBxfGjCrwkIsSI= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713844924; a=rsa-sha256; cv=none; b=x+aqUsWTxcWJ3ZWxhjdu+PvZ2qhdqtumpt6OZfJ2JiC4cKoZLXuWFBK8R3zCTYClVsi3CH S706ziQe84v1nXgE7eHnRkDb1JX78qnt07To3Tw1G0Qw8BO7v+cxUNRUeSFvef9nCmqR3c syor6GdiU1VaAzwpPw87l4HW5Yp0KHc= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=EiZ8oUtC; spf=pass (imf24.hostedemail.com: domain of lkp@intel.com designates 192.198.163.8 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713844924; x=1745380924; h=date:from:to:cc:subject:message-id:mime-version; bh=AspgxCx28sU+DdKKPJBYygxyvYgVCMLUwkDVX1WIRA8=; b=EiZ8oUtCr6bpxR2ONYczt1a2KT6BL+S+A/10LdFLbhx0QKlKFMALqqOR nvUg22GrMydAEeGvWhtJgD5AlpWUTSNxJt1Tu9V/i3vtSWDHXlL9Re2go +Pf6ZqEZM6B/7jaT/NWs422y0ZJ8nJZcEQGK9ztmCmF6e3EmfpNxgPGz0 31Xwzkc+DQVE9K0Vo2GAQgsHAcqNDP4f3UJi/WQfmuuAK9Fohot6gJavC /Nq7y39SXZeJk02X4UrNo+2aaftOZesPhn81plxiC9DKeN2fRAqHWUyeG OyxSbWVQnyOuoTX9jbN4NvkTjrAmM7oqZbRR9+4F0Q4oIvqLYqdHXfUsK A==; X-CSE-ConnectionGUID: 21QjCYzbQWOLDBcdCsD56w== X-CSE-MsgGUID: hGsscrphRSuFGMq92eWmvg== X-IronPort-AV: E=McAfee;i="6600,9927,11052"; a="26927296" X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="26927296" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Apr 2024 21:02:02 -0700 X-CSE-ConnectionGUID: zsfdQmvXTeSw7gxdE+5UYQ== X-CSE-MsgGUID: ARLGgZZFTECoXLcCg2JsfQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,222,1708416000"; d="scan'208";a="24677544" Received: from lkp-server01.sh.intel.com (HELO 01437695816f) ([10.239.97.150]) by orviesa006.jf.intel.com with ESMTP; 22 Apr 2024 21:02:00 -0700 Received: from kbuild by 01437695816f with local (Exim 4.96) (envelope-from ) id 1rz7Lx-0000Sy-2x; Tue, 23 Apr 2024 04:01:57 +0000 Date: Tue, 23 Apr 2024 12:01:09 +0800 From: kernel test robot To: Jianfeng Wang Cc: oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org, Vlastimil Babka Subject: [vbabka-slab:slab/for-next 11/12] mm/slub.c:3256:28: error: implicit declaration of function 'node_nr_objs'; did you mean 'node_nr_slabs'? Message-ID: <202404231141.pPX8ZI0d-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: 7F592180015 X-Stat-Signature: miiwiha5tisty5qh563ctibrj35ntp69 X-Rspam-User: X-HE-Tag: 1713844923-374410 X-HE-Meta: U2FsdGVkX1/U8M+HUVEwiEllD17oA4y02rhSArCqU6jqzRbdpyI5VcYjvPkAIjMCaobDKNf/dnMiIru4X/ztCrNLozK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HfhYxCm/cZVOyCaVMW2+kzoMV8dA1LJIm7w9pexGhLmUtLM+yqDf4Q2LJCW9atHka1bjO50120j/Fj7qXufFcCFDnSs94/1Zks3s7jesZ4QfE0kNw8bD6QhovWpcY5lp4jQVSUcRDIli4YuSpj5AYHRJ8iVv6+ImZQQ84kAM/deUBgswO/NX3sOr3e9dMQcaMNtDrQRWQqHzxYpGMOwNcJvaKN7MQgqq0RU= 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: git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git slab/for-next head: b6f00c4ef02065161c09fdf560e492cfbb1fec0a commit: 1c5610f451be71ca2f8b9c6b86ef4712aeed6437 [11/12] slub: introduce count_partial_free_approx() config: arc-randconfig-001-20240423 (https://download.01.org/0day-ci/archive/20240423/202404231141.pPX8ZI0d-lkp@intel.com/config) compiler: arceb-elf-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240423/202404231141.pPX8ZI0d-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/202404231141.pPX8ZI0d-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/arc/include/asm/ptrace.h:11, from arch/arc/include/asm/bug.h:11, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/mm.h:6, from mm/slub.c:13: mm/slub.c: In function 'count_partial_free_approx': >> mm/slub.c:3256:28: error: implicit declaration of function 'node_nr_objs'; did you mean 'node_nr_slabs'? [-Werror=implicit-function-declaration] 3256 | x = min(x, node_nr_objs(n)); | ^~~~~~~~~~~~ include/linux/compiler.h:284:55: note: in definition of macro '__is_constexpr' 284 | (sizeof(int) == sizeof(*(8 ? ((void *)((long)(x) * 0l)) : (int *)8))) | ^ include/linux/minmax.h:85:25: note: in expansion of macro '__careful_cmp' 85 | #define min(x, y) __careful_cmp(min, x, y) | ^~~~~~~~~~~~~ mm/slub.c:3256:21: note: in expansion of macro 'min' 3256 | x = min(x, node_nr_objs(n)); | ^~~ In file included from include/linux/init.h:5, from include/linux/printk.h:6, from include/asm-generic/bug.h:22, from arch/arc/include/asm/bug.h:30: >> include/linux/build_bug.h:78:41: error: static assertion failed: "min(x, node_nr_objs(n)) signedness error, fix types or consider umin() before min_t()" 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~~~~~~~~~~~ include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert' 77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr) | ^~~~~~~~~~~~~~~ include/linux/minmax.h:51:9: note: in expansion of macro 'static_assert' 51 | static_assert(__types_ok(x, y), \ | ^~~~~~~~~~~~~ include/linux/minmax.h:58:17: note: in expansion of macro '__cmp_once' 58 | __cmp_once(op, x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y))) | ^~~~~~~~~~ include/linux/minmax.h:85:25: note: in expansion of macro '__careful_cmp' 85 | #define min(x, y) __careful_cmp(min, x, y) | ^~~~~~~~~~~~~ mm/slub.c:3256:21: note: in expansion of macro 'min' 3256 | x = min(x, node_nr_objs(n)); | ^~~ mm/slub.c: At top level: mm/slub.c:3227:22: warning: 'count_partial_free_approx' defined but not used [-Wunused-function] 3227 | static unsigned long count_partial_free_approx(struct kmem_cache_node *n) | ^~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +3256 mm/slub.c 3226 3227 static unsigned long count_partial_free_approx(struct kmem_cache_node *n) 3228 { 3229 unsigned long flags; 3230 unsigned long x = 0; 3231 struct slab *slab; 3232 3233 spin_lock_irqsave(&n->list_lock, flags); 3234 if (n->nr_partial <= MAX_PARTIAL_TO_SCAN) { 3235 list_for_each_entry(slab, &n->partial, slab_list) 3236 x += slab->objects - slab->inuse; 3237 } else { 3238 /* 3239 * For a long list, approximate the total count of objects in 3240 * it to meet the limit on the number of slabs to scan. 3241 * Scan from both the list's head and tail for better accuracy. 3242 */ 3243 unsigned long scanned = 0; 3244 3245 list_for_each_entry(slab, &n->partial, slab_list) { 3246 x += slab->objects - slab->inuse; 3247 if (++scanned == MAX_PARTIAL_TO_SCAN / 2) 3248 break; 3249 } 3250 list_for_each_entry_reverse(slab, &n->partial, slab_list) { 3251 x += slab->objects - slab->inuse; 3252 if (++scanned == MAX_PARTIAL_TO_SCAN) 3253 break; 3254 } 3255 x = mult_frac(x, n->nr_partial, scanned); > 3256 x = min(x, node_nr_objs(n)); 3257 } 3258 spin_unlock_irqrestore(&n->list_lock, flags); 3259 return x; 3260 } 3261 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki