Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2326995rwr; Sat, 6 May 2023 08:47:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6734F0dMCWyctTBF0nuAgZHeA1MJu2pBHCvSOO45F837Y2XeKdSlmMWPNNQsWSugGirWkQ X-Received: by 2002:a17:902:c40a:b0:1ab:1a73:7c7f with SMTP id k10-20020a170902c40a00b001ab1a737c7fmr6768501plk.63.1683388038551; Sat, 06 May 2023 08:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683388038; cv=none; d=google.com; s=arc-20160816; b=sHSetM5WcwWl+dLRHRHW7uezqUxZo1/0y8mJ0qj9fu/3dEJNZG1wg6s4IHEPHXNVz8 qsk2pWMxcvOxAMP5ipAL3LY8dnEqQGfJjAMBeIzGSjE8shp27Nro6dxcLDzoFlptsgKc RdqElJ9I/qttoEr6BRR/bDjzBA1kiFNRjX7lxLSH4iY935i+z1Q7SsjHXj2tg7MtL/0Y AVRLssz5TpLJGdbUo0LIuqqYDwZG9uEfB+YtmZ+t5eHTzR2HOdBoqNZpMwrA48gaxZsv 8Tkqvpn7RkiY+StWzNUBoj0NvhXDh93w1XzliPF6zpelWLGG3LDc+qiQ5d9+VjmY9LUq AZrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=AMY3u9SiJloUjiR4z4LhJJdd/K5Rqk+aai2z4pFmz3o=; b=bL2ET7CChcOnvN4UhAg5GNs3ALPK6NK/X7ofdAwGBmh8L7ddRO8WjE345juAwGUCT3 8m0+gZJuf7xHHRND3kRjL1T3cX071xuZV7LbQY4pVRbcEn6r+9xQFIbNT5Nh8T3JGMC9 fHk2mM66j8ZwBm72aQoSRj6Ut1OJxYJnO9DTFvQ7I+mVy/y4Ibb4UgzrKitCNDvKX7rK Rhu5HFdsFA37tkk0N1FHbv5Hlj4wZxRARBkwp4j1GB9hwSnp3xpaNqwh0tbeV5FCQOlH CWCaj38VlFicA4JEa9M2OLlNGSwZ+XMIhmZY2EIi1xveT/Lyl1LlfVdUR+knBoFJ3xdd sXCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="V9ByB5/7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t12-20020a170902e84c00b001a1d78af685si3201895plg.466.2023.05.06.08.47.04; Sat, 06 May 2023 08:47:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="V9ByB5/7"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233051AbjEFPk1 (ORCPT + 99 others); Sat, 6 May 2023 11:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233048AbjEFPkZ (ORCPT ); Sat, 6 May 2023 11:40:25 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0B9C1A63B for ; Sat, 6 May 2023 08:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683387623; x=1714923623; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=D7ivSDZ3Q2ZBjmRomv1KQpuT6zMdj1WcDkR14UE49/c=; b=V9ByB5/7Pbi0D1mx1JCmUEJzDZsGEEkixDp2x+WP7Jsc34djFNht/KV7 stBnOqbYfkl1DCnt3IU/+F5uwmZPFuC6Ol69qwmTtRFkIYJ73KC7Qr1e3 5a0pUkCXeQYMxxbhV0LiQCqsIhJRlWeK3K8rvJZAMiLsAZqY1WBjL+p0r 9aLK3p6ym3BkNEqse43FB0Gr5TO+R2PV6lYHa90/OkxMucDggNH2cqfg5 imvrmLZsXQ89glWtuA5Sak9jRY5zk+P8thV6ZeZE3I5EkpANnVt+uXZr0 x5UpZTUVKV/HNYuYFx/CBvZ7+YpqYD1nDE9mcIZLLHTbRgo97/dl9yTnn A==; X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="333824891" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="333824891" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2023 08:40:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10702"; a="730746343" X-IronPort-AV: E=Sophos;i="5.99,255,1677571200"; d="scan'208";a="730746343" Received: from lkp-server01.sh.intel.com (HELO dea6d5a4f140) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 06 May 2023 08:40:19 -0700 Received: from kbuild by dea6d5a4f140 with local (Exim 4.96) (envelope-from ) id 1pvK1C-0000ND-1f; Sat, 06 May 2023 15:40:18 +0000 Date: Sat, 6 May 2023 23:39:34 +0800 From: kernel test robot To: Jacob Pan , LKML , iommu@lists.linux.dev, Jason Gunthorpe , Lu Baolu , Joerg Roedel , Jean-Philippe Brucker , Robin Murphy Cc: oe-kbuild-all@lists.linux.dev, Will Deacon , Raj Ashok , "Tian, Kevin" , Yi Liu , "Yu, Fenghua" , torvalds@linux-foundation.org, Jacob Pan Subject: Re: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA Message-ID: <202305062355.8cUG2sjd-lkp@intel.com> References: <20230506133134.1492395-1-jacob.jun.pan@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230506133134.1492395-1-jacob.jun.pan@linux.intel.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacob, kernel test robot noticed the following build warnings: [auto build test WARNING on next-20230505] [also build test WARNING on linus/master] [cannot apply to joro-iommu/next v6.3 v6.3-rc7 v6.3-rc6 v6.3] [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/Jacob-Pan/iommu-Add-Kconfig-help-text-for-IOMMU_SVA/20230506-212836 base: next-20230505 patch link: https://lore.kernel.org/r/20230506133134.1492395-1-jacob.jun.pan%40linux.intel.com patch subject: [PATCH] iommu: Add Kconfig help text for IOMMU_SVA config: csky-defconfig (https://download.01.org/0day-ci/archive/20230506/202305062355.8cUG2sjd-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 12.1.0 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://github.com/intel-lab-lkp/linux/commit/7a9fdfc3792c64278f1950f3880278b989749944 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jacob-Pan/iommu-Add-Kconfig-help-text-for-IOMMU_SVA/20230506-212836 git checkout 7a9fdfc3792c64278f1950f3880278b989749944 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash drivers/iommu/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202305062355.8cUG2sjd-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from arch/csky/include/asm/mmu_context.h:6, from include/linux/mmu_context.h:5, from drivers/iommu/iommu-sva.c:5: >> include/asm-generic/mm_hooks.h:10:40: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration 10 | static inline int arch_dup_mmap(struct mm_struct *oldmm, | ^~~~~~~~~ include/asm-generic/mm_hooks.h:16:42: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration 16 | static inline void arch_exit_mmap(struct mm_struct *mm) | ^~~~~~~~~ include/asm-generic/mm_hooks.h:20:38: warning: 'struct mm_struct' declared inside parameter list will not be visible outside of this definition or declaration 20 | static inline void arch_unmap(struct mm_struct *mm, | ^~~~~~~~~ include/asm-generic/mm_hooks.h:25:15: error: unknown type name 'bool' 25 | static inline bool arch_vma_access_permitted(struct vm_area_struct *vma, | ^~~~ include/asm-generic/mm_hooks.h:26:17: error: unknown type name 'bool' 26 | bool write, bool execute, bool foreign) | ^~~~ include/asm-generic/mm_hooks.h:1:1: note: 'bool' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | /* SPDX-License-Identifier: GPL-2.0 */ include/asm-generic/mm_hooks.h:26:29: error: unknown type name 'bool' 26 | bool write, bool execute, bool foreign) | ^~~~ include/asm-generic/mm_hooks.h:26:29: note: 'bool' is defined in header ''; did you forget to '#include '? include/asm-generic/mm_hooks.h:26:43: error: unknown type name 'bool' 26 | bool write, bool execute, bool foreign) | ^~~~ include/asm-generic/mm_hooks.h:26:43: note: 'bool' is defined in header ''; did you forget to '#include '? drivers/iommu/iommu-sva.c: In function 'iommu_sva_bind_device': drivers/iommu/iommu-sva.c:69:32: error: invalid use of undefined type 'struct dev_iommu' 69 | max_pasids = dev->iommu->max_pasids; | ^~ drivers/iommu/iommu-sva.c:78:32: error: invalid application of 'sizeof' to incomplete type 'struct iommu_sva' 78 | handle = kzalloc(sizeof(*handle), GFP_KERNEL); | ^ drivers/iommu/iommu-sva.c:109:15: error: invalid use of undefined type 'struct iommu_sva' 109 | handle->dev = dev; | ^~ drivers/iommu/iommu-sva.c:110:15: error: invalid use of undefined type 'struct iommu_sva' 110 | handle->domain = domain; | ^~ drivers/iommu/iommu-sva.c: In function 'iommu_sva_unbind_device': drivers/iommu/iommu-sva.c:134:45: error: invalid use of undefined type 'struct iommu_sva' 134 | struct iommu_domain *domain = handle->domain; | ^~ drivers/iommu/iommu-sva.c:136:36: error: invalid use of undefined type 'struct iommu_sva' 136 | struct device *dev = handle->dev; | ^~ drivers/iommu/iommu-sva.c: In function 'iommu_sva_get_pasid': drivers/iommu/iommu-sva.c:150:45: error: invalid use of undefined type 'struct iommu_sva' 150 | struct iommu_domain *domain = handle->domain; | ^~ vim +10 include/asm-generic/mm_hooks.h d6dd61c831226f Jeremy Fitzhardinge 2007-05-02 9 c10e83f598d080 Thomas Gleixner 2017-12-14 @10 static inline int arch_dup_mmap(struct mm_struct *oldmm, d6dd61c831226f Jeremy Fitzhardinge 2007-05-02 11 struct mm_struct *mm) d6dd61c831226f Jeremy Fitzhardinge 2007-05-02 12 { c10e83f598d080 Thomas Gleixner 2017-12-14 13 return 0; d6dd61c831226f Jeremy Fitzhardinge 2007-05-02 14 } d6dd61c831226f Jeremy Fitzhardinge 2007-05-02 15 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests