tree:
https://android.googlesource.com/kernel/common android-3.18
head: 092c072095517a63745da6ca04bcbbc0f71bf823
commit: 7b617c7a3be57fc05ea24ef4f146ff0980956454 [4/5] gfs2: Fix lru_count going negative
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 7b617c7a3be57fc05ea24ef4f146ff0980956454
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=xtensa
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); did you mean 'GLF_LRU'?
if
(!(gl->gl_ops->go_flags & GLOF_LRU))
^~~~~~~~
GLF_LRU
fs//gfs2/glock.c:164:31: note: each undeclared identifier is reported only once for
each function it appears in
vim +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