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 427DDC48BC4 for ; Sat, 17 Feb 2024 16:03:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 4555D6B0089; Sat, 17 Feb 2024 11:03:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 405A26B008A; Sat, 17 Feb 2024 11:03:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2CE926B008C; Sat, 17 Feb 2024 11:03:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 079306B0089 for ; Sat, 17 Feb 2024 11:03:48 -0500 (EST) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id A90B01C018C for ; Sat, 17 Feb 2024 16:03:47 +0000 (UTC) X-FDA: 81801766494.21.3E074D4 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by imf14.hostedemail.com (Postfix) with ESMTP id 8257F100008 for ; Sat, 17 Feb 2024 16:03:44 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bAApngPM; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 198.175.65.9 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=1708185825; 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=quU9pkvELdOtTmCy0u7ZwBlEVwIJrqKOUmGiXqTlFtg=; b=ptGtOHnYrsCsexVwIYipOLxR3D9XUadfDkmvy1l4t5eZCeIDA4XSbeB2f20N0l8ISAqwBM yQM4EFhXwWcCpTNLqcd6+LCd851mXIZNyUEQ+x6rCrjoAZtfvRgmoMB11bErcF99Q2VdW6 t8Auvh81kYAX2aD/NN25unVUkkuWuBE= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bAApngPM; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf14.hostedemail.com: domain of lkp@intel.com designates 198.175.65.9 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708185825; a=rsa-sha256; cv=none; b=PO0Ba5+zPfL/HDBn5eotZ1VuT7qD7lFm4pYR8UvLCSYJjiBaFqxd9JUUph+EH5MIFbj1M+ SFbsdXDT8SzGsoPlHSP5asl9jd0df6TotF/fK1lRL+vST9D1I1Tsv0lMg4bdC8TrOLS/9Y vh9RwkwtoUKD8oi44Af5Uu+TFfuozh8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708185825; x=1739721825; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=JrktosC0z+O+NTdP4U7Gl/dnXkCzrzE/UnsDYqY+Ta0=; b=bAApngPMzIGGCfoRsnvxMmnuqVGCtnEUSOcbaHqjZVpBWGAg8nTQDExQ 6h0nw6M+pC+yy4dCxv9npWDZLa4HcWb6BS1zxwO/6EK7YwxzLTXwxtQs1 OUdVegLks4/jD3UJ4VG1OzKXajEMlIzAd3HwH3gLQUJ/SH/mv9vUpsc5r 7oq7ggCoviIVMx3ySf5fFOvxCY8DFxFnQDxg7CgfAvis5hQG5MY01tfVI RpIShFy95HBBJ0IHVpu/1UFPBBCW798SdMNxgHmvtEQwxg7N63CEg3Z2h MRzsjWmu2XlgQzqvjWeynrlHq9foL9v+a285XDCU73LuTUC41yPQ1UWl/ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10987"; a="24771678" X-IronPort-AV: E=Sophos;i="6.06,166,1705392000"; d="scan'208";a="24771678" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2024 08:03:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,166,1705392000"; d="scan'208";a="4449928" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa006.jf.intel.com with ESMTP; 17 Feb 2024 08:03:40 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rbNAA-0002Eq-1q; Sat, 17 Feb 2024 16:03:38 +0000 Date: Sun, 18 Feb 2024 00:02:47 +0800 From: kernel test robot To: Max Kellermann , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Max Kellermann Subject: Re: [PATCH v1 14/14] include: reduce dependencies on linux/mm.h Message-ID: <202402172345.crcmOhf2-lkp@intel.com> References: <20240215145602.1371274-15-max.kellermann@ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215145602.1371274-15-max.kellermann@ionos.com> X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 8257F100008 X-Stat-Signature: 3hdufr6zy941jhao5a38gr6qu58k7dme X-Rspam-User: X-HE-Tag: 1708185824-635146 X-HE-Meta: U2FsdGVkX18mAIegb02A8hzeS2yxx7n/Z9dspib7NS6yO34zObHQ4Jq5IsHEQaV4sXHszBctxAgbRkn7dT34gvMINDMz/QH4+Z83YGtWfzlkCJ9Y3aUMSa6evkT2tGSQdFNFYADl0n/27YNvrW0Z92UzaE7r5khh8qc70D7MDcsS6YmTfs8zCvU9lXkE1M0FSw56Nk1qRiJKB/GzK+bPXKDCkKIQv5qXpAhsaKVCyEdZ7DzFAupnw8mTqAt4dzpAWh7sHwvQa6fH3rJk8tboDBDQJ2Ko1iLSua1fzU6e+X9/arRBBUEU6+RUBCRSV4BZj1r+vEQDskahXbToKwNiOH9xX+L7/8x2A+UfhM4ss9FLVW8TtZOW1rjaxcRM4ThIi+xuxUUi57C/Xi2TkfOgzePx7vhTxKJCr9zcnfAX6E2InUapyF1d0D6T7/ybhLS0RGh4OQMiMMtz5r037cAbTiVUb3ghznqJRLLeVqiStGkm9rcQc/GrkX2MWgiL/rpKR6YI9v+5+IQzmgzJfziBgK6BWY/5BTcVzuMH0yR63AZhHWO2iGNwNBnH77xMlDdJuiS7VjUjfKOZK24waONtSYyFXxEUu1Lkkte1GdEkfqNKgaOm89HBMwP84VYmM+zfScFdRMYQkA68V6eG7E7O7Lhy2RB1fcZOy4fHHqFMIHPMyRWSurt+aKmQxeXFuCHgXvd26CJoowUniXZiE1QY1lh1UN7JYTPxYGwOH3Oyr76Gd9+qXCtlGiaPiD+8lVJj1UCQFbtWQQBtzK0tLg1FQ/WQQfUr8fZAh2PmV56Zl0aJHAx90tdgUIvdpcFT9hkEiaqxDmRgXH+9/WYhR1hXIg== 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 Max, kernel test robot noticed the following build errors: [auto build test ERROR on next-20240215] [cannot apply to akpm-mm/mm-everything char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus powerpc/next powerpc/fixes linus/master v6.8-rc4 v6.8-rc3 v6.8-rc2 v6.8-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Max-Kellermann/drivers-add-missing-includes-on-linux-mm-h-and-others/20240215-225853 base: next-20240215 patch link: https://lore.kernel.org/r/20240215145602.1371274-15-max.kellermann%40ionos.com patch subject: [PATCH v1 14/14] include: reduce dependencies on linux/mm.h config: nios2-allnoconfig (https://download.01.org/0day-ci/archive/20240217/202402172345.crcmOhf2-lkp@intel.com/config) compiler: nios2-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240217/202402172345.crcmOhf2-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/202402172345.crcmOhf2-lkp@intel.com/ All error/warnings (new ones prefixed by >>): lib/scatterlist.c: In function 'sg_page_count': >> lib/scatterlist.c:739:16: error: implicit declaration of function 'PAGE_ALIGN'; did you mean 'PTR_ALIGN'? [-Werror=implicit-function-declaration] 739 | return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; | ^~~~~~~~~~ | PTR_ALIGN lib/scatterlist.c: In function 'extract_user_to_sg': >> lib/scatterlist.c:1153:17: error: implicit declaration of function 'unpin_user_page'; did you mean 'copy_user_page'? [-Werror=implicit-function-declaration] 1153 | unpin_user_page(sg_page(&sgtable->sgl[--sgtable->nents])); | ^~~~~~~~~~~~~~~ | copy_user_page lib/scatterlist.c: In function 'extract_kvec_to_sg': >> lib/scatterlist.c:1239:29: error: implicit declaration of function 'is_vmalloc_or_module_addr' [-Werror=implicit-function-declaration] 1239 | if (is_vmalloc_or_module_addr((void *)kaddr)) | ^~~~~~~~~~~~~~~~~~~~~~~~~ >> lib/scatterlist.c:1240:40: error: implicit declaration of function 'vmalloc_to_page'; did you mean 'vmalloc_nr_pages'? [-Werror=implicit-function-declaration] 1240 | page = vmalloc_to_page((void *)kaddr); | ^~~~~~~~~~~~~~~ | vmalloc_nr_pages >> lib/scatterlist.c:1240:38: warning: assignment to 'struct page *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1240 | page = vmalloc_to_page((void *)kaddr); | ^ cc1: some warnings being treated as errors -- In file included from include/linux/mm_inline.h:6, from mm/mmu_gather.c:6: >> include/linux/huge_mm.h:12:19: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 12 | pmd_t *dst_pmd, pmd_t *src_pmd, unsigned long addr, | ^~~~~ | pgd_t include/linux/huge_mm.h:12:35: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 12 | pmd_t *dst_pmd, pmd_t *src_pmd, unsigned long addr, | ^~~~~ | pgd_t >> include/linux/huge_mm.h:16:19: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 16 | pud_t *dst_pud, pud_t *src_pud, unsigned long addr, | ^~~~~ | pgd_t include/linux/huge_mm.h:16:35: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 16 | pud_t *dst_pud, pud_t *src_pud, unsigned long addr, | ^~~~~ | pgd_t include/linux/huge_mm.h:22:64: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 22 | static inline void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud) | ^~~~~ | pgd_t include/linux/huge_mm.h:29:28: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 29 | pmd_t *pmd, unsigned long addr, unsigned long next); | ^~~~~ | pgd_t include/linux/huge_mm.h:30:70: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 30 | int zap_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, pmd_t *pmd, | ^~~~~ | pgd_t include/linux/huge_mm.h:32:70: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 32 | int zap_huge_pud(struct mmu_gather *tlb, struct vm_area_struct *vma, pud_t *pud, | ^~~~~ | pgd_t include/linux/huge_mm.h:35:44: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 35 | unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd); | ^~~~~ | pgd_t include/linux/huge_mm.h:35:60: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 35 | unsigned long new_addr, pmd_t *old_pmd, pmd_t *new_pmd); | ^~~~~ | pgd_t include/linux/huge_mm.h:37:21: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 37 | pmd_t *pmd, unsigned long addr, pgprot_t newprot, | ^~~~~ | pgd_t include/linux/huge_mm.h:437:65: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 437 | static inline void __split_huge_pmd(struct vm_area_struct *vma, pmd_t *pmd, | ^~~~~ | pgd_t include/linux/huge_mm.h:464:31: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 464 | static inline int is_swap_pmd(pmd_t pmd) | ^~~~~ | pgd_t include/linux/huge_mm.h:468:47: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 468 | static inline spinlock_t *pmd_trans_huge_lock(pmd_t *pmd, | ^~~~~ | pgd_t include/linux/huge_mm.h:473:47: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 473 | static inline spinlock_t *pud_trans_huge_lock(pud_t *pud, | ^~~~~ | pgd_t include/linux/huge_mm.h:489:37: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 489 | static inline bool is_huge_zero_pmd(pmd_t pmd) | ^~~~~ | pgd_t include/linux/huge_mm.h:494:37: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 494 | static inline bool is_huge_zero_pud(pud_t pud) | ^~~~~ | pgd_t include/linux/huge_mm.h:505:29: error: unknown type name 'pmd_t'; did you mean 'pgd_t'? 505 | unsigned long addr, pmd_t *pmd, int flags, struct dev_pagemap **pgmap) | ^~~~~ | pgd_t include/linux/huge_mm.h:511:29: error: unknown type name 'pud_t'; did you mean 'pgd_t'? 511 | unsigned long addr, pud_t *pud, int flags, struct dev_pagemap **pgmap) | ^~~~~ | pgd_t vim +739 lib/scatterlist.c a321e91b6d73ed Imre Deak 2013-02-27 736 a321e91b6d73ed Imre Deak 2013-02-27 737 static int sg_page_count(struct scatterlist *sg) a321e91b6d73ed Imre Deak 2013-02-27 738 { a321e91b6d73ed Imre Deak 2013-02-27 @739 return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; a321e91b6d73ed Imre Deak 2013-02-27 740 } a321e91b6d73ed Imre Deak 2013-02-27 741 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki