llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [morimoto:string-helper-2025-07-18 135/157] drivers/md/dm-vdo/vdo.c:1376:36: error: call to undeclared function 'str_enabled_disabled'; ISO C99 and later do not support implicit function declarations
@ 2025-07-18 18:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-18 18:20 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/morimoto/linux string-helper-2025-07-18
head:   ea52943b017c3b53f3f8c9ff679ccfb8eaae222a
commit: 76ff9a5ac5f25b351b7ecc7743f4910aceb7bd1d [135/157] dm vdo: use string choices helper
config: s390-randconfig-001-20250718 (https://download.01.org/0day-ci/archive/20250719/202507190253.z3mxU8Ux-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 16534d19bf50bde879a83f0ae62875e2c5120e64)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250719/202507190253.z3mxU8Ux-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/202507190253.z3mxU8Ux-lkp@intel.com/

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

>> drivers/md/dm-vdo/vdo.c:1376:36: error: call to undeclared function 'str_enabled_disabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1376 |         vdo_log_info("compression is %s", str_enabled_disabled(*enable));
         |                                           ^
>> drivers/md/dm-vdo/vdo.c:1376:36: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
    1376 |         vdo_log_info("compression is %s", str_enabled_disabled(*enable));
         |                                      ~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                      %d
   drivers/md/dm-vdo/logger.h:91:57: note: expanded from macro 'vdo_log_info'
      91 | #define vdo_log_info(...) vdo_log_message(VDO_LOG_INFO, __VA_ARGS__)
         |                                                         ^~~~~~~~~~~
   drivers/md/dm-vdo/logger.h:84:55: note: expanded from macro 'vdo_log_message'
      84 |         __vdo_log_message(priority, VDO_LOGGING_MODULE_NAME, __VA_ARGS__)
         |                                                              ^~~~~~~~~~~
   1 warning and 1 error generated.
--
>> drivers/md/dm-vdo/dm-vdo-target.c:2399:37: error: call to undeclared function 'str_enabled_disabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2399 |                 vdo_log_info("compression is %s", str_enabled_disabled(enable));
         |                                                   ^
>> drivers/md/dm-vdo/dm-vdo-target.c:2399:37: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
    2399 |                 vdo_log_info("compression is %s", str_enabled_disabled(enable));
         |                                              ~~   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                              %d
   drivers/md/dm-vdo/logger.h:91:57: note: expanded from macro 'vdo_log_info'
      91 | #define vdo_log_info(...) vdo_log_message(VDO_LOG_INFO, __VA_ARGS__)
         |                                                         ^~~~~~~~~~~
   drivers/md/dm-vdo/logger.h:84:55: note: expanded from macro 'vdo_log_message'
      84 |         __vdo_log_message(priority, VDO_LOGGING_MODULE_NAME, __VA_ARGS__)
         |                                                              ^~~~~~~~~~~
   1 warning and 1 error generated.


vim +/str_enabled_disabled +1376 drivers/md/dm-vdo/vdo.c

  1357	
  1358	/**
  1359	 * set_compression_callback() - Callback to turn compression on or off.
  1360	 * @completion: The completion.
  1361	 */
  1362	static void set_compression_callback(struct vdo_completion *completion)
  1363	{
  1364		struct vdo *vdo = completion->vdo;
  1365		bool *enable = completion->parent;
  1366		bool was_enabled = vdo_get_compressing(vdo);
  1367	
  1368		if (*enable != was_enabled) {
  1369			WRITE_ONCE(vdo->compressing, *enable);
  1370			if (was_enabled) {
  1371				/* Signal the packer to flush since compression has been disabled. */
  1372				vdo_flush_packer(vdo->packer);
  1373			}
  1374		}
  1375	
> 1376		vdo_log_info("compression is %s", str_enabled_disabled(*enable));
  1377		*enable = was_enabled;
  1378		complete_synchronous_action(completion);
  1379	}
  1380	

-- 
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:21 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:20 [morimoto:string-helper-2025-07-18 135/157] drivers/md/dm-vdo/vdo.c:1376:36: error: call to undeclared function 'str_enabled_disabled'; ISO C99 and later do not support implicit function declarations 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).