Skip to contentSkip to conversation

agp: Make agp_gatt_table static

PATCH New GUO Zihua 2 participants 2 messages Aug 3, 2023 – Aug 4, 2023 Agpgart driver

lore
Share & tools
lore

GUO Zihua

author
#0 lore raw

PATCH 1/1 agp: Make agp_gatt_table static

agp_gatt_table is not referred outside drivers/char/agp/generic.c, so make it static

---
 drivers/char/agp/generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/char/agp/generic.c +1 -1
index 3ffbb1c80c5c..758d11ea2af2 100644
@@ -44,7 +44,7 @@
 #endif
 #include "agp.h"
 
-__u32 *agp_gatt_table;
+static __u32 *agp_gatt_table;
 int agp_memory_reserved;
 
 /*
Signature · 1 line
2.17.1
#1 lore raw
kernel test robot noticed the following build errors:

Hi GUO,

kernel test robot noticed the following build errors:

[auto build test ERROR on next-20230803]

url:    https://github.com/intel-lab-lkp/linux/commits/GUO-Zihua/agp-Make-agp_gatt_table-static/20230803-152304
base:   next-20230803
patch link:    https://lore.kernel.org/r/20230803020820.17414-1-guozihua%40huawei.com
patch subject: [PATCH -next] agp: Make agp_gatt_table static
config: x86_64-buildonly-randconfig-r001-20230731 (https://download.01.org/0day-ci/archive/20230804/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230804/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

ld: vmlinux.o: in function `enable_gart_translations':

>> amd_gart_64.c:(.text+0x57ed5): undefined reference to `agp_gatt_table'
   ld: vmlinux.o: in function `init_amd_gatt':
>> amd_gart_64.c:(.init.text+0x40b96): undefined reference to `agp_gatt_table'
   ld: vmlinux.o: in function `gart_iommu_init':
>> (.init.text+0x411c7): undefined reference to `agp_gatt_table'
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki