From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hch-misc:sysfs-seq 11/13] block/kyber-iosched.c:883:1: error: implicit declaration of function 'seq_printf'
Date: Sun, 05 Sep 2021 11:55:32 +0800 [thread overview]
Message-ID: <202109051124.HGpCEnM7-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2021-09-05 3:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202109051124.HGpCEnM7-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.