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 ABE3DC32793 for ; Wed, 24 Aug 2022 02:48:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C377F940008; Tue, 23 Aug 2022 22:48:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id BE776940007; Tue, 23 Aug 2022 22:48:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A8794940008; Tue, 23 Aug 2022 22:48:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 9725A940007 for ; Tue, 23 Aug 2022 22:48:36 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 6038E120158 for ; Wed, 24 Aug 2022 02:48:36 +0000 (UTC) X-FDA: 79832953032.25.85D15CD Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by imf18.hostedemail.com (Postfix) with ESMTP id 352EC1C0009 for ; Wed, 24 Aug 2022 02:48:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661309315; x=1692845315; h=date:from:to:cc:subject:message-id:mime-version; bh=Lfckut4lj66tEBXABkmSs18vzadu9KQFdFpT+3tBegE=; b=ShDQiwtG5xwIzewJDJwlQQuL1s8e9R7BLqXfV5Tki1L/ZK2qVKZTr6XF LJxeTm8bz43wXk3cEFaaTZu2lwB4pihFC/hHGoIjjRwOt8sTXw7Jb4MLn +cOpLZ7bKAexLF1lgzcnRDxX2Qo+lmEoRFVUn1FHzq8QWSFc2Tj3/KjLG 91JNVsld27QTytWhG01+ccJmpr2JEZB47EMAhRX3am/uTIAZBlnsy+jTu rduEpZ8wD0f/1+vYlgznIKi74dNgIr+UyfOMvfyqEmcx9ia2sDLvvsCyS E988tQvHuSXRNEOkS7Xe+97osE9dnWx3CIPLPGpj9XHDVNRMmPbsFKRqd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10448"; a="294637143" X-IronPort-AV: E=Sophos;i="5.93,259,1654585200"; d="scan'208";a="294637143" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 19:47:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,259,1654585200"; d="scan'208";a="937721632" Received: from lkp-server02.sh.intel.com (HELO 9bbcefcddf9f) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 23 Aug 2022 19:47:15 -0700 Received: from kbuild by 9bbcefcddf9f with local (Exim 4.96) (envelope-from ) id 1oQgQF-0000tB-0C; Wed, 24 Aug 2022 02:47:15 +0000 Date: Wed, 24 Aug 2022 10:46:55 +0800 From: kernel test robot To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: kbuild-all@lists.01.org, linux-mm@kvack.org, Vlastimil Babka Subject: [vbabka-slab:for-6.1/common_kmalloc 12/17] mm/slab_common.c:1023:7: warning: no previous prototype for '__kmalloc_large_node' Message-ID: <202208241004.jZykmQOH-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661309316; a=rsa-sha256; cv=none; b=4afv7Jq8kjWBWknPKGxssnlOdrW3UXdjzUcy0lEXecb0j6lHN9mra0UA1C7sDalzrJD5DO 7ZuYG7nXGSbACKkt1oxh6AUHZYgnjNosjo1Y+xQQK0HyQCRmEcZpLua9z4U4fMMvoI6+pv Ddz2OQpvUkr0I3S+Zxm6s+HWr1lBsEg= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=ShDQiwtG; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 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=1661309316; 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=gY9ZOKx2GIjri1Aa/8TR0vY7EB/RHVMIVP0j1Q7vFI0=; b=e4YwTksoFm0OgW3Ba9W2E1M23XGzukns/hExufP2F7W9exsylnd/9jvHVXBO9a16mg5ldd vnlVCPOf7kUNzUSm6WcvpWHZ7YX6UmaHDQ9WF/QYYEkSaRm65hLicE8UUAqWJYMKfLTThB AO8yNofOcHp6S5SiexXpT8Eal3zU/hE= X-Rspam-User: X-Stat-Signature: w7rqsoubwudeba69uc93x8h7ct8jb4cb X-Rspamd-Queue-Id: 352EC1C0009 X-Rspamd-Server: rspam12 Authentication-Results: imf18.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b=ShDQiwtG; spf=pass (imf18.hostedemail.com: domain of lkp@intel.com designates 134.134.136.24 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com X-HE-Tag: 1661309314-803102 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: git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git for-6.1/common_kmalloc head: b261334803b44092acd06be3c9f32c46af818359 commit: 79c7527b9805edf14c952deca45de60a8a06a414 [12/17] mm/sl[au]b: generalize kmalloc subsystem config: x86_64-randconfig-a015 (https://download.01.org/0day-ci/archive/20220824/202208241004.jZykmQOH-lkp@intel.com/config) compiler: gcc-11 (Debian 11.3.0-5) 11.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git/commit/?id=79c7527b9805edf14c952deca45de60a8a06a414 git remote add vbabka-slab git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab.git git fetch --no-tags vbabka-slab for-6.1/common_kmalloc git checkout 79c7527b9805edf14c952deca45de60a8a06a414 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> mm/slab_common.c:1023:7: warning: no previous prototype for '__kmalloc_large_node' [-Wmissing-prototypes] 1023 | void *__kmalloc_large_node(size_t size, gfp_t flags, int node) | ^~~~~~~~~~~~~~~~~~~~ vim +/__kmalloc_large_node +1023 mm/slab_common.c 1016 1017 /* 1018 * To avoid unnecessary overhead, we pass through large allocation requests 1019 * directly to the page allocator. We use __GFP_COMP, because we will need to 1020 * know the allocation order to free the pages properly in kfree. 1021 */ 1022 > 1023 void *__kmalloc_large_node(size_t size, gfp_t flags, int node) 1024 { 1025 struct page *page; 1026 void *ptr = NULL; 1027 unsigned int order = get_order(size); 1028 1029 if (unlikely(flags & GFP_SLAB_BUG_MASK)) 1030 flags = kmalloc_fix_flags(flags); 1031 1032 flags |= __GFP_COMP; 1033 page = alloc_pages_node(node, flags, order); 1034 if (page) { 1035 ptr = page_address(page); 1036 mod_lruvec_page_state(page, NR_SLAB_UNRECLAIMABLE_B, 1037 PAGE_SIZE << order); 1038 } 1039 1040 ptr = kasan_kmalloc_large(ptr, size, flags); 1041 /* As ptr might get tagged, call kmemleak hook after KASAN. */ 1042 kmemleak_alloc(ptr, size, 1, flags); 1043 1044 return ptr; 1045 } 1046 -- 0-DAY CI Kernel Test Service https://01.org/lkp