Re: [PATCH v1 3/6] vfio/nvgrace-gpu: Add support for huge pfnmap

From: kernel test robot
Date: Tue Nov 18 2025 - 01:13:08 EST


Hi,

kernel test robot noticed the following build warnings:

[auto build test WARNING on awilliam-vfio/next]
[also build test WARNING on awilliam-vfio/for-linus linus/master v6.18-rc6 next-20251118]
[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/ankita-nvidia-com/vfio-nvgrace-gpu-Use-faults-to-map-device-memory/20251117-205950
base: https://github.com/awilliam/linux-vfio.git next
patch link: https://lore.kernel.org/r/20251117124159.3560-4-ankita%40nvidia.com
patch subject: [PATCH v1 3/6] vfio/nvgrace-gpu: Add support for huge pfnmap
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20251118/202511181317.hOMn5k0o-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251118/202511181317.hOMn5k0o-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511181317.hOMn5k0o-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

drivers/vfio/pci/nvgrace-gpu/main.c: In function 'nvgrace_gpu_aligned_devmem_size':
>> drivers/vfio/pci/nvgrace-gpu/main.c:179:7: warning: 'CONFIG_ARCH_SUPPORTS_PUD_PFNMAP' is not defined, evaluates to '0' [-Wundef]
179 | #elif CONFIG_ARCH_SUPPORTS_PUD_PFNMAP
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +179 drivers/vfio/pci/nvgrace-gpu/main.c

174
175 static size_t nvgrace_gpu_aligned_devmem_size(size_t memlength)
176 {
177 #ifdef CONFIG_ARCH_SUPPORTS_PMD_PFNMAP
178 return ALIGN(memlength, PMD_SIZE);
> 179 #elif CONFIG_ARCH_SUPPORTS_PUD_PFNMAP
180 return ALIGN(memlength, PUD_SIZE);
181 #endif
182 return memlength;
183 }
184

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki