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 E1FE3C001B0 for ; Tue, 8 Aug 2023 13:13:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2C41D6B0071; Tue, 8 Aug 2023 09:13:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 274C68D0002; Tue, 8 Aug 2023 09:13:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 13CFD8D0001; Tue, 8 Aug 2023 09:13:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 06BCB6B0071 for ; Tue, 8 Aug 2023 09:13:06 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id BB9D6C0432 for ; Tue, 8 Aug 2023 13:13:05 +0000 (UTC) X-FDA: 81100977930.14.78C8CB1 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by imf22.hostedemail.com (Postfix) with ESMTP id C3855C0027 for ; Tue, 8 Aug 2023 13:13:02 +0000 (UTC) Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=APy23tM3; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf22.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1691500383; a=rsa-sha256; cv=none; b=dOq3qu4kVJ0zBu8KFAkdvj7tSaCnAN/Fu9A2dqkwubMLKtkRI5ltZqhjyeh8XZV64AMZCC F9Uh4r6P41lcfkhHZqA3/o8mqTtZNGmQPKdz/ZwQzQnTu6q3dlAvZ8yOaJmWuMEj3gv+ae 5FP9g+NDWXfuvpaXGF99Rrm4bakh34Q= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=APy23tM3; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf22.hostedemail.com: domain of lkp@intel.com designates 134.134.136.65 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=1691500383; 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=wuYaVDfd3n19KKcm2LOUZnmLQ6A6Svy/U9uZ1iRsOLA=; b=DdX09X0nYeabox5GSIxCsKm5Ww7QOctsMh7aULX9V+eNd7DmvSZdnX863qIftPlWctDIqb NXH0eWSYA51TLRVn9HO+AFME4cKpP1NtP5Q6kv+cELMf/X0wQxjBXyzG8pco01jxRi65HW LazrhuLogcineW7MpEv5nJ2Vkpcvv5o= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691500382; x=1723036382; h=date:from:to:cc:subject:message-id:mime-version; bh=R14eUOJNlfzrsN2RP/Lfrkg2AOCKW/Urf1D7/yTtpiw=; b=APy23tM3rmPXbdeevkRnhhuBTLnFeVA18ec6MXcpE703KtF+SZcGbvkS gaVb4sgnzAd2ndLaza3CUsYt5c4RAvIBD8YTHmqzm5KL7k/DVaWSo8a6H Xgj/xD5UtycvMz3Y7KhKpx8lYWPBB+UtB6SSUR8/eR/MbFvxDh12S4lqF EU7A0np6Eonz+p4xgY4V3nJRKjq7j73Vt7/kX2U6bv5T3PsmBPWMO15gh NLHsG3RKF5GS2XA7CzJ961yoS4HBrYQB5Ic+RixqOpT19kqcrM3IMV0LP 8Pa5iEvE/vKEwi7Rlx/PedHnwoO8n2MkWhG1PAdElGrbqMD/YhlwHV96x A==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="374491592" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="374491592" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 06:13:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="977856608" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="977856608" Received: from lkp-server01.sh.intel.com (HELO d1ccc7e87e8f) ([10.239.97.150]) by fmsmga006.fm.intel.com with ESMTP; 08 Aug 2023 06:12:58 -0700 Received: from kbuild by d1ccc7e87e8f with local (Exim 4.96) (envelope-from ) id 1qTMW9-0005MS-2g; Tue, 08 Aug 2023 13:12:57 +0000 Date: Tue, 8 Aug 2023 21:12:16 +0800 From: kernel test robot To: Vlastimil Babka Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-mm@kvack.org Subject: [vbabka:slub-percpu-caches-v1 2/5] mm/slub.c:3568:12: error: call to undeclared function 'alloc_from_pca'; ISO C99 and later do not support implicit function declarations Message-ID: <202308082130.CSS5uQs2-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: C3855C0027 X-Stat-Signature: zjxjzio1hts6sfjuu3tpqyzy86jjn17w X-HE-Tag: 1691500382-884368 X-HE-Meta: U2FsdGVkX1/jO8zhv3zZX0rdDsHD1AwIkXtpYihFF4Qo+gunyNzUr83i5eK1m99LZp+PddrxoOSzaH0CIq5lsJT34yx5O1bHGDIKeLol3QWQyZutyGHKOMgZVUTHWMUqBHtDZ9W4q/txfoNi5mEW3uxHOJxli8G4+aNSMUapJKvei4EYvfwNf7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RIC+HMIwrNu3AJmjohVyiVx4OB6/HAy79bEhmJXmLRsMk+9n3jq2eU78RFrtshgsk0Pzu35L3rt6/Pb1m3UarQVyfma6wkF0UKdiUnbQzVB4Y4iY9RxAFAmCCJNrpVcCqCcNSTETI8NjIf2dOokF/sGFeN8= 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: tree: https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/linux.git slub-percpu-caches-v1 head: 23793c9cd4b2fc31144dba68dd67554b8e4308e9 commit: 88f3fc9382220fb76fbd700a74cce623dadf8138 [2/5] mm, slub: add opt-in slub_percpu_array config: hexagon-randconfig-r016-20230808 (https://download.01.org/0day-ci/archive/20230808/202308082130.CSS5uQs2-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20230808/202308082130.CSS5uQs2-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/202308082130.CSS5uQs2-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/slub.c:14: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from mm/slub.c:14: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from mm/slub.c:14: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:13: In file included from include/linux/cgroup.h:26: In file included from include/linux/kernel_stat.h:9: In file included from include/linux/interrupt.h:11: In file included from include/linux/hardirq.h:11: In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1: In file included from include/asm-generic/hardirq.h:17: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/hexagon/include/asm/io.h:334: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ mm/slub.c:2351:15: warning: variable 'partial_slabs' set but not used [-Wunused-but-set-variable] 2351 | unsigned int partial_slabs = 0; | ^ >> mm/slub.c:3568:12: error: call to undeclared function 'alloc_from_pca'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3568 | object = alloc_from_pca(s); | ^ >> mm/slub.c:3568:10: error: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] 3568 | object = alloc_from_pca(s); | ^ ~~~~~~~~~~~~~~~~~ 7 warnings and 2 errors generated. vim +/alloc_from_pca +3568 mm/slub.c 3541 3542 /* 3543 * Inlined fastpath so that allocation functions (kmalloc, kmem_cache_alloc) 3544 * have the fastpath folded into their functions. So no function call 3545 * overhead for requests that can be satisfied on the fastpath. 3546 * 3547 * The fastpath works by first checking if the lockless freelist can be used. 3548 * If not then __slab_alloc is called for slow processing. 3549 * 3550 * Otherwise we can simply pick the next object from the lockless free list. 3551 */ 3552 static __fastpath_inline void *slab_alloc_node(struct kmem_cache *s, struct list_lru *lru, 3553 gfp_t gfpflags, int node, unsigned long addr, size_t orig_size) 3554 { 3555 void *object; 3556 struct obj_cgroup *objcg = NULL; 3557 bool init = false; 3558 3559 s = slab_pre_alloc_hook(s, lru, &objcg, 1, gfpflags); 3560 if (!s) 3561 return NULL; 3562 3563 object = kfence_alloc(s, orig_size, gfpflags); 3564 if (unlikely(object)) 3565 goto out; 3566 3567 if (s->cpu_array) > 3568 object = alloc_from_pca(s); 3569 3570 if (!object) 3571 object = __slab_alloc_node(s, gfpflags, node, addr, orig_size); 3572 3573 maybe_wipe_obj_freeptr(s, object); 3574 init = slab_want_init_on_alloc(gfpflags, s); 3575 3576 out: 3577 /* 3578 * When init equals 'true', like for kzalloc() family, only 3579 * @orig_size bytes might be zeroed instead of s->object_size 3580 */ 3581 slab_post_alloc_hook(s, objcg, gfpflags, 1, &object, init, orig_size); 3582 3583 return object; 3584 } 3585 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki