[staging:staging-next 560/569] drivers/staging//erofs/utils.c:189:12: error: implicit declaration of function 'erofs_shrink_workstation'; did you mean 'erofs_shrink_scan'?
kbuild test robot
lkp at intel.com
Sun Jul 29 02:13:06 UTC 2018
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next
head: 6d4abf1c0e265d8e99c155b91c1cf44e37793e53
commit: e7e9a307be9d75ecc3bf20b362af88140dfb4304 [560/569] staging: erofs: introduce workstation for decompression
config: x86_64-randconfig-ws0-07290820 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout e7e9a307be9d75ecc3bf20b362af88140dfb4304
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/staging//erofs/utils.c: In function 'erofs_shrink_scan':
>> drivers/staging//erofs/utils.c:189:12: error: implicit declaration of function 'erofs_shrink_workstation'; did you mean 'erofs_shrink_scan'? [-Werror=implicit-function-declaration]
freed += erofs_shrink_workstation(sbi, nr, false);
^~~~~~~~~~~~~~~~~~~~~~~~
erofs_shrink_scan
cc1: some warnings being treated as errors
vim +189 drivers/staging//erofs/utils.c
140
141 unsigned long erofs_shrink_scan(struct shrinker *shrink,
142 struct shrink_control *sc)
143 {
144 struct erofs_sb_info *sbi;
145 struct list_head *p;
146
147 unsigned long nr = sc->nr_to_scan;
148 unsigned int run_no;
149 unsigned long freed = 0;
150
151 spin_lock(&erofs_sb_list_lock);
152 do
153 run_no = ++shrinker_run_no;
154 while (run_no == 0);
155
156 /* Iterate over all mounted superblocks and try to shrink them */
157 p = erofs_sb_list.next;
158 while (p != &erofs_sb_list) {
159 sbi = list_entry(p, struct erofs_sb_info, list);
160
161 /*
162 * We move the ones we do to the end of the list, so we stop
163 * when we see one we have already done.
164 */
165 if (sbi->shrinker_run_no == run_no)
166 break;
167
168 if (!mutex_trylock(&sbi->umount_mutex)) {
169 p = p->next;
170 continue;
171 }
172
173 spin_unlock(&erofs_sb_list_lock);
174 sbi->shrinker_run_no = run_no;
175
176 /* add scan handlers here */
177
178 spin_lock(&erofs_sb_list_lock);
179 /* Get the next list element before we move this one */
180 p = p->next;
181
182 /*
183 * Move this one to the end of the list to provide some
184 * fairness.
185 */
186 list_move_tail(&sbi->list, &erofs_sb_list);
187 mutex_unlock(&sbi->umount_mutex);
188
> 189 freed += erofs_shrink_workstation(sbi, nr, false);
190 if (freed >= nr)
191 break;
192 }
193 spin_unlock(&erofs_sb_list_lock);
194 return freed;
195 }
196
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 27480 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20180729/14130a24/attachment-0001.bin>
More information about the devel
mailing list