Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp317265rdb; Sat, 17 Feb 2024 09:29:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWhNVX1lUjVgu5kAcpWKwJloSjcp7AfSsM5s6GNTgJ0/LYPC55dUQxf8KDffwT6vXojqPL2Kcfr0tcf1DJT45UhGyOLCjIv7sPTmZe65Q== X-Google-Smtp-Source: AGHT+IFKQEktXDIydC10p0qwBovFa1RwaacEciI9SVmXzh6Z7WAdqcOmJuVnGKJ7lFP3XeVxhDWt X-Received: by 2002:a17:902:8a81:b0:1db:da3d:6fea with SMTP id p1-20020a1709028a8100b001dbda3d6feamr577122plo.50.1708190940150; Sat, 17 Feb 2024 09:29:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708190940; cv=pass; d=google.com; s=arc-20160816; b=fz2q2RmnAR0w+mAWxSmfmuOLDB0vtKl1GtjkAq78zqwVCybjfz0St9FvqyfYoZGPy3 j4i+UhttK+6VSDxs5dYkdjLDuu7r1Pud/ukypbbPTCyw+zVTJPMSx8D6+dlqIbjru4wv xZgEBVZ17JfabdzBiuHxX4G0z8NiYJEVXSogOAzvkNu/E/mcIy9exCPEtl/grLpMwQDU VRfzkWcJJdcyrZA3XfBmBl2bQFeH6UJ7Ax+zpyjw1WDmQuTT5IiG+hCWJt2cJEaJjZBa GUo+GGQbOPa4+IzqU55ski0EQzRVEUS1syhJIB1I/Uxz7vx9KDckoes8BqZLDzRtrOAd CoEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qLIfPEDXefLK7+S0YW2/5HOXamI8sgMiyWV+jwy45l8=; fh=KCAhUfPWoL2Q3FWiItRG3FOaVNH1bs3tJSoNfDERKhA=; b=YrqHKJBjgVXeyFWmM9OtXd18vO2cTQ7zVlAimLZRuyExR6Qn8ypXKtCb91bZOCPO3S LISQfV9Jw8+juYOGwBJB2roGCgo48ZeVnNa6R5Uq4xBsQTVJvQpmlxsfffx1hPWem4/n K8aQhskBX5waZ9udeJA5F5b6B8tFGAPlRiDvu3FRvyO7DfidVpnuMKC0RJx1bEnXgO9B cac2Y2SnMcZSMkHII3TU8wimhO91UOUnuRWiIvHpTwi/qbht8C0R0lECd7Do3hRK0h87 GsQHRgvk1T0GqJFiVKgpuI1HQmX45sSN+LM0odEIpgmp9S5N9ddxHpzCOuhhLBXtoiDc Tr/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RN5itX5B; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-69985-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id jv11-20020a170903058b00b001da17ce989dsi1737781plb.278.2024.02.17.09.28.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 09:29:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69985-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RN5itX5B; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-69985-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69985-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BA329283264 for ; Sat, 17 Feb 2024 17:28:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C34017D41D; Sat, 17 Feb 2024 17:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RN5itX5B" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7110B1D681 for ; Sat, 17 Feb 2024 17:28:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708190933; cv=none; b=jXVleNNmmcLu0Hy4EwHJaHpb482IOofh7cWWm0r1O+DeuQleldUHXdnkfQgLkr6otudRFUC/q1AYSc2C6qejQOph2Pbn3dxELBP71IwCiO4zQIqrL/6AiZN5VhOwkO5BF+4zP23dforsi1wXiTWwyG8UsWZy3kr47zuLTTrw6jo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708190933; c=relaxed/simple; bh=XoMAutHoxVHHbRXYGtOfCJCOlfzu7clxXNV9Rrq01Uo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QctJzqaAPmgYypL17voVGFet3/y8F1PIIDrSm9XnFX7K76lGKdLiB4phwai9HzEC2o3gX5zsxjpQZno3AJBbfJRkePbQGC9bN7M0tm6lD22Xbg2//VzGTzt7xPflzR3wDOSS3xGDuRaQ3xwdk3PiaQkVAEjMvAYRSDIDlEJA3iQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=RN5itX5B; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708190931; x=1739726931; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=XoMAutHoxVHHbRXYGtOfCJCOlfzu7clxXNV9Rrq01Uo=; b=RN5itX5BYR+dRgWsDnI11SgEP2cr1Ie4NW3SW8GYYoi43c6vmvKurs9g fVAWLrJgKd7KC+NEr1kSaolUuAX0cPPzceTA1oVnPLxnKHwXUC7ER1Axg rx5Mk+ESkqlCdymG7c7j7QXc0PmPjNUfgHiOnoBpEjxbRz1KttyTRqVvJ coEA33GO0cPnhDh9p0aJ/+9R//pImXHDnyiTKuPSL91m68B33Pd+jzTRl T1xDGutyQxCYnDKtmm2ixcihldM6BgJdWeBKBBBaEq0yHTbivJP7S5DUV wcHsI1+b4k4DHA2HB4+Gzm/AVFUjc6H3KWttHqbXo5q7WiuU2M4e3nEH2 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10987"; a="2182391" X-IronPort-AV: E=Sophos;i="6.06,166,1705392000"; d="scan'208";a="2182391" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2024 09:28:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,166,1705392000"; d="scan'208";a="34902595" Received: from lkp-server02.sh.intel.com (HELO 3c78fa4d504c) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 17 Feb 2024 09:28:48 -0800 Received: from kbuild by 3c78fa4d504c with local (Exim 4.96) (envelope-from ) id 1rbOUY-0002L2-0d; Sat, 17 Feb 2024 17:28:46 +0000 Date: Sun, 18 Feb 2024 01:27:46 +0800 From: kernel test robot To: Max Kellermann , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Max Kellermann Subject: Re: [PATCH v1 14/14] include: reduce dependencies on linux/mm.h Message-ID: <202402180115.xH2WHdhd-lkp@intel.com> References: <20240215145602.1371274-15-max.kellermann@ionos.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240215145602.1371274-15-max.kellermann@ionos.com> 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: hexagon-allnoconfig (https://download.01.org/0day-ci/archive/20240218/202402180115.xH2WHdhd-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 36adfec155de366d722f2bac8ff9162289dcf06c) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240218/202402180115.xH2WHdhd-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/202402180115.xH2WHdhd-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 547 | val = __raw_readb(PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 560 | val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu' 37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x)) | ^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 573 | val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); | ~~~~~~~~~~ ^ include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu' 35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x)) | ^ In file included from lib/scatterlist.c:9: In file included from include/linux/scatterlist.h:9: In file included from arch/hexagon/include/asm/io.h:328: include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 584 | __raw_writeb(value, PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 594 | __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] 604 | __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); | ~~~~~~~~~~ ^ >> lib/scatterlist.c:739:9: error: call to undeclared function 'PAGE_ALIGN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 739 | return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; | ^ lib/scatterlist.c:763:9: error: call to undeclared function 'PAGE_ALIGN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 763 | return PAGE_ALIGN(sg->offset + sg_dma_len(sg)) >> PAGE_SHIFT; | ^ >> lib/scatterlist.c:1153:3: error: call to undeclared function 'unpin_user_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1153 | unpin_user_page(sg_page(&sgtable->sgl[--sgtable->nents])); | ^ >> lib/scatterlist.c:1239:8: error: call to undeclared function 'is_vmalloc_or_module_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1239 | if (is_vmalloc_or_module_addr((void *)kaddr)) | ^ >> lib/scatterlist.c:1240:12: error: call to undeclared function 'vmalloc_to_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1240 | page = vmalloc_to_page((void *)kaddr); | ^ lib/scatterlist.c:1240:12: note: did you mean 'vmalloc_nr_pages'? include/linux/vmalloc.h:135:22: note: 'vmalloc_nr_pages' declared here 135 | extern unsigned long vmalloc_nr_pages(void); | ^ >> lib/scatterlist.c:1240:10: error: incompatible integer to pointer conversion assigning to 'struct page *' from 'int' [-Wint-conversion] 1240 | page = vmalloc_to_page((void *)kaddr); | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings and 6 errors generated. vim +/PAGE_ALIGN +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