[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201703092251.IuWrdxhU%fengguang.wu@intel.com>
Date: Thu, 9 Mar 2017 22:40:53 +0800
From: kbuild test robot <lkp@...el.com>
To: Davidlohr Bueso <dave@...olabs.net>
Cc: kbuild-all@...org, mingo@...nel.org, peterz@...radead.org,
akpm@...ux-foundation.org, jack@...e.cz,
kirill.shutemov@...ux.intel.com, mhocko@...e.com,
mgorman@...hsingularity.net, dave@...olabs.net,
linux-kernel@...r.kernel.org, oleg.drokin@...el.com,
andreas.dilger@...el.com, jsimmons@...radead.org,
lustre-devel@...ts.lustre.org, Davidlohr Bueso <dbueso@...e.de>
Subject: Re: [PATCH 5/5] staging/lustre: Use generic range rwlock
Hi Davidlohr,
[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.11-rc1 next-20170309]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Davidlohr-Bueso/locking-Introduce-range-reader-writer-lock/20170309-140444
config: i386-randconfig-i1-201710 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
All warnings (new ones prefixed by >>):
drivers/staging/lustre/lustre/llite/file.c: In function 'll_file_io_generic':
>> drivers/staging/lustre/lustre/llite/file.c:1072:4: warning: large integer implicitly truncated to unsigned type [-Woverflow]
range_rwlock_init(&range, 0, LUSTRE_EOF);
^
vim +1072 drivers/staging/lustre/lustre/llite/file.c
1056 struct cl_io *io;
1057 ssize_t result = 0;
1058 int rc = 0;
1059
1060 CDEBUG(D_VFSTRACE, "file: %pD, type: %d ppos: %llu, count: %zu\n",
1061 file, iot, *ppos, count);
1062
1063 restart:
1064 io = vvp_env_thread_io(env);
1065 ll_io_init(io, file, iot == CIT_WRITE);
1066
1067 if (cl_io_rw_init(env, io, iot, *ppos, count) == 0) {
1068 struct vvp_io *vio = vvp_env_io(env);
1069 bool range_locked = false;
1070
1071 if (file->f_flags & O_APPEND)
> 1072 range_rwlock_init(&range, 0, LUSTRE_EOF);
1073 else
1074 range_rwlock_init(&range, *ppos, *ppos + count - 1);
1075
1076 vio->vui_fd = LUSTRE_FPRIVATE(file);
1077 vio->vui_iter = args->u.normal.via_iter;
1078 vio->vui_iocb = args->u.normal.via_iocb;
1079 /*
1080 * Direct IO reads must also take range lock,
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (37254 bytes)
Powered by blists - more mailing lists