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 485F9C32793 for ; Wed, 24 Aug 2022 00:14:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 854B3940008; Tue, 23 Aug 2022 20:14:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 802FD940007; Tue, 23 Aug 2022 20:14:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6A426940008; Tue, 23 Aug 2022 20:14:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 584AF940007 for ; Tue, 23 Aug 2022 20:14:16 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 36CA7120463 for ; Wed, 24 Aug 2022 00:14:16 +0000 (UTC) X-FDA: 79832564112.29.E42E4D9 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by imf31.hostedemail.com (Postfix) with ESMTP id 1A7692004C for ; Wed, 24 Aug 2022 00:14:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661300055; x=1692836055; h=date:from:to:cc:subject:message-id:mime-version; bh=tpvFWDJS6JfTa0cgLW/rmuc7c/o/TOUDXTugWUlmYMw=; b=jm/QRA4SNkxPmbve4Z/+ezA6C1N9GTzjQM3O9bAK4YaW9Xvl4g9Xu8X/ 2MQb9cO9Yy0IWbYBTNsJ7AOI5pa4brVrDqo2gTqzS5c6w3rK66zLRLK2Y abIhX2yLVbVzNzon6YiN+8Cse6uU/OdczE/383gp6Z4r6LVbBg/wQvp7U u7JJb9//EpDbWzx1DxXtBZJ5OvTwlI4j1yvp/+sS9eU1dFKR/+udG/trW 4ptudWyg7zGujePAT2GUqS6oOacFn6BzcWs4eYQpW8FvbLFSQPlWADRWc yNqVbkou+z+voJNCzZ25/+yAmalUfkIPgCspwIpSVqj+6YCUS08m3ZSdP g==; X-IronPort-AV: E=McAfee;i="6500,9779,10448"; a="276852049" X-IronPort-AV: E=Sophos;i="5.93,259,1654585200"; d="scan'208";a="276852049" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Aug 2022 17:14:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,259,1654585200"; d="scan'208";a="560378404" Received: from lkp-server02.sh.intel.com (HELO 9bbcefcddf9f) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 23 Aug 2022 17:14:11 -0700 Received: from kbuild by 9bbcefcddf9f with local (Exim 4.96) (envelope-from ) id 1oQe27-0000kF-0b; Wed, 24 Aug 2022 00:14:11 +0000 Date: Wed, 24 Aug 2022 08:13:38 +0800 From: kernel test robot To: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: llvm@lists.linux.dev, 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 function '__kmalloc_large_node' Message-ID: <202208240825.lwZks9Hg-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=1661300055; a=rsa-sha256; cv=none; b=4EIgo8gva6A24Y6Y7URttJ0iE+OpQBrqEmg9yNO+WuQyNT/vw2kAG3TIvY3vj0rF8ng42C hzoR+4BgwArttLLJL5dbI50R2P6wjly1dwQeWCjc4O+SfycrscTUbw1w2rC+l2/FSPbge8 1Uu0104WKAxmGvCXZ6AS3W0q+s1rLZ4= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="jm/QRA4S"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf31.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 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=1661300055; 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=gxBAmQo0xa4M7AsRshAP/0i4aOsx3/iKKQgdKLE4Lz0=; b=VE1sV+Y7nmBmkJzORHfqug68x63QO4flvtAgazDdvraY5ZfaiwB48DgJPMnW/0vFv8Elf+ L2w27Wpmya8sZ0CtyFJ//Wkv+J6ugHo4C92pKANbk9WG69HT07Faam7jjsApd6terBsfFg Qco3+F9c1nqVuDKcFdExATSkry2z4Bo= X-Stat-Signature: eiox4zz9pb14y7j7rbx1da8qnnr34c9o X-Rspamd-Queue-Id: 1A7692004C Authentication-Results: imf31.hostedemail.com; dkim=none ("invalid DKIM record") header.d=intel.com header.s=Intel header.b="jm/QRA4S"; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf31.hostedemail.com: domain of lkp@intel.com designates 134.134.136.126 as permitted sender) smtp.mailfrom=lkp@intel.com X-Rspam-User: X-Rspamd-Server: rspam09 X-HE-Tag: 1661300054-341054 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: s390-randconfig-r044-20220823 (https://download.01.org/0day-ci/archive/20220824/202208240825.lwZks9Hg-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project b04d01c009d7f66bcca9138d2ce40999eedf104d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # 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 COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 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 function '__kmalloc_large_node' [-Wmissing-prototypes] void *__kmalloc_large_node(size_t size, gfp_t flags, int node) ^ mm/slab_common.c:1023:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void *__kmalloc_large_node(size_t size, gfp_t flags, int node) ^ static 1 warning generated. 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