tree:
https://android.googlesource.com/kernel/common android-3.18
head: 092c072095517a63745da6ca04bcbbc0f71bf823
commit: 7b617c7a3be57fc05ea24ef4f146ff0980956454 [4/5] gfs2: Fix lru_count going negative
config: x86_64-rhel (attached as .config)
compiler: gcc-5 (Ubuntu 5.5.0-12ubuntu1) 5.5.0 20171010
reproduce:
git checkout 7b617c7a3be57fc05ea24ef4f146ff0980956454
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
fs/gfs2/glock.c: In function 'gfs2_glock_add_to_lru':
> fs/gfs2/glock.c:164:31: error: 'GLOF_LRU' undeclared
(first use in this function)
if (!(gl->gl_ops->go_flags & GLOF_LRU))
^
fs/gfs2/glock.c:164:31: note: each undeclared identifier is reported only once for each
function it appears in
vim +/GLOF_LRU +164 fs/gfs2/glock.c
160
161
162 void gfs2_glock_add_to_lru(struct gfs2_glock *gl)
163 {
164 if (!(gl->gl_ops->go_flags & GLOF_LRU))
165 return;
166
167 spin_lock(&lru_lock);
168
169 list_del(&gl->gl_lru);
170 list_add_tail(&gl->gl_lru, &lru_list);
171
172 if (!test_bit(GLF_LRU, &gl->gl_flags)) {
173 set_bit(GLF_LRU, &gl->gl_flags);
174 atomic_inc(&lru_count);
175 }
176
177 spin_unlock(&lru_lock);
178 }
179
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation