* [linux-next:master 5294/5318] kernel/user.c:141:30: error: 'struct user_struct' has no member named 'epoll_watches'; did you mean 'nr_watches'?
@ 2021-08-04 22:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-08-04 22:43 UTC (permalink / raw)
To: Nicholas Piggin
Cc: kbuild-all, Linux Memory Management List, Mark Brown,
Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 3652 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 2f73937c9aa561e2082839bc1a8efaac75d6e244
commit: fcd5f8174782fea2929ffd9e734e2c3f1636e425 [5294/5318] fs/epoll: use a per-cpu counter for user's watches count
config: openrisc-randconfig-r013-20210805 (attached as .config)
compiler: or1k-linux-gcc (GCC) 10.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=fcd5f8174782fea2929ffd9e734e2c3f1636e425
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout fcd5f8174782fea2929ffd9e734e2c3f1636e425
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=openrisc SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
kernel/user.c: In function 'free_user':
>> kernel/user.c:141:30: error: 'struct user_struct' has no member named 'epoll_watches'; did you mean 'nr_watches'?
141 | percpu_counter_destroy(&up->epoll_watches);
| ^~~~~~~~~~~~~
| nr_watches
In file included from include/linux/sched/user.h:7,
from kernel/user.c:17:
kernel/user.c: In function 'alloc_uid':
kernel/user.c:189:33: error: 'struct user_struct' has no member named 'epoll_watches'; did you mean 'nr_watches'?
189 | if (percpu_counter_init(&new->epoll_watches, 0, GFP_KERNEL)) {
| ^~~~~~~~~~~~~
include/linux/percpu_counter.h:38:25: note: in definition of macro 'percpu_counter_init'
38 | __percpu_counter_init(fbc, value, gfp, &__key); \
| ^~~
kernel/user.c:203:33: error: 'struct user_struct' has no member named 'epoll_watches'; did you mean 'nr_watches'?
203 | percpu_counter_destroy(&new->epoll_watches);
| ^~~~~~~~~~~~~
| nr_watches
In file included from include/linux/sched/user.h:7,
from kernel/user.c:17:
kernel/user.c: In function 'uid_cache_init':
kernel/user.c:225:37: error: 'struct user_struct' has no member named 'epoll_watches'; did you mean 'nr_watches'?
225 | if (percpu_counter_init(&root_user.epoll_watches, 0, GFP_KERNEL))
| ^~~~~~~~~~~~~
include/linux/percpu_counter.h:38:25: note: in definition of macro 'percpu_counter_init'
38 | __percpu_counter_init(fbc, value, gfp, &__key); \
| ^~~
vim +141 kernel/user.c
131
132 /* IRQs are disabled and uidhash_lock is held upon function entry.
133 * IRQ state (as stored in flags) is restored and uidhash_lock released
134 * upon function exit.
135 */
136 static void free_user(struct user_struct *up, unsigned long flags)
137 __releases(&uidhash_lock)
138 {
139 uid_hash_remove(up);
140 spin_unlock_irqrestore(&uidhash_lock, flags);
> 141 percpu_counter_destroy(&up->epoll_watches);
142 kmem_cache_free(uid_cachep, up);
143 }
144
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24630 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-04 22:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04 22:43 [linux-next:master 5294/5318] kernel/user.c:141:30: error: 'struct user_struct' has no member named 'epoll_watches'; did you mean 'nr_watches'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).