All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:sysfs-seq 11/13] block/mq-deadline.c:813:2: error: implicit declaration of function 'seq_printf'; did you mean 'scnprintf'?
@ 2021-09-03 15:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-03 15:22 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3330 bytes --]

tree:   git://git.infradead.org/users/hch/misc.git sysfs-seq
head:   f56471a295c5c63a0a900d5a4211a74368068f3b
commit: 0e69e423b09a17f0f104216f7936e8d7f163f75a [11/13] block: convert the elevator_queue attrs to use ->seq_show
config: um-x86_64_defconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc sysfs-seq
        git checkout 0e69e423b09a17f0f104216f7936e8d7f163f75a
        # save the attached .config to linux build tree
        make W=1 ARCH=um SUBARCH=x86_64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   block/mq-deadline.c: In function 'deadline_read_expire_show':
>> block/mq-deadline.c:813:2: error: implicit declaration of function 'seq_printf'; did you mean 'scnprintf'? [-Werror=implicit-function-declaration]
     813 |  seq_printf(sf, "%d\n", __VAR);     \
         |  ^~~~~~~~~~
   block/mq-deadline.c:815:37: note: in expansion of macro 'SHOW_INT'
     815 | #define SHOW_JIFFIES(__FUNC, __VAR) SHOW_INT(__FUNC, jiffies_to_msecs(__VAR))
         |                                     ^~~~~~~~
   block/mq-deadline.c:816:1: note: in expansion of macro 'SHOW_JIFFIES'
     816 | SHOW_JIFFIES(deadline_read_expire_show, dd->fifo_expire[DD_READ]);
         | ^~~~~~~~~~~~
   At top level:
   block/mq-deadline.c:274:12: warning: 'dd_queued' defined but not used [-Wunused-function]
     274 | static u32 dd_queued(struct deadline_data *dd, enum dd_prio prio)
         |            ^~~~~~~~~
   cc1: some warnings being treated as errors
--
   block/kyber-iosched.c: In function 'kyber_read_lat_show':
>> block/kyber-iosched.c:865:2: error: implicit declaration of function 'seq_printf'; did you mean 'scnprintf'? [-Werror=implicit-function-declaration]
     865 |  seq_printf(sf, "%llu\n", kqd->latency_targets[domain]);  \
         |  ^~~~~~~~~~
   block/kyber-iosched.c:883:1: note: in expansion of macro 'KYBER_LAT_SHOW_STORE'
     883 | KYBER_LAT_SHOW_STORE(KYBER_READ, read);
         | ^~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +813 block/mq-deadline.c

   804	
   805	/*
   806	 * sysfs parts below
   807	 */
   808	#define SHOW_INT(__FUNC, __VAR)						\
   809	static void __FUNC(struct elevator_queue *e, struct seq_file *sf)	\
   810	{									\
   811		struct deadline_data *dd = e->elevator_data;			\
   812										\
 > 813		seq_printf(sf, "%d\n", __VAR);					\
   814	}
   815	#define SHOW_JIFFIES(__FUNC, __VAR) SHOW_INT(__FUNC, jiffies_to_msecs(__VAR))
   816	SHOW_JIFFIES(deadline_read_expire_show, dd->fifo_expire[DD_READ]);
   817	SHOW_JIFFIES(deadline_write_expire_show, dd->fifo_expire[DD_WRITE]);
   818	SHOW_INT(deadline_writes_starved_show, dd->writes_starved);
   819	SHOW_INT(deadline_front_merges_show, dd->front_merges);
   820	SHOW_INT(deadline_async_depth_show, dd->front_merges);
   821	SHOW_INT(deadline_fifo_batch_show, dd->fifo_batch);
   822	#undef SHOW_INT
   823	#undef SHOW_JIFFIES
   824	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 9624 bytes --]

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

only message in thread, other threads:[~2021-09-03 15:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 15:22 [hch-misc:sysfs-seq 11/13] block/mq-deadline.c:813:2: error: implicit declaration of function 'seq_printf'; did you mean 'scnprintf'? kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.