* [android-common:android12-5.4 1/1] drivers/md/dm-user.c:223:9: warning: format specifies type 'int' but the argument has type 'sector_t' (aka 'unsigned long long')
@ 2021-05-26 12:06 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-05-26 12:06 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2902 bytes --]
tree: https://android.googlesource.com/kernel/common android12-5.4
head: 54f14b62ffeda5a05c9d28caa32f7d5d638db264
commit: 54f14b62ffeda5a05c9d28caa32f7d5d638db264 [1/1] ANDROID: dm-user: Fail the IO if there is no daemon
config: x86_64-randconfig-r025-20210526 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 99155e913e9bad5f7f8a247f8bb3a3ff3da74af1)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.4
git checkout 54f14b62ffeda5a05c9d28caa32f7d5d638db264
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/md/dm-user.c:223:9: warning: format specifies type 'int' but the argument has type 'sector_t' (aka 'unsigned long long') [-Wformat]
msg->bio->bi_iter.bi_sector, t->miscdev.name);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/printk.h:300:33: note: expanded from macro 'pr_err'
printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/md/dm-user.c:278:30: warning: unused function 'target_from_miscdev' [-Wunused-function]
static inline struct target *target_from_miscdev(struct miscdevice *miscdev)
^
2 warnings generated.
vim +223 drivers/md/dm-user.c
200
201 static void process_delayed_work(struct work_struct *work)
202 {
203 struct delayed_work *del_work = to_delayed_work(work);
204 struct message *msg = container_of(del_work, struct message, work);
205
206 struct target *t = msg->t;
207
208 mutex_lock(&t->lock);
209
210 /*
211 * There is a atleast one thread to process the IO.
212 */
213 if (is_user_space_thread_present(t)) {
214 mutex_unlock(&t->lock);
215 return;
216 }
217
218 /*
219 * Terminate the IO with an error
220 */
221 list_del(&msg->to_user);
222 pr_err("IO error: sector %d: no user-space daemon for %s target\n",
> 223 msg->bio->bi_iter.bi_sector, t->miscdev.name);
224 message_kill(msg, &t->message_pool);
225 mutex_unlock(&t->lock);
226 }
227
---
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: 36193 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-26 12:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-26 12:06 [android-common:android12-5.4 1/1] drivers/md/dm-user.c:223:9: warning: format specifies type 'int' but the argument has type 'sector_t' (aka 'unsigned long long') 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.