oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [morimoto:string-helper-2025-07-18 136/157] drivers/media/common/siano/sms-cards.c:329:44: error: implicit declaration of function 'str_enabled_disabled'
@ 2025-07-18 18:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-18 18:31 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: oe-kbuild-all

tree:   https://github.com/morimoto/linux string-helper-2025-07-18
head:   ea52943b017c3b53f3f8c9ff679ccfb8eaae222a
commit: bf2663b3eae3cf21e2f2c35e996e77f225cbd468 [136/157] media: siano: use string choices helper
config: csky-randconfig-002-20250718 (https://download.01.org/0day-ci/archive/20250719/202507190229.9bI0Z6yb-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190229.9bI0Z6yb-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/202507190229.9bI0Z6yb-lkp@intel.com/

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

   In file included from include/linux/printk.h:623,
                    from include/asm-generic/bug.h:28,
                    from arch/csky/include/asm/bug.h:18,
                    from include/linux/bug.h:5,
                    from include/linux/thread_info.h:13,
                    from include/asm-generic/current.h:6,
                    from ./arch/csky/include/generated/asm/current.h:1,
                    from include/linux/sched.h:12,
                    from include/linux/ratelimit.h:6,
                    from include/linux/dev_printk.h:16,
                    from include/linux/device.h:15,
                    from drivers/media/common/siano/smscoreapi.h:16,
                    from drivers/media/common/siano/sms-cards.h:11,
                    from drivers/media/common/siano/sms-cards.c:8:
   drivers/media/common/siano/sms-cards.c: In function 'sms_board_lna_control':
>> drivers/media/common/siano/sms-cards.c:329:44: error: implicit declaration of function 'str_enabled_disabled' [-Wimplicit-function-declaration]
     329 |         pr_debug("%s: LNA %s\n", __func__, str_enabled_disabled(onoff));
         |                                            ^~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:224:29: note: in definition of macro '__dynamic_func_call_cls'
     224 |                 func(&id, ##__VA_ARGS__);                       \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls'
     250 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call'
     269 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:638:9: note: in expansion of macro 'dynamic_pr_debug'
     638 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/media/common/siano/sms-cards.c:329:9: note: in expansion of macro 'pr_debug'
     329 |         pr_debug("%s: LNA %s\n", __func__, str_enabled_disabled(onoff));
         |         ^~~~~~~~
>> drivers/media/common/siano/smscoreapi.h:14:21: warning: format '%s' expects argument of type 'char *', but argument 6 has type 'int' [-Wformat=]
      14 | #define pr_fmt(fmt) "%s:%s: " fmt, KBUILD_MODNAME, __func__
         |                     ^~~~~~~~~
   include/linux/dynamic_debug.h:224:29: note: in expansion of macro 'pr_fmt'
     224 |                 func(&id, ##__VA_ARGS__);                       \
         |                             ^~~~~~~~~~~
   include/linux/dynamic_debug.h:248:9: note: in expansion of macro '__dynamic_func_call_cls'
     248 |         __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:250:9: note: in expansion of macro '_dynamic_func_call_cls'
     250 |         _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:269:9: note: in expansion of macro '_dynamic_func_call'
     269 |         _dynamic_func_call(fmt, __dynamic_pr_debug,             \
         |         ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:638:9: note: in expansion of macro 'dynamic_pr_debug'
     638 |         dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |         ^~~~~~~~~~~~~~~~
   drivers/media/common/siano/sms-cards.c:329:9: note: in expansion of macro 'pr_debug'
     329 |         pr_debug("%s: LNA %s\n", __func__, str_enabled_disabled(onoff));
         |         ^~~~~~~~


vim +/str_enabled_disabled +329 drivers/media/common/siano/sms-cards.c

   323	
   324	int sms_board_lna_control(struct smscore_device_t *coredev, int onoff)
   325	{
   326		int board_id = smscore_get_board_id(coredev);
   327		struct sms_board *board = sms_get_board(board_id);
   328	
 > 329		pr_debug("%s: LNA %s\n", __func__, str_enabled_disabled(onoff));
   330	
   331		switch (board_id) {
   332		case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD_R2:
   333		case SMS1XXX_BOARD_HAUPPAUGE_TIGER_MINICARD:
   334			sms_set_gpio(coredev,
   335				     board->rf_switch, onoff ? 1 : 0);
   336			return sms_set_gpio(coredev,
   337					    board->lna_ctrl, onoff ? 1 : 0);
   338		}
   339		return -EINVAL;
   340	}
   341	EXPORT_SYMBOL_GPL(sms_board_lna_control);
   342	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-18 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18 18:31 [morimoto:string-helper-2025-07-18 136/157] drivers/media/common/siano/sms-cards.c:329:44: error: implicit declaration of function 'str_enabled_disabled' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).