* Re: [PATCH 1/1] staging: gpib: gpio: Fix memory allocation style in gpib_bitbang.c
2025-04-21 18:41 [PATCH 1/1] staging: gpib: gpio: Fix memory allocation style in gpib_bitbang.c Marwin Hormiz
@ 2025-04-22 2:09 ` kernel test robot
2025-04-22 6:19 ` Arnd Bergmann
2025-04-22 6:33 ` kernel test robot
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-04-22 2:09 UTC (permalink / raw)
To: Marwin Hormiz, dpenkler, gregkh
Cc: llvm, oe-kbuild-all, dan.carpenter, matchstick, arnd,
niharchaithanya, linux-staging, linux-kernel, Marwin Hormiz
Hi Marwin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Marwin-Hormiz/staging-gpib-gpio-Fix-memory-allocation-style-in-gpib_bitbang-c/20250422-024547
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20250421184144.220972-1-marwinhormiz%40gmail.com
patch subject: [PATCH 1/1] staging: gpib: gpio: Fix memory allocation style in gpib_bitbang.c
config: i386-buildonly-randconfig-001-20250422 (https://download.01.org/0day-ci/archive/20250422/202504220954.L1QvhSdD-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250422/202504220954.L1QvhSdD-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/202504220954.L1QvhSdD-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/staging/gpib/gpio/gpib_bitbang.c:380:29: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
380 | dbg_printk(3, ".........." LINFMT "\n", LINVAL);
| ^~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:54:32: note: expanded from macro 'LINFMT'
54 | #define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
| ~^
drivers/staging/gpib/gpio/gpib_bitbang.c:47:29: note: expanded from macro 'dbg_printk'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~
include/linux/dev_printk.h:171:41: note: expanded from macro 'dev_dbg'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:41: note: expanded from macro 'pr_fmt'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~
include/linux/dev_printk.h:139:28: note: expanded from macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:454:7: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
454 | LINFMT ".\n", val, priv->dav_rx, priv->w_cnt, priv->length,
| ^~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:54:32: note: expanded from macro 'LINFMT'
54 | #define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
| ~^
drivers/staging/gpib/gpio/gpib_bitbang.c:47:29: note: expanded from macro 'dbg_printk'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~
include/linux/dev_printk.h:171:41: note: expanded from macro 'dev_dbg'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:41: note: expanded from macro 'pr_fmt'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~
include/linux/dev_printk.h:139:28: note: expanded from macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:550:49: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
550 | dbg_printk(1, "timeout after %zu/%zu at %d " LINFMT " eoi: %d\n",
| ^~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:54:42: note: expanded from macro 'LINFMT'
54 | #define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
| ~^
drivers/staging/gpib/gpio/gpib_bitbang.c:47:29: note: expanded from macro 'dbg_printk'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~
include/linux/dev_printk.h:171:41: note: expanded from macro 'dev_dbg'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:41: note: expanded from macro 'pr_fmt'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~
include/linux/dev_printk.h:139:28: note: expanded from macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:610:70: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
610 | dbg_printk(1, "out of order interrupt after %zu/%zu at %d cmd %d " LINFMT ".\n",
| ^~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:54:32: note: expanded from macro 'LINFMT'
54 | #define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
| ~^
drivers/staging/gpib/gpio/gpib_bitbang.c:47:29: note: expanded from macro 'dbg_printk'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~
include/linux/dev_printk.h:171:41: note: expanded from macro 'dev_dbg'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:41: note: expanded from macro 'pr_fmt'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~
include/linux/dev_printk.h:139:28: note: expanded from macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:617:49: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
617 | dbg_printk(1, "DAV low after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:54:32: note: expanded from macro 'LINFMT'
54 | #define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
| ~^
drivers/staging/gpib/gpio/gpib_bitbang.c:47:29: note: expanded from macro 'dbg_printk'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~
include/linux/dev_printk.h:171:41: note: expanded from macro 'dev_dbg'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:41: note: expanded from macro 'pr_fmt'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~
include/linux/dev_printk.h:139:28: note: expanded from macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:687:50: warning: more '%' conversions than data arguments [-Wformat-insufficient-args]
687 | dbg_printk(1, "DAV high after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:54:32: note: expanded from macro 'LINFMT'
54 | #define LINFMT "DAV: %d NRFD:%d NDAC: %d SRQ: %d"
| ~^
drivers/staging/gpib/gpio/gpib_bitbang.c:47:29: note: expanded from macro 'dbg_printk'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~
include/linux/dev_printk.h:171:41: note: expanded from macro 'dev_dbg'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
vim +380 drivers/staging/gpib/gpio/gpib_bitbang.c
4cd654f847693c2 Dave Penkler 2024-09-18 350
4cd654f847693c2 Dave Penkler 2024-09-18 351 /***************************************************************************
4cd654f847693c2 Dave Penkler 2024-09-18 352 * *
4cd654f847693c2 Dave Penkler 2024-09-18 353 * READ *
4cd654f847693c2 Dave Penkler 2024-09-18 354 * *
4cd654f847693c2 Dave Penkler 2024-09-18 355 ***************************************************************************/
4cd654f847693c2 Dave Penkler 2024-09-18 356
aa7f3b35ac16fd4 Michael Rubin 2025-04-17 357 static int bb_read(struct gpib_board *board, u8 *buffer, size_t length,
4cd654f847693c2 Dave Penkler 2024-09-18 358 int *end, size_t *bytes_read)
4cd654f847693c2 Dave Penkler 2024-09-18 359 {
4cd654f847693c2 Dave Penkler 2024-09-18 360 struct bb_priv *priv = board->private_data;
4cd654f847693c2 Dave Penkler 2024-09-18 361 unsigned long flags;
4cd654f847693c2 Dave Penkler 2024-09-18 362 int retval = 0;
4cd654f847693c2 Dave Penkler 2024-09-18 363
4cd654f847693c2 Dave Penkler 2024-09-18 364 ACT_LED_ON;
4cd654f847693c2 Dave Penkler 2024-09-18 365 SET_DIR_READ(priv);
4cd654f847693c2 Dave Penkler 2024-09-18 366
4cd654f847693c2 Dave Penkler 2024-09-18 367 dbg_printk(2, "board: %p lock %d length: %zu\n",
4cd654f847693c2 Dave Penkler 2024-09-18 368 board, mutex_is_locked(&board->user_mutex), length);
4cd654f847693c2 Dave Penkler 2024-09-18 369
4cd654f847693c2 Dave Penkler 2024-09-18 370 priv->end = 0;
4cd654f847693c2 Dave Penkler 2024-09-18 371 priv->count = 0;
4cd654f847693c2 Dave Penkler 2024-09-18 372 priv->rbuf = buffer;
4cd654f847693c2 Dave Penkler 2024-09-18 373 if (length == 0)
4cd654f847693c2 Dave Penkler 2024-09-18 374 goto read_end;
4cd654f847693c2 Dave Penkler 2024-09-18 375 priv->request = length;
4cd654f847693c2 Dave Penkler 2024-09-18 376 priv->eos_check = (priv->eos_flags & REOS) == 0; /* do eos check */
4cd654f847693c2 Dave Penkler 2024-09-18 377 priv->eos_check_8 = priv->eos_flags & BIN; /* over 8 bits */
4cd654f847693c2 Dave Penkler 2024-09-18 378 priv->eos_mask_7 = priv->eos & 0x7f; /* with this 7 bit eos */
4cd654f847693c2 Dave Penkler 2024-09-18 379
4cd654f847693c2 Dave Penkler 2024-09-18 @380 dbg_printk(3, ".........." LINFMT "\n", LINVAL);
4cd654f847693c2 Dave Penkler 2024-09-18 381
4cd654f847693c2 Dave Penkler 2024-09-18 382 spin_lock_irqsave(&priv->rw_lock, flags);
4cd654f847693c2 Dave Penkler 2024-09-18 383 priv->dav_mode = 1;
4cd654f847693c2 Dave Penkler 2024-09-18 384 priv->dav_rx = 1;
4cd654f847693c2 Dave Penkler 2024-09-18 385 ENABLE_IRQ(priv->irq_DAV, IRQ_TYPE_LEVEL_LOW);
4cd654f847693c2 Dave Penkler 2024-09-18 386 priv->end_flag = 0;
4cd654f847693c2 Dave Penkler 2024-09-18 387 gpiod_set_value(NRFD, 1); // ready for data
4cd654f847693c2 Dave Penkler 2024-09-18 388 priv->r_busy = 1;
4cd654f847693c2 Dave Penkler 2024-09-18 389 priv->phase = 100;
4cd654f847693c2 Dave Penkler 2024-09-18 390 spin_unlock_irqrestore(&priv->rw_lock, flags);
4cd654f847693c2 Dave Penkler 2024-09-18 391
4cd654f847693c2 Dave Penkler 2024-09-18 392 /* wait for the interrupt routines finish their work */
4cd654f847693c2 Dave Penkler 2024-09-18 393
4cd654f847693c2 Dave Penkler 2024-09-18 394 retval = wait_event_interruptible(board->wait,
4cd654f847693c2 Dave Penkler 2024-09-18 395 (priv->end_flag || board->status & TIMO));
4cd654f847693c2 Dave Penkler 2024-09-18 396
4cd654f847693c2 Dave Penkler 2024-09-18 397 dbg_printk(3, "awake from wait queue: %d\n", retval);
4cd654f847693c2 Dave Penkler 2024-09-18 398
4cd654f847693c2 Dave Penkler 2024-09-18 399 if (retval == 0 && board->status & TIMO) {
4cd654f847693c2 Dave Penkler 2024-09-18 400 retval = -ETIMEDOUT;
4cd654f847693c2 Dave Penkler 2024-09-18 401 dbg_printk(1, "timeout\n");
4cd654f847693c2 Dave Penkler 2024-09-18 402 } else if (retval) {
4cd654f847693c2 Dave Penkler 2024-09-18 403 retval = -ERESTARTSYS;
4cd654f847693c2 Dave Penkler 2024-09-18 404 }
4cd654f847693c2 Dave Penkler 2024-09-18 405
4cd654f847693c2 Dave Penkler 2024-09-18 406 DISABLE_IRQ(priv->irq_DAV);
4cd654f847693c2 Dave Penkler 2024-09-18 407 spin_lock_irqsave(&priv->rw_lock, flags);
4cd654f847693c2 Dave Penkler 2024-09-18 408 gpiod_set_value(NRFD, 0); // DIR_READ line state
4cd654f847693c2 Dave Penkler 2024-09-18 409 priv->r_busy = 0;
4cd654f847693c2 Dave Penkler 2024-09-18 410 spin_unlock_irqrestore(&priv->rw_lock, flags);
4cd654f847693c2 Dave Penkler 2024-09-18 411
4cd654f847693c2 Dave Penkler 2024-09-18 412 read_end:
4cd654f847693c2 Dave Penkler 2024-09-18 413 ACT_LED_OFF;
4cd654f847693c2 Dave Penkler 2024-09-18 414 *bytes_read = priv->count;
4cd654f847693c2 Dave Penkler 2024-09-18 415 *end = priv->end;
4cd654f847693c2 Dave Penkler 2024-09-18 416 priv->r_busy = 0;
4cd654f847693c2 Dave Penkler 2024-09-18 417 dbg_printk(2, "return: %d eoi|eos: %d count: %d\n\n", retval, priv->end, priv->count);
4cd654f847693c2 Dave Penkler 2024-09-18 418 return retval;
4cd654f847693c2 Dave Penkler 2024-09-18 419 }
4cd654f847693c2 Dave Penkler 2024-09-18 420
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 1/1] staging: gpib: gpio: Fix memory allocation style in gpib_bitbang.c
2025-04-21 18:41 [PATCH 1/1] staging: gpib: gpio: Fix memory allocation style in gpib_bitbang.c Marwin Hormiz
2025-04-22 2:09 ` kernel test robot
2025-04-22 6:19 ` Arnd Bergmann
@ 2025-04-22 6:33 ` kernel test robot
2 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2025-04-22 6:33 UTC (permalink / raw)
To: Marwin Hormiz, dpenkler, gregkh
Cc: oe-kbuild-all, dan.carpenter, matchstick, arnd, niharchaithanya,
linux-staging, linux-kernel, Marwin Hormiz
Hi Marwin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/intel-lab-lkp/linux/commits/Marwin-Hormiz/staging-gpib-gpio-Fix-memory-allocation-style-in-gpib_bitbang-c/20250422-024547
base: staging/staging-testing
patch link: https://lore.kernel.org/r/20250421184144.220972-1-marwinhormiz%40gmail.com
patch subject: [PATCH 1/1] staging: gpib: gpio: Fix memory allocation style in gpib_bitbang.c
config: nios2-randconfig-002-20250422 (https://download.01.org/0day-ci/archive/20250422/202504221447.i7O7WGlW-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250422/202504221447.i7O7WGlW-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/202504221447.i7O7WGlW-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from drivers/staging/gpib/include/gpib_types.h:13,
from drivers/staging/gpib/include/gpibP.h:12,
from drivers/staging/gpib/gpio/gpib_bitbang.c:56:
drivers/staging/gpib/gpio/gpib_bitbang.c: In function 'bb_read':
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:380:9: note: in expansion of macro 'dbg_printk'
380 | dbg_printk(3, ".........." LINFMT "\n", LINVAL);
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:380:9: note: in expansion of macro 'dbg_printk'
380 | dbg_printk(3, ".........." LINFMT "\n", LINVAL);
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:380:9: note: in expansion of macro 'dbg_printk'
380 | dbg_printk(3, ".........." LINFMT "\n", LINVAL);
| ^~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c: In function 'bb_DAV_interrupt':
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:453:17: note: in expansion of macro 'dbg_printk'
453 | dbg_printk(1, "out of order DAV interrupt %d/%d after %zu/%zu at %d cmd %d "
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:453:17: note: in expansion of macro 'dbg_printk'
453 | dbg_printk(1, "out of order DAV interrupt %d/%d after %zu/%zu at %d cmd %d "
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:453:17: note: in expansion of macro 'dbg_printk'
453 | dbg_printk(1, "out of order DAV interrupt %d/%d after %zu/%zu at %d cmd %d "
| ^~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c: In function 'bb_write':
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:550:25: note: in expansion of macro 'dbg_printk'
550 | dbg_printk(1, "timeout after %zu/%zu at %d " LINFMT " eoi: %d\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:550:25: note: in expansion of macro 'dbg_printk'
550 | dbg_printk(1, "timeout after %zu/%zu at %d " LINFMT " eoi: %d\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:550:25: note: in expansion of macro 'dbg_printk'
550 | dbg_printk(1, "timeout after %zu/%zu at %d " LINFMT " eoi: %d\n",
| ^~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c: In function 'bb_NRFD_interrupt':
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:610:17: note: in expansion of macro 'dbg_printk'
610 | dbg_printk(1, "out of order interrupt after %zu/%zu at %d cmd %d " LINFMT ".\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:610:17: note: in expansion of macro 'dbg_printk'
610 | dbg_printk(1, "out of order interrupt after %zu/%zu at %d cmd %d " LINFMT ".\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:610:17: note: in expansion of macro 'dbg_printk'
610 | dbg_printk(1, "out of order interrupt after %zu/%zu at %d cmd %d " LINFMT ".\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:617:17: note: in expansion of macro 'dbg_printk'
617 | dbg_printk(1, "DAV low after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:617:17: note: in expansion of macro 'dbg_printk'
617 | dbg_printk(1, "DAV low after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:617:17: note: in expansion of macro 'dbg_printk'
617 | dbg_printk(1, "DAV low after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c: In function 'bb_NDAC_interrupt':
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:687:17: note: in expansion of macro 'dbg_printk'
687 | dbg_printk(1, "DAV high after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:687:17: note: in expansion of macro 'dbg_printk'
687 | dbg_printk(1, "DAV high after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~~~~~
>> <command-line>: warning: format '%d' expects a matching 'int' argument [-Wformat=]
include/linux/dev_printk.h:139:49: note: in definition of macro 'dev_no_printk'
139 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \
| ^~~
drivers/staging/gpib/gpio/gpib_bitbang.c:28:21: note: in expansion of macro 'KBUILD_MODNAME'
28 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
| ^~~~~~~~~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:29:17: note: in expansion of macro 'pr_fmt'
29 | #define dev_fmt pr_fmt
| ^~~~~~
include/linux/dev_printk.h:171:40: note: in expansion of macro 'dev_fmt'
171 | dev_no_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:47:25: note: in expansion of macro 'dev_dbg'
47 | dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
| ^~~~~~~
drivers/staging/gpib/gpio/gpib_bitbang.c:687:17: note: in expansion of macro 'dbg_printk'
687 | dbg_printk(1, "DAV high after %zu/%zu cmd %d " LINFMT ". No action.\n",
| ^~~~~~~~~~
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread