All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:swiotlb-init-cleanup 8/11] drivers/iommu/intel/dmar.c:915:13: error: redefinition of 'detect_intel_iommu'
@ 2022-02-15  2:21 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-02-15  2:21 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2341 bytes --]

tree:   git://git.infradead.org/users/hch/misc.git swiotlb-init-cleanup
head:   b0a4b60e2b05556a265441d07464d016e160ed50
commit: 12f2fe176ef701bc27dd2bf8061a5f178b547024 [8/11] x86: remove the IOMMU table infrastructure
config: x86_64-randconfig-s022-20220214 (https://download.01.org/0day-ci/archive/20220215/202202151022.TpMkEJ18-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc swiotlb-init-cleanup
        git checkout 12f2fe176ef701bc27dd2bf8061a5f178b547024
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

>> drivers/iommu/intel/dmar.c:915:13: error: redefinition of 'detect_intel_iommu'
     915 | void __init detect_intel_iommu(void)
         |             ^~~~~~~~~~~~~~~~~~
   In file included from drivers/iommu/intel/dmar.c:20:
   include/linux/dmar.h:127:20: note: previous definition of 'detect_intel_iommu' was here
     127 | static inline void detect_intel_iommu(void)
         |                    ^~~~~~~~~~~~~~~~~~


vim +/detect_intel_iommu +915 drivers/iommu/intel/dmar.c

   914	
 > 915	void __init detect_intel_iommu(void)
   916	{
   917		int ret;
   918		struct dmar_res_callback validate_drhd_cb = {
   919			.cb[ACPI_DMAR_TYPE_HARDWARE_UNIT] = &dmar_validate_one_drhd,
   920			.ignore_unhandled = true,
   921		};
   922	
   923		down_write(&dmar_global_lock);
   924		ret = dmar_table_detect();
   925		if (!ret)
   926			ret = dmar_walk_dmar_table((struct acpi_table_dmar *)dmar_tbl,
   927						   &validate_drhd_cb);
   928		if (!ret && !no_iommu && !iommu_detected &&
   929		    (!dmar_disabled || dmar_platform_optin())) {
   930			iommu_detected = 1;
   931			/* Make sure ACS will be enabled */
   932			pci_request_acs();
   933		}
   934	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-15  2:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15  2:21 [hch-misc:swiotlb-init-cleanup 8/11] drivers/iommu/intel/dmar.c:915:13: error: redefinition of 'detect_intel_iommu' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.