Re: [PATCH 1/4] fpga: altera-pr-ip: Add dummy definitions of API functions
From: kernel test robot
Date: Wed Nov 05 2025 - 02:19:16 EST
Hi Ian,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.18-rc4 next-20251104]
[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/Ian-Abbott/fpga-altera-pr-ip-Add-dummy-definitions-of-API-functions/20251105-000956
base: linus/master
patch link: https://lore.kernel.org/r/20251104153013.154463-2-abbotti%40mev.co.uk
patch subject: [PATCH 1/4] fpga: altera-pr-ip: Add dummy definitions of API functions
config: parisc-randconfig-001-20251105 (https://download.01.org/0day-ci/archive/20251105/202511051513.Wkv71gq0-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 12.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251105/202511051513.Wkv71gq0-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/202511051513.Wkv71gq0-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from drivers/fpga/altera-pr-ip-core.c:11:
>> include/linux/fpga/altera-pr-ip-core.h:11: error: unterminated #ifndef
11 | #ifndef _ALT_PR_IP_CORE_H
|
>> drivers/fpga/altera-pr-ip-core.c:176:5: error: redefinition of 'alt_pr_register'
176 | int alt_pr_register(struct device *dev, void __iomem *reg_base)
| ^~~~~~~~~~~~~~~
include/linux/fpga/altera-pr-ip-core.h:19:19: note: previous definition of 'alt_pr_register' with type 'int(struct device *, void *)'
19 | static inline int alt_pr_register(struct device *dev, void __iomem *reg_base)
| ^~~~~~~~~~~~~~~
--
In file included from altera-pr-ip-core.c:11:
>> include/linux/fpga/altera-pr-ip-core.h:11: error: unterminated #ifndef
11 | #ifndef _ALT_PR_IP_CORE_H
|
altera-pr-ip-core.c:176:5: error: redefinition of 'alt_pr_register'
176 | int alt_pr_register(struct device *dev, void __iomem *reg_base)
| ^~~~~~~~~~~~~~~
include/linux/fpga/altera-pr-ip-core.h:19:19: note: previous definition of 'alt_pr_register' with type 'int(struct device *, void *)'
19 | static inline int alt_pr_register(struct device *dev, void __iomem *reg_base)
| ^~~~~~~~~~~~~~~
vim +11 include/linux/fpga/altera-pr-ip-core.h
d201cc17a8a31c Matthew Gerlach 2017-03-23 @11 #ifndef _ALT_PR_IP_CORE_H
d201cc17a8a31c Matthew Gerlach 2017-03-23 12 #define _ALT_PR_IP_CORE_H
d201cc17a8a31c Matthew Gerlach 2017-03-23 13 #include <linux/io.h>
961ea9f518b406 Ian Abbott 2025-11-04 14 #include <asm/errno.h>
d201cc17a8a31c Matthew Gerlach 2017-03-23 15
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki