All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch-misc:sysfs-seq 11/13] block/kyber-iosched.c:883:1: error: implicit declaration of function 'seq_printf'
@ 2021-09-05  3:55 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-05  3:55 UTC (permalink / raw)
  To: kbuild-all

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

tree:   git://git.infradead.org/users/hch/misc.git sysfs-seq
head:   897332e5c71868590ffb18cbd29dfa76028771e3
commit: 86d2a905dc0cfd0499ca3dc3fdace4484fd2ef66 [11/13] block: convert the elevator_queue attrs to use ->seq_show
config: riscv-buildonly-randconfig-r005-20210904 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 6fe2beba7d2a41964af658c8c59dd172683ef739)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install riscv cross compiling tool for clang build
        # apt-get install binutils-riscv64-linux-gnu
        git remote add hch-misc git://git.infradead.org/users/hch/misc.git
        git fetch --no-tags hch-misc sysfs-seq
        git checkout 86d2a905dc0cfd0499ca3dc3fdace4484fd2ef66
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv 

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/kyber-iosched.c:883:1: error: implicit declaration of function 'seq_printf' [-Werror,-Wimplicit-function-declaration]
   KYBER_LAT_SHOW_STORE(KYBER_READ, read);
   ^
   block/kyber-iosched.c:865:2: note: expanded from macro 'KYBER_LAT_SHOW_STORE'
           seq_printf(sf, "%llu\n", kqd->latency_targets[domain]);         \
           ^
   block/kyber-iosched.c:884:1: error: implicit declaration of function 'seq_printf' [-Werror,-Wimplicit-function-declaration]
   KYBER_LAT_SHOW_STORE(KYBER_WRITE, write);
   ^
   block/kyber-iosched.c:865:2: note: expanded from macro 'KYBER_LAT_SHOW_STORE'
           seq_printf(sf, "%llu\n", kqd->latency_targets[domain]);         \
           ^
   2 errors generated.


vim +/seq_printf +883 block/kyber-iosched.c

00e043936e9a1c Omar Sandoval     2017-04-14  858  
6e25cb01ea2063 Omar Sandoval     2018-09-27  859  #define KYBER_LAT_SHOW_STORE(domain, name)				\
86d2a905dc0cfd Christoph Hellwig 2021-08-29  860  static void kyber_##name##_lat_show(struct elevator_queue *e,		\
86d2a905dc0cfd Christoph Hellwig 2021-08-29  861  		struct seq_file *sf)					\
00e043936e9a1c Omar Sandoval     2017-04-14  862  {									\
00e043936e9a1c Omar Sandoval     2017-04-14  863  	struct kyber_queue_data *kqd = e->elevator_data;		\
00e043936e9a1c Omar Sandoval     2017-04-14  864  									\
86d2a905dc0cfd Christoph Hellwig 2021-08-29  865  	seq_printf(sf, "%llu\n", kqd->latency_targets[domain]);		\
00e043936e9a1c Omar Sandoval     2017-04-14  866  }									\
00e043936e9a1c Omar Sandoval     2017-04-14  867  									\
6e25cb01ea2063 Omar Sandoval     2018-09-27  868  static ssize_t kyber_##name##_lat_store(struct elevator_queue *e,	\
00e043936e9a1c Omar Sandoval     2017-04-14  869  					const char *page, size_t count)	\
00e043936e9a1c Omar Sandoval     2017-04-14  870  {									\
00e043936e9a1c Omar Sandoval     2017-04-14  871  	struct kyber_queue_data *kqd = e->elevator_data;		\
00e043936e9a1c Omar Sandoval     2017-04-14  872  	unsigned long long nsec;					\
00e043936e9a1c Omar Sandoval     2017-04-14  873  	int ret;							\
00e043936e9a1c Omar Sandoval     2017-04-14  874  									\
00e043936e9a1c Omar Sandoval     2017-04-14  875  	ret = kstrtoull(page, 10, &nsec);				\
00e043936e9a1c Omar Sandoval     2017-04-14  876  	if (ret)							\
00e043936e9a1c Omar Sandoval     2017-04-14  877  		return ret;						\
00e043936e9a1c Omar Sandoval     2017-04-14  878  									\
6e25cb01ea2063 Omar Sandoval     2018-09-27  879  	kqd->latency_targets[domain] = nsec;				\
00e043936e9a1c Omar Sandoval     2017-04-14  880  									\
00e043936e9a1c Omar Sandoval     2017-04-14  881  	return count;							\
00e043936e9a1c Omar Sandoval     2017-04-14  882  }
6e25cb01ea2063 Omar Sandoval     2018-09-27 @883  KYBER_LAT_SHOW_STORE(KYBER_READ, read);
6e25cb01ea2063 Omar Sandoval     2018-09-27  884  KYBER_LAT_SHOW_STORE(KYBER_WRITE, write);
00e043936e9a1c Omar Sandoval     2017-04-14  885  #undef KYBER_LAT_SHOW_STORE
00e043936e9a1c Omar Sandoval     2017-04-14  886  

:::::: The code at line 883 was first introduced by commit
:::::: 6e25cb01ea206362616a2be469d4f3635f58ca63 kyber: implement improved heuristics

:::::: TO: Omar Sandoval <osandov@fb.com>
:::::: CC: Jens Axboe <axboe@kernel.dk>

---
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: 33715 bytes --]

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

only message in thread, other threads:[~2021-09-05  3:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-05  3:55 [hch-misc:sysfs-seq 11/13] block/kyber-iosched.c:883:1: error: implicit declaration of function 'seq_printf' 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.