* Re: [PATCH v5 7/7] iommu/amd: Provide kernel command line option to enable GAPPI
[not found] <20261015064515.10700-8-sarunkod@amd.com>
@ 2026-10-16 8:23 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-16 8:23 UTC (permalink / raw)
To: Sairaj Kodilkar, H. Peter Anvin, Joerg Roedel (AMD),
Mike Rapoport (Microsoft), Andrew Morton, Borislav Petkov,
Dapeng Mi, Dave Hansen, Ethan Nelson-Moore, Ingo Molnar,
Jakub Kicinski, Jeff Layton, Jonathan Corbet, Kiryl Shutsemau,
Li RongQing, Marco Elver, Paolo Bonzini, Randy Dunlap,
Rick Edgecombe, Robin Murphy, Sean Christopherson, Shuah Khan,
Suravee Suthikulpanit, Thomas Gleixner, Vasant Hegde, Will Deacon,
iommu, kvm, linux-coco
Cc: llvm, oe-kbuild-all, Linux Memory Management List
Hi Sairaj,
kernel test robot noticed the following build errors:
[auto build test ERROR on 4056b3c9d3c92ea45955641dbafeb9b960e146ef]
url: https://github.com/intel-lab-lkp/linux/commits/Sairaj-Kodilkar/iommu-amd-KVM-SVM-Rename-cpu-to-apicid-in-IOMMU-interface/20261015-121509
base: 4056b3c9d3c92ea45955641dbafeb9b960e146ef
patch link: https://lore.kernel.org/r/20261015064515.10700-8-sarunkod%40amd.com
patch subject: [PATCH v5 7/7] iommu/amd: Provide kernel command line option to enable GAPPI
config: x86_64-randconfig-1017-20261016 (https://download.01.org/0day-ci/archive/20261016/202610161625.7iSczyVo-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261016/202610161625.7iSczyVo-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610161625.7iSczyVo-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/iommu/amd/init.c:163:6: error: redefinition of 'false' as different kind of symbol
163 | bool amd_iommu_gappi;
| ^
include/linux/amd-iommu.h:65:25: note: expanded from macro 'amd_iommu_gappi'
65 | #define amd_iommu_gappi false
| ^
include/linux/stddef.h:11:2: note: previous definition is here
11 | false = 0,
| ^
drivers/iommu/amd/init.c:164:15: error: redefinition of 'false' as different kind of symbol
164 | EXPORT_SYMBOL(amd_iommu_gappi);
| ^
include/linux/amd-iommu.h:65:25: note: expanded from macro 'amd_iommu_gappi'
65 | #define amd_iommu_gappi false
| ^
include/linux/stddef.h:11:2: note: previous definition is here
11 | false = 0,
| ^
drivers/iommu/amd/init.c:164:1: error: cannot take the address of an rvalue of type 'int'
164 | EXPORT_SYMBOL(amd_iommu_gappi);
| ^ ~~~~~~~~~~~~~~~
include/linux/export.h:89:29: note: expanded from macro 'EXPORT_SYMBOL'
89 | #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "")
| ^ ~~~
include/linux/export.h:86:38: note: expanded from macro '_EXPORT_SYMBOL'
86 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
| ^ ~~~
include/linux/export.h:77:2: note: expanded from macro '__EXPORT_SYMBOL'
77 | __ADDRESSABLE(sym) \
| ^ ~~~
include/linux/compiler.h:276:2: note: expanded from macro '__ADDRESSABLE'
276 | ___ADDRESSABLE(sym, __section(".discard.addressable"))
| ^ ~~~
include/linux/compiler.h:273:63: note: expanded from macro '___ADDRESSABLE'
273 | __UNIQUE_ID(__PASTE(addressable_, sym)) = (void *)(uintptr_t)&sym;
| ^~~~
>> drivers/iommu/amd/init.c:3804:20: error: expression is not assignable
3804 | amd_iommu_gappi = true;
| ~~~~~~~~~~~~~~~ ^
4 errors generated.
vim +3804 drivers/iommu/amd/init.c
3775
3776 static int __init parse_amd_iommu_options(char *str)
3777 {
3778 if (!str)
3779 return -EINVAL;
3780
3781 while (*str) {
3782 if (strncmp(str, "fullflush", 9) == 0) {
3783 pr_warn("amd_iommu=fullflush deprecated; use iommu.strict=1 instead\n");
3784 iommu_set_dma_strict();
3785 } else if (strncmp(str, "force_enable", 12) == 0) {
3786 amd_iommu_force_enable = true;
3787 } else if (strncmp(str, "off", 3) == 0) {
3788 amd_iommu_disabled = true;
3789 } else if (strncmp(str, "force_isolation", 15) == 0) {
3790 amd_iommu_force_isolation = true;
3791 } else if (strncmp(str, "pgtbl_v1", 8) == 0) {
3792 amd_iommu_pgtable = PD_MODE_V1;
3793 } else if (strncmp(str, "pgtbl_v2", 8) == 0) {
3794 amd_iommu_pgtable = PD_MODE_V2;
3795 } else if (strncmp(str, "irtcachedis", 11) == 0) {
3796 amd_iommu_irtcachedis = true;
3797 } else if (strncmp(str, "nohugepages", 11) == 0) {
3798 pr_info("Restricting V1 page-sizes to 4KiB");
3799 amd_iommu_pgsize_bitmap = AMD_IOMMU_PGSIZES_4K;
3800 } else if (strncmp(str, "v2_pgsizes_only", 15) == 0) {
3801 pr_info("Restricting V1 page-sizes to 4KiB/2MiB/1GiB");
3802 amd_iommu_pgsize_bitmap = AMD_IOMMU_PGSIZES_V2;
3803 } else if (strncmp(str, "gappi", 5) == 0) {
> 3804 amd_iommu_gappi = true;
3805 } else {
3806 pr_notice("Unknown option - '%s'\n", str);
3807 }
3808
3809 str += strcspn(str, ",");
3810 while (*str == ',')
3811 str++;
3812 }
3813
3814 return 1;
3815 }
3816
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20261015064515.10700-8-sarunkod@amd.com>
2026-10-16 8:23 ` [PATCH v5 7/7] iommu/amd: Provide kernel command line option to enable GAPPI kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox