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 26053C25B4E for ; Fri, 20 Jan 2023 17:45:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 84DDF6B0071; Fri, 20 Jan 2023 12:45:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7D6EF6B0081; Fri, 20 Jan 2023 12:45:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6778F6B0082; Fri, 20 Jan 2023 12:45:20 -0500 (EST) 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 53F8F6B0071 for ; Fri, 20 Jan 2023 12:45:20 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 205E5140E4D for ; Fri, 20 Jan 2023 17:45:20 +0000 (UTC) X-FDA: 80375904000.01.AF363AC Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf06.hostedemail.com (Postfix) with ESMTP id C7A73180006 for ; Fri, 20 Jan 2023 17:45:16 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=JEDMoIpt; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 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=1674236718; 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=9oeWmCogFv0GExqwlVnuPPmgqB1tkbLCHTNoV+97ybU=; b=MoEhq3Cq3RHUFUFEYMB2N49H9FtgQC4TNzY38WIaQapp3eSJIO165Ikom3VvGyOpY/VODh RXttbK6GdR1QEfSMKq2Bmz81r7ugUBQI3fxxavx1lgOaIDzDJoN8hU5zaRzvaX4drxwOsE VN8KJ01Z8e6b5pWcLOX1I7v4lcD0+8Y= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=JEDMoIpt; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf06.hostedemail.com: domain of lkp@intel.com designates 192.55.52.43 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1674236718; a=rsa-sha256; cv=none; b=VFe6tof4qC7LSsCyvhduxbCg868cGnJVHxDTsdqemN0DkraHQIPXxfGCNfL1bJTh007j8x MT1q8le8Tij9u+4cYkm3RvTbMCg/iVUKe/kT06EbFle/+M96jbpRyDsDlMjzTbHzrCVtaD wbKkk5mRKlC3FP68sgBNwWvCOSa6THs= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674236716; x=1705772716; h=date:from:to:cc:subject:message-id:mime-version; bh=DSu0aN1TgXR0l0onAvsmRPT0y3KxHhLoPrGtqtOamOo=; b=JEDMoIptlnEAlHwlHs7Zx4MvgDFc0oqmutRdtTgfwR+sb3/8EgontBjM Ld6s92zYY2TK4T6AsgerUS7lPGI4L0twWIu424DlVquSm/HUp0QmWss9Z e1O4JUAOGiXRp+BOgMmXPJG190RSZQBcN8Z3Um/EEt1dYsewobAnYNrrN 2P9kw6wRGsS3xSr83OWxGgenuJEtyNuiheIWVv9YERAcGBsm54uMwTWCf rIF+qt6GioiCoPdMsdCQy/ZBkBTuquetURHqe5kHRJRwWlJf/NvsUE2Ds giHGa3hSApiXvLVqAj6Yo3Sk92Ck1Ov2jF0Jx0024RpZk7rEcL1oVwAXF g==; X-IronPort-AV: E=McAfee;i="6500,9779,10596"; a="411872613" X-IronPort-AV: E=Sophos;i="5.97,232,1669104000"; d="scan'208";a="411872613" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jan 2023 09:45:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10596"; a="729186851" X-IronPort-AV: E=Sophos;i="5.97,232,1669104000"; d="scan'208";a="729186851" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 20 Jan 2023 09:45:13 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pIvRw-0002l8-3A; Fri, 20 Jan 2023 17:45:12 +0000 Date: Sat, 21 Jan 2023 01:45:06 +0800 From: kernel test robot To: Miles Chen Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Andrew Morton , Linux Memory Management List Subject: mm/sparse.c:347:27: warning: unused function 'pgdat_to_phys' Message-ID: <202301210155.1E5zABb5-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: C7A73180006 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 9u3uczozbhd6onap6aof7mhgyx9rmyrp X-HE-Tag: 1674236716-350758 X-HE-Meta: U2FsdGVkX18NNPa/3DyBbnuFrC9aQSNEkqq64+uVgYZMp4DsuQuM69l5toOCsWToFGVanIjWg4hMralkOoVCCiQjFv+wEcH5qtYKpnS81TdBi/uRGHm8CN17Lkx7EDd/6Yidb89LfwYgy3Rqatw0MuVJCWroC9dbu+ZzE+7Y/u4QOKDmr754h9s0jNimFIoeNAJwZRJEhBDRRwxO8SjXgu/sj4yFt1vDEDyMeEjCE3cGslI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7vS41wuZJHXPnd/0l8xeioL5mjnGhyoay6fyDGKLqsIWrPCgCbqT09xJLgHQXG6pqNv7mFyy/x4adQ9hlesW0A= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000026, 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/torvalds/linux.git master head: d368967cb1039b5c4cccb62b5a4b9468c50cd143 commit: ccbd6283a9b640c8d5c2b44db318fd72a63338ff mm/sparse: fix check_usemap_section_nr warnings date: 1 year, 7 months ago config: x86_64-randconfig-a003-20230116 (https://download.01.org/0day-ci/archive/20230121/202301210155.1E5zABb5-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ccbd6283a9b640c8d5c2b44db318fd72a63338ff git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout ccbd6283a9b640c8d5c2b44db318fd72a63338ff # 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=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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/sparse.c:347:27: warning: unused function 'pgdat_to_phys' [-Wunused-function] static inline phys_addr_t pgdat_to_phys(struct pglist_data *pgdat) ^ 1 warning generated. vim +/pgdat_to_phys +347 mm/sparse.c 346 > 347 static inline phys_addr_t pgdat_to_phys(struct pglist_data *pgdat) 348 { 349 #ifndef CONFIG_NEED_MULTIPLE_NODES 350 return __pa_symbol(pgdat); 351 #else 352 return __pa(pgdat); 353 #endif 354 } 355 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests