Re: [PATCH 1/2] watch_queue: make locked_vm accessible
From: Jens Axboe
Date: Fri Sep 06 2019 - 11:39:40 EST
On 9/6/19 9:32 AM, Arnd Bergmann wrote:
> The locked_vm member of struct user_struct is guarded by an #ifdef,
> which breaks building the new watch_queue driver when all the other
> subsystems that need it are disabled:
>
> drivers/misc/watch_queue.c:315:38: error: no member named 'locked_vm' in 'struct user_struct'; did you mean 'locked_shm'?
>
> Add watch_queue to the list.
Should we either:
1) Make it unconditionally available
or
2) Introduce a symbol for this that others can select, like
CONFIG_NEEDS_USER_LOCKED_VM or something like that.
?
--
Jens Axboe