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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A644FC001B0 for ; Tue, 15 Aug 2023 05:13:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234623AbjHOFNH (ORCPT ); Tue, 15 Aug 2023 01:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234633AbjHOFMl (ORCPT ); Tue, 15 Aug 2023 01:12:41 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FBB2198E for ; Mon, 14 Aug 2023 22:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692076352; x=1723612352; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6+ZcU/Vpexrp5FQDgNFOsYEPzqofwDIztSFtE78sl+E=; b=VPcEmrIukehWjGmz1ButGn0P2vcAggUpbplrE36a+3szpqfqxYIukTW+ P2kxJj7UD2TrIx7Rkn7rzisSTCUnIE8Hml0Q4M59tVuSR2SbVTkm6LUBh VUqMaeGvnBxdYuTX3aDBblzEu6uz35heDesPzwrVHLgcBFCh/SIrA6fqa afhOAlBY8vovnxHOCYXiJtxRd0Juf2L4tou6g3sLgAxtZ3ukRtGDWM1a7 VjQ0JMdLadsCylHrQ0S6G0aOEGnsR7yn0i7XvGWkDBuFyG0maWWfkO9Z9 PHd3c/zk4bSP4V+kh4GGYVAAfS8yC7N1FMeCvnl0EiVaQ6roOkL9WJDcL Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="371109079" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="371109079" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 22:12:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="1064328497" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="1064328497" Received: from lkp-server02.sh.intel.com (HELO b5fb8d9e1ffc) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 14 Aug 2023 22:12:17 -0700 Received: from kbuild by b5fb8d9e1ffc with local (Exim 4.96) (envelope-from ) id 1qVmLo-0000g9-1H; Tue, 15 Aug 2023 05:12:16 +0000 Date: Tue, 15 Aug 2023 13:11:25 +0800 From: kernel test robot To: Sidhartha Kumar , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, akpm@linux-foundation.org, songmuchun@bytedance.com, mike.kravetz@oracle.com, willy@infradead.org, Sidhartha Kumar Subject: Re: [PATCH v4] mm/filemap: change ->index to PAGE_SIZE for hugetlb pages Message-ID: <202308151231.L2pfzOmu-lkp@intel.com> References: <20230814215035.222688-1-sidhartha.kumar@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230814215035.222688-1-sidhartha.kumar@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sidhartha, kernel test robot noticed the following build warnings: [auto build test WARNING on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Sidhartha-Kumar/mm-filemap-change-index-to-PAGE_SIZE-for-hugetlb-pages/20230815-055236 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20230814215035.222688-1-sidhartha.kumar%40oracle.com patch subject: [PATCH v4] mm/filemap: change ->index to PAGE_SIZE for hugetlb pages config: i386-randconfig-i005-20230815 (https://download.01.org/0day-ci/archive/20230815/202308151231.L2pfzOmu-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce: (https://download.01.org/0day-ci/archive/20230815/202308151231.L2pfzOmu-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/202308151231.L2pfzOmu-lkp@intel.com/ All warnings (new ones prefixed by >>): >> mm/hugetlb.c:2116:9: warning: no previous prototype for function 'hugetlb_basepage_index' [-Wmissing-prototypes] pgoff_t hugetlb_basepage_index(struct page *page) ^ mm/hugetlb.c:2116:1: note: declare 'static' if the function is not intended to be used outside of this translation unit pgoff_t hugetlb_basepage_index(struct page *page) ^ static include/linux/types.h:137:17: note: expanded from macro 'pgoff_t' #define pgoff_t unsigned long ^ 1 warning generated. vim +/hugetlb_basepage_index +2116 mm/hugetlb.c c0d0381ade7988 Mike Kravetz 2020-04-01 2115 fe19bd3dae3d15 Hugh Dickins 2021-06-24 @2116 pgoff_t hugetlb_basepage_index(struct page *page) 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2117 { 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2118 struct page *page_head = compound_head(page); 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2119 pgoff_t index = page_index(page_head); 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2120 unsigned long compound_idx; 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2121 23baf831a32c04 Kirill A. Shutemov 2023-03-15 2122 if (compound_order(page_head) > MAX_ORDER) 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2123 compound_idx = page_to_pfn(page) - page_to_pfn(page_head); 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2124 else 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2125 compound_idx = page - page_head; 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2126 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2127 return (index << compound_order(page_head)) + compound_idx; 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2128 } 13d60f4b6ab5b7 Zhang Yi 2013-06-25 2129 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki