From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 E9DEA35D5E2 for ; Thu, 2 Jul 2026 05:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782971664; cv=none; b=cyoMaG9ouG2T6AhoHkWZZWOscWh7pXTRSZLQp8KUqXhozi/gx30dZ7UU7QD2zgja5NTHKKY/+q6FF6SCldxL0i18UK8FzHSIqZYxbKOq5VGvvEmemawmaxUYR8zUOstkgad3KvJsnbFQnpp4bJ2MNzV2HsXP/HjzSbEEZwQo5eA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782971664; c=relaxed/simple; bh=9eqdOchagqxRqZEZkOEqa8JeN6KcRLHtVvyM3Yo/PFI=; h=Date:From:To:Cc:Subject:Message-ID; b=DEOt0EYlTYaIQSrplhKNqSJjHfnP6pM6w4+dvfbGY/CaeVZxLFZKA2QassjZkjyFLLAvpVNIi1CmnoYq2saOwjhXcWeI2AnzKqkWORFP9v4TmkhlqC3JKyi5MNihf/bTb/TWRZ3aopISzcM/JSfXdMECvDCdrCxMATa6xGPpkr0= 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=cXZKvc1W; arc=none smtp.client-ip=192.198.163.13 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cXZKvc1W" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782971662; x=1814507662; h=date:from:to:cc:subject:message-id; bh=9eqdOchagqxRqZEZkOEqa8JeN6KcRLHtVvyM3Yo/PFI=; b=cXZKvc1WJ7qff/u2yzEAz47uwmpaC4vxtWk2xpCd5K+63Do8iv4uwPX0 l4m/ha9azJC/Wx5Gjn0lXijjOlbNXAqqsagi2ApQUz6NOtq5sMsRxWpAc ShUWnQv4hnTamfDhcTLbzEtCwWFE6PJ1UBekHj3cZqSvuDxH6WcJuYH0x CkOXw2MGwvdOSK/Tt7xqtR6S4imLqCI9lz+8kvKwKchMQMD+vRSbeIkEq s2LR0tDFVGgny/DZHLrv1LgWLYO8RYMSa0TR5I5Gwn0q+v6IrqcwE1SLY 9w5my79WWu8hPcXxKyFs2mQV3VJ3y6x8G8p4stS9033CddskNyhHsreEK w==; X-CSE-ConnectionGUID: 3nd8avpMSYKQAUKtG7ADsQ== X-CSE-MsgGUID: bS6ERMrYRRqlDUgezghUOA== X-IronPort-AV: E=McAfee;i="6800,10657,11834"; a="86255722" X-IronPort-AV: E=Sophos;i="6.25,143,1779174000"; d="scan'208";a="86255722" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2026 22:54:19 -0700 X-CSE-ConnectionGUID: M1YeOGEwR8OsnM54ydNnDg== X-CSE-MsgGUID: fuRFpp18Rd2ibcxQESGcAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.25,143,1779174000"; d="scan'208";a="248786348" Received: from lkp-server02.sh.intel.com (HELO ea128546eb3d) ([10.239.97.151]) by fmviesa010.fm.intel.com with ESMTP; 01 Jul 2026 22:54:17 -0700 Received: from kbuild by ea128546eb3d with local (Exim 4.98.2) (envelope-from ) id 1wfANL-00000000A4D-08gp; Thu, 02 Jul 2026 05:54:15 +0000 Date: Thu, 02 Jul 2026 13:53:21 +0800 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android14-5.15-2026-07 0/1] include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function Message-ID: <202607021344.fzbRTECH-lkp@intel.com> User-Agent: s-nail v14.9.25 Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Hi Isaac, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android14-5.15-2026-07 head: 9938d39e2fe99593abe347df3b82ea2f85c83d1d commit: 77c20b4cbcd0dca8e114cbcdcdaac61f3fb9555d [0/1] iommu/dma: Trace bounce buffer usage when mapping buffers config: i386-buildonly-randconfig-003-20260702 (https://download.01.org/0day-ci/archive/20260702/202607021344.fzbRTECH-lkp@intel.com/config) compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 0a2fb2a2269da0e2a3e230beb6cad39ca314db33) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260702/202607021344.fzbRTECH-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/202607021344.fzbRTECH-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: include/trace/events/swiotlb.h:15:23: error: variable has incomplete type 'enum SWIOTLB_NO_FORCE' 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ include/trace/events/swiotlb.h:15:9: note: forward declaration of 'enum SWIOTLB_NO_FORCE' 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: include/trace/events/swiotlb.h:15:23: error: variable has incomplete type 'enum SWIOTLB_NO_FORCE' 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ include/trace/events/swiotlb.h:15:9: note: forward declaration of 'enum SWIOTLB_NO_FORCE' 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ In file included from drivers/iommu/dma-iommu.c:28: >> include/trace/events/swiotlb.h:15:9: warning: declaration of 'enum SWIOTLB_NO_FORCE' will not be visible outside of this function [-Wvisibility] include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ drivers/iommu/dma-iommu.c:821:42: error: argument type 'enum SWIOTLB_NO_FORCE' is incomplete 821 | trace_swiotlb_bounced(dev, phys, size, swiotlb_force); | ^~~~~~~~~~~~~ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^~~~~~~~~~~~~~~~ include/trace/events/swiotlb.h:15:9: note: forward declaration of 'enum SWIOTLB_NO_FORCE' 15 | enum swiotlb_force swiotlb_force), | ^ include/linux/swiotlb.h:131:23: note: expanded from macro 'swiotlb_force' 131 | #define swiotlb_force SWIOTLB_NO_FORCE | ^ 7 warnings and 3 errors generated. vim +15 include/trace/events/swiotlb.h 2b2b614dd24e4e Zoltan Kiss 2013-09-04 11 2b2b614dd24e4e Zoltan Kiss 2013-09-04 12 TP_PROTO(struct device *dev, 2b2b614dd24e4e Zoltan Kiss 2013-09-04 13 dma_addr_t dev_addr, 2b2b614dd24e4e Zoltan Kiss 2013-09-04 14 size_t size, ae7871be189cb4 Geert Uytterhoeven 2016-12-16 @15 enum swiotlb_force swiotlb_force), 2b2b614dd24e4e Zoltan Kiss 2013-09-04 16 2b2b614dd24e4e Zoltan Kiss 2013-09-04 17 TP_ARGS(dev, dev_addr, size, swiotlb_force), 2b2b614dd24e4e Zoltan Kiss 2013-09-04 18 2b2b614dd24e4e Zoltan Kiss 2013-09-04 19 TP_STRUCT__entry( 2b2b614dd24e4e Zoltan Kiss 2013-09-04 20 __string( dev_name, dev_name(dev) ) 2b2b614dd24e4e Zoltan Kiss 2013-09-04 21 __field( u64, dma_mask ) 2b2b614dd24e4e Zoltan Kiss 2013-09-04 22 __field( dma_addr_t, dev_addr ) 2b2b614dd24e4e Zoltan Kiss 2013-09-04 23 __field( size_t, size ) ae7871be189cb4 Geert Uytterhoeven 2016-12-16 24 __field( enum swiotlb_force, swiotlb_force ) 2b2b614dd24e4e Zoltan Kiss 2013-09-04 25 ), 2b2b614dd24e4e Zoltan Kiss 2013-09-04 26 2b2b614dd24e4e Zoltan Kiss 2013-09-04 27 TP_fast_assign( 2b2b614dd24e4e Zoltan Kiss 2013-09-04 28 __assign_str(dev_name, dev_name(dev)); 2b2b614dd24e4e Zoltan Kiss 2013-09-04 29 __entry->dma_mask = (dev->dma_mask ? *dev->dma_mask : 0); 2b2b614dd24e4e Zoltan Kiss 2013-09-04 30 __entry->dev_addr = dev_addr; 2b2b614dd24e4e Zoltan Kiss 2013-09-04 31 __entry->size = size; 2b2b614dd24e4e Zoltan Kiss 2013-09-04 32 __entry->swiotlb_force = swiotlb_force; 2b2b614dd24e4e Zoltan Kiss 2013-09-04 33 ), 2b2b614dd24e4e Zoltan Kiss 2013-09-04 34 2b2b614dd24e4e Zoltan Kiss 2013-09-04 35 TP_printk("dev_name: %s dma_mask=%llx dev_addr=%llx " 2b2b614dd24e4e Zoltan Kiss 2013-09-04 36 "size=%zu %s", 2b2b614dd24e4e Zoltan Kiss 2013-09-04 37 __get_str(dev_name), 2b2b614dd24e4e Zoltan Kiss 2013-09-04 38 __entry->dma_mask, 2b2b614dd24e4e Zoltan Kiss 2013-09-04 39 (unsigned long long)__entry->dev_addr, 2b2b614dd24e4e Zoltan Kiss 2013-09-04 40 __entry->size, ae7871be189cb4 Geert Uytterhoeven 2016-12-16 41 __print_symbolic(__entry->swiotlb_force, ae7871be189cb4 Geert Uytterhoeven 2016-12-16 42 { SWIOTLB_NORMAL, "NORMAL" }, fff5d99225107f Geert Uytterhoeven 2016-12-16 43 { SWIOTLB_FORCE, "FORCE" }, fff5d99225107f Geert Uytterhoeven 2016-12-16 44 { SWIOTLB_NO_FORCE, "NO_FORCE" })) 2b2b614dd24e4e Zoltan Kiss 2013-09-04 45 ); 2b2b614dd24e4e Zoltan Kiss 2013-09-04 46 :::::: The code at line 15 was first introduced by commit :::::: ae7871be189cb41184f1e05742b4a99e2c59774d swiotlb: Convert swiotlb_force from int to enum :::::: TO: Geert Uytterhoeven :::::: CC: Konrad Rzeszutek Wilk -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki