Re: [PATCH V3 6/6] gpib: Destage gpib

kernel test robot
2025-11-14T06:47:02Z

Hi Dave,

kernel test robot noticed the following build errors:

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on staging/staging-next staging/staging-linus linus/master v6.18-rc5 next-20251113]
[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/Dave-Penkler/staging-Remove-gpib-build-from-staging/20251113-185632
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20251113104543.5875-7-dpenkler%40gmail.com
patch subject: [PATCH V3 6/6] gpib: Destage gpib
config: s390-randconfig-001-20251114 (https://download.01.org/0day-ci/archive/20251114/202511140903.9SwzxDDp-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251114/202511140903.9SwzxDDp-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/202511140903.9SwzxDDp-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

drivers/gpib/eastwood/fluke_gpib.c: In function 'fluke_attach_impl':
>> drivers/gpib/eastwood/fluke_gpib.c:1002:23: error: implicit declaration of function 'ioremap'; did you mean 'iounmap'? [-Werror=implicit-function-declaration]
nec_priv->mmiobase = ioremap(e_priv->gpib_iomem_res->start,
^~~~~~~
iounmap
>> drivers/gpib/eastwood/fluke_gpib.c:1002:21: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
nec_priv->mmiobase = ioremap(e_priv->gpib_iomem_res->start,
^
drivers/gpib/eastwood/fluke_gpib.c:1036:33: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
e_priv->write_transfer_counter = ioremap(e_priv->write_transfer_counter_res->start,
^
cc1: some warnings being treated as errors

vim +1002 drivers/gpib/eastwood/fluke_gpib.c

55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 962
4800ec89999049 drivers/staging/gpib/eastwood/fluke_gpib.c Michael Rubin 2025-04-08 963 static int fluke_attach_impl(struct gpib_board *board, const struct gpib_board_config *config,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 964 unsigned int handshake_mode)
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 965 {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 966 struct fluke_priv *e_priv;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 967 struct nec7210_priv *nec_priv;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 968 int isr_flags = 0;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 969 int retval;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 970 int irq;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 971 struct resource *res;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 972 dma_cap_mask_t dma_cap;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 973
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 974 if (!fluke_gpib_pdev) {
f2bda0b660bd37 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2025-02-14 975 dev_err(board->gpib_dev, "No fluke device was found, attach failed.\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 976 return -ENODEV;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 977 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 978
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 979 retval = fluke_generic_attach(board);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 980 if (retval)
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 981 return retval;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 982
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 983 e_priv = board->private_data;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 984 nec_priv = &e_priv->nec7210_priv;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 985 nec_priv->offset = fluke_reg_offset;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 986 board->dev = &fluke_gpib_pdev->dev;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 987
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 988 res = platform_get_resource(fluke_gpib_pdev, IORESOURCE_MEM, 0);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 989 if (!res) {
f2bda0b660bd37 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2025-02-14 990 dev_err(&fluke_gpib_pdev->dev, "Unable to locate mmio resource\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 991 return -ENODEV;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 992 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 993
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 994 if (request_mem_region(res->start,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 995 resource_size(res),
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 996 fluke_gpib_pdev->name) == NULL) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 997 dev_err(&fluke_gpib_pdev->dev, "cannot claim registers\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 998 return -ENXIO;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 999 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1000 e_priv->gpib_iomem_res = res;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1001
baf8855c916007 drivers/staging/gpib/eastwood/fluke_gpib.c Arnd Bergmann 2024-12-13 @1002 nec_priv->mmiobase = ioremap(e_priv->gpib_iomem_res->start,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1003 resource_size(e_priv->gpib_iomem_res));
baf8855c916007 drivers/staging/gpib/eastwood/fluke_gpib.c Arnd Bergmann 2024-12-13 1004 if (!nec_priv->mmiobase) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1005 dev_err(&fluke_gpib_pdev->dev, "Could not map I/O memory\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1006 return -ENOMEM;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1007 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1008
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1009 res = platform_get_resource(fluke_gpib_pdev, IORESOURCE_MEM, 1);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1010 if (!res) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1011 dev_err(&fluke_gpib_pdev->dev, "Unable to locate mmio resource for gpib dma port\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1012 return -ENODEV;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1013 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1014 if (request_mem_region(res->start,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1015 resource_size(res),
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1016 fluke_gpib_pdev->name) == NULL) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1017 dev_err(&fluke_gpib_pdev->dev, "cannot claim registers\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1018 return -ENXIO;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1019 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1020 e_priv->dma_port_res = res;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1021
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1022 res = platform_get_resource(fluke_gpib_pdev, IORESOURCE_MEM, 2);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1023 if (!res) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1024 dev_err(&fluke_gpib_pdev->dev, "Unable to locate mmio resource for write transfer counter\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1025 return -ENODEV;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1026 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1027
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1028 if (request_mem_region(res->start,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1029 resource_size(res),
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1030 fluke_gpib_pdev->name) == NULL) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1031 dev_err(&fluke_gpib_pdev->dev, "cannot claim registers\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1032 return -ENXIO;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1033 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1034 e_priv->write_transfer_counter_res = res;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1035
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1036 e_priv->write_transfer_counter = ioremap(e_priv->write_transfer_counter_res->start,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1037 resource_size(e_priv->write_transfer_counter_res));
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1038 if (!e_priv->write_transfer_counter) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1039 dev_err(&fluke_gpib_pdev->dev, "Could not map I/O memory\n");
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1040 return -ENOMEM;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1041 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1042
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1043 irq = platform_get_irq(fluke_gpib_pdev, 0);
51ab134daf5b9b drivers/staging/gpib/eastwood/fluke_gpib.c Chen Ni 2025-04-07 1044 if (irq < 0)
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1045 return -EBUSY;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1046 retval = request_irq(irq, fluke_gpib_interrupt, isr_flags, fluke_gpib_pdev->name, board);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1047 if (retval) {
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1048 dev_err(&fluke_gpib_pdev->dev,
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1049 "cannot register interrupt handler err=%d\n",
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1050 retval);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1051 return retval;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1052 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1053 e_priv->irq = irq;
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1054
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1055 dma_cap_zero(dma_cap);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1056 dma_cap_set(DMA_SLAVE, dma_cap);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1057 e_priv->dma_channel = dma_request_channel(dma_cap, gpib_dma_channel_filter, NULL);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1058 if (!e_priv->dma_channel) {
f2bda0b660bd37 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2025-02-14 1059 dev_err(board->gpib_dev, "failed to allocate a dma channel.\n");
073b54f342be3e drivers/staging/gpib/eastwood/fluke_gpib.c Paul Retourné 2025-04-11 1060 /*
073b54f342be3e drivers/staging/gpib/eastwood/fluke_gpib.c Paul Retourné 2025-04-11 1061 * we don't error out here because unaccel interface will still
073b54f342be3e drivers/staging/gpib/eastwood/fluke_gpib.c Paul Retourné 2025-04-11 1062 * work without dma
073b54f342be3e drivers/staging/gpib/eastwood/fluke_gpib.c Paul Retourné 2025-04-11 1063 */
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1064 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1065
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1066 return fluke_init(e_priv, board, handshake_mode);
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1067 }
55936779f49612 drivers/staging/gpib/eastwood/fluke_gpib.c Dave Penkler 2024-09-18 1068

--
0-DAY CI Kernel Test Service