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 3867BC369D1 for ; Sun, 27 Apr 2025 22:19:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1F1E66B0005; Sun, 27 Apr 2025 18:19:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C5A56B0006; Sun, 27 Apr 2025 18:19:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 08E606B0007; Sun, 27 Apr 2025 18:19:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id DF6716B0005 for ; Sun, 27 Apr 2025 18:19:31 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id B5A3A1601A5 for ; Sun, 27 Apr 2025 22:19:31 +0000 (UTC) X-FDA: 83381241342.17.8AA7A3D Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by imf29.hostedemail.com (Postfix) with ESMTP id 8FF7A12000D for ; Sun, 27 Apr 2025 22:19:28 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=eEJsPBjo; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1745792369; a=rsa-sha256; cv=none; b=bX00UNS6vTrVC5OVAwm0YXjgN6lF9Iu+vzs6y65q2gQL9FPCPLuZgYS4TFd3hD+NMXkgPt 9ua+bG5a1q/o8NUm9Mk6ZWK58neiiVDx0goG87AjEOXOj1yjDx2JhYIzjzdzTD2SloVtxN JuOCeVHLR8ycQJP85zPW6pXothxXaV8= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=eEJsPBjo; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf29.hostedemail.com: domain of lkp@intel.com designates 192.198.163.12 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=1745792369; 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:in-reply-to:references:references:dkim-signature; bh=FdGZfgSOv2I3H5b/7f6IjUOaFQRkFPWN6UI2s1XLGqc=; b=embuNjnpSgS8EQa8K5nTtKP2c/QibhpY2i+aL2klOeS+yiw5A95XxQgvnpY0msXsUoojdP zV7QbwxiWyL4Dh/ZbmubGAVGQXs2+/D/unzlsUfdUEiGpf3TKHpd318TfsJPfHVZhJxLxp WHLqNl7jrr5IJzGBB1PT/0x4ygG7qcw= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1745792368; x=1777328368; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=pK2Rfrkca+Z47S8qjbclg2Q9eSpavlYxdJ9BIoBb384=; b=eEJsPBjo9vitWSDCAILo6WXYSOQHiAiRfUpPpgswdOmMJfZ1ITWF6mnE UleCGEviEZLckAyEV7oKkerQBi3PcPNoOgV3W7zM8MROrw+MYWeOMN1OP R5yzAxI9hcJC9Q6S/hDQlWvqYd8AYhZcfQhT0jT6hc4JkaACCF39KIk6L 6V72eN9MLHHKtnnQrYuvGzrdChN8l7cPZaRpaWL3WeEpaRe2gapC+M+bV LqZVuwqGKpWo2fNGlbXumVl1JhBJCWifGStlYXEP1qxuUYj6ObXkn1K2r MOKpEm7sloELcrFHpSqOHgFg9JyBjYfATU0u7uc7UAP/uMkQfuyc8yQ2V w==; X-CSE-ConnectionGUID: bQ0w804FTauJu+vZsSuRNQ== X-CSE-MsgGUID: JQsGN3SzS6yo2JZSnwJI9Q== X-IronPort-AV: E=McAfee;i="6700,10204,11416"; a="51194156" X-IronPort-AV: E=Sophos;i="6.15,244,1739865600"; d="scan'208";a="51194156" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2025 15:19:27 -0700 X-CSE-ConnectionGUID: BGGc8FArTWKVhr7bS/HM2g== X-CSE-MsgGUID: 9pFRPTiRSWmiMz7V3jm9iw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,244,1739865600"; d="scan'208";a="133883606" Received: from lkp-server01.sh.intel.com (HELO 050dd05385d1) ([10.239.97.150]) by orviesa007.jf.intel.com with ESMTP; 27 Apr 2025 15:19:23 -0700 Received: from kbuild by 050dd05385d1 with local (Exim 4.96) (envelope-from ) id 1u9ALI-0006U9-33; Sun, 27 Apr 2025 22:19:20 +0000 Date: Mon, 28 Apr 2025 06:19:12 +0800 From: kernel test robot To: Kairui Song , linux-mm@kvack.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Andrew Morton , Linux Memory Management List , Matthew Wilcox , David Hildenbrand , Hugh Dickins , Chris Li , Yosry Ahmed , "Huang, Ying" , Nhat Pham , Johannes Weiner , linux-kernel@vger.kernel.org, Kairui Song Subject: Re: [PATCH 5/6] mm: move folio_index to mm/swap.h and remove no longer needed helper Message-ID: <202504280527.sowjkuQU-lkp@intel.com> References: <20250427185908.90450-6-ryncsn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250427185908.90450-6-ryncsn@gmail.com> X-Rspam-User: X-Rspamd-Queue-Id: 8FF7A12000D X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iNoljgb/46bXxNT2XCkmyj1HpHs4Zm7JlAqq08qN7/75vYN8ZRyB49XUiC4+jNa2i6aUOlcYovThtuwcMOV3FKLplKgOidkM9tytgffF35sS6g4gLCUlV4WbT+fGdHQTbZ+R90SBnigD4LIyPCL4DRaoFtYGgW51NycfpZvODqdlMJc+I47TkKaDnVJ0D9vhJTQyOZDw/rks4Jk6MqiqM+L9rPs8732/7HZa/bxdIu1Cgz1+hntExArWSLlFSwPdZ0GGqKmNiOZxiuXaGbC48+DVSpTp3exW6se/KWZKKhgDAhN4WYt+nujdlGOy9PtIkCipsNSt/fvOOJHHe1jD7lpVUObzOqLpyGxetDsKA9Z+4BZZ8njgppZzgcey4OvOdXZBMdgpRPkUPeksir6iuTkg== 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: List-Subscribe: List-Unsubscribe: Hi Kairui, kernel test robot noticed the following build errors: [auto build test ERROR on akpm-mm/mm-everything] url: https://github.com/intel-lab-lkp/linux/commits/Kairui-Song/fuse-drop-usage-of-folio_index/20250428-030234 base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything patch link: https://lore.kernel.org/r/20250427185908.90450-6-ryncsn%40gmail.com patch subject: [PATCH 5/6] mm: move folio_index to mm/swap.h and remove no longer needed helper config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20250428/202504280527.sowjkuQU-lkp@intel.com/config) compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250428/202504280527.sowjkuQU-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/202504280527.sowjkuQU-lkp@intel.com/ All errors (new ones prefixed by >>): >> mm/page-writeback.c:2767:36: error: call to undeclared function 'folio_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2767 | __xa_set_mark(&mapping->i_pages, folio_index(folio), | ^ mm/page-writeback.c:2767:36: note: did you mean 'folio_inode'? include/linux/pagemap.h:567:29: note: 'folio_inode' declared here 567 | static inline struct inode *folio_inode(struct folio *folio) | ^ mm/page-writeback.c:3047:38: error: call to undeclared function 'folio_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3047 | __xa_clear_mark(&mapping->i_pages, folio_index(folio), | ^ mm/page-writeback.c:3084:36: error: call to undeclared function 'folio_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3084 | XA_STATE(xas, &mapping->i_pages, folio_index(folio)); | ^ 3 errors generated. -- >> mm/gup.c:3652:21: error: call to undeclared function 'folio_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 3652 | next_idx != folio_index(fbatch.folios[i])) | ^ mm/gup.c:3652:21: note: did you mean 'folio_inode'? include/linux/pagemap.h:567:29: note: 'folio_inode' declared here 567 | static inline struct inode *folio_inode(struct folio *folio) | ^ 1 error generated. vim +/folio_index +2767 mm/page-writeback.c b9ea25152e5636 Konstantin Khlebnikov 2015-04-14 2742 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2743) /* dc6e0ae5b1700c Kemeng Shi 2024-04-25 2744 * Mark the folio dirty, and set it dirty in the page cache. 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2745) * 203a3151661611 Matthew Wilcox (Oracle 2021-05-04 2746) * If warn is true, then emit a warning if the folio is not uptodate and has 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2747) * not been truncated. 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2748) * a8cd9d4ce35eae Shakeel Butt 2024-10-24 2749 * It is the caller's responsibility to prevent the folio from being truncated a8cd9d4ce35eae Shakeel Butt 2024-10-24 2750 * while this function is in progress, although it may have been truncated 3d84d897920c75 Matthew Wilcox (Oracle 2024-04-16 2751) * before this function is called. Most callers have the folio locked. 3d84d897920c75 Matthew Wilcox (Oracle 2024-04-16 2752) * A few have the folio blocked from truncation through other means (e.g. 3d84d897920c75 Matthew Wilcox (Oracle 2024-04-16 2753) * zap_vma_pages() has it mapped and is holding the page table lock). 3d84d897920c75 Matthew Wilcox (Oracle 2024-04-16 2754) * When called from mark_buffer_dirty(), the filesystem should hold a 3d84d897920c75 Matthew Wilcox (Oracle 2024-04-16 2755) * reference to the buffer_head that is being marked dirty, which causes 3d84d897920c75 Matthew Wilcox (Oracle 2024-04-16 2756) * try_to_free_buffers() to fail. 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2757) */ 203a3151661611 Matthew Wilcox (Oracle 2021-05-04 2758) void __folio_mark_dirty(struct folio *folio, struct address_space *mapping, 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2759) int warn) 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2760) { 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2761) unsigned long flags; 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2762) 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2763) xa_lock_irqsave(&mapping->i_pages, flags); 203a3151661611 Matthew Wilcox (Oracle 2021-05-04 2764) if (folio->mapping) { /* Race with truncate? */ 203a3151661611 Matthew Wilcox (Oracle 2021-05-04 2765) WARN_ON_ONCE(warn && !folio_test_uptodate(folio)); 203a3151661611 Matthew Wilcox (Oracle 2021-05-04 2766) folio_account_dirtied(folio, mapping); 203a3151661611 Matthew Wilcox (Oracle 2021-05-04 @2767) __xa_set_mark(&mapping->i_pages, folio_index(folio), 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2768) PAGECACHE_TAG_DIRTY); 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2769) } 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2770) xa_unlock_irqrestore(&mapping->i_pages, flags); 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2771) } 6e1cae881a0646 Matthew Wilcox (Oracle 2021-06-28 2772) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki