Re: [PATCH -next] misc: watch_queue: Fix build error

From: Yuehaibing
Date: Tue Oct 08 2019 - 02:43:23 EST


On 2019/9/4 20:20, David Howells wrote:
> Thanks, I've folded that in.

This issue still occur in linux-next 20191008 :

drivers/misc/watch_queue.c: In function ‘watch_queue_account_mem’:
drivers/misc/watch_queue.c:315:38: error: ‘struct user_struct’ has no member named ‘locked_vm’; did you mean ‘locked_shm’?
cur_pages = atomic_long_read(&user->locked_vm);
^~~~~~~~~
locked_shm
drivers/misc/watch_queue.c:321:50: error: ‘struct user_struct’ has no member named ‘locked_vm’; did you mean ‘locked_shm’?
} while (atomic_long_try_cmpxchg_relaxed(&user->locked_vm, &cur_pages,
^~~~~~~~~
locked_shm
drivers/misc/watch_queue.c: In function ‘watch_queue_unaccount_mem’:
drivers/misc/watch_queue.c:333:44: error: ‘struct user_struct’ has no member named ‘locked_vm’; did you mean ‘locked_shm’?
atomic_long_sub(wqueue->nr_pages, &user->locked_vm);
^~~~~~~~~
locked_shm
scripts/Makefile.build:265: recipe for target 'drivers/misc/watch_queue.o' failed

>
> David
>
> .
>