Commit 6b443a1b authored by Andrew Morton's avatar Andrew Morton Committed by Jiri Slaby

openrisc: fix CONFIG_UID16 setting

commit 04ea1e91 upstream.

openrisc-allnoconfig:

  kernel/uid16.c: In function 'SYSC_setgroups16':
  kernel/uid16.c:184:2: error: implicit declaration of function 'groups_alloc'
  kernel/uid16.c:184:13: warning: assignment makes pointer from integer without a cast

openrisc shouldn't be setting CONFIG_UID16 when CONFIG_MULTIUSER=n.

Fixes: 2813893f ("kernel: conditionally support non-root users, groups and capabilities")
Reported-by: default avatarFengguang Wu <fengguang.wu@gmail.com>
Cc: Iulia Manda <iulia.manda21@gmail.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent d6ace935
...@@ -16,6 +16,7 @@ config OPENRISC ...@@ -16,6 +16,7 @@ config OPENRISC
select GENERIC_IRQ_SHOW select GENERIC_IRQ_SHOW
select GENERIC_IOMAP select GENERIC_IOMAP
select GENERIC_CPU_DEVICES select GENERIC_CPU_DEVICES
select HAVE_UID16
select GENERIC_ATOMIC64 select GENERIC_ATOMIC64
select GENERIC_CLOCKEVENTS select GENERIC_CLOCKEVENTS
select GENERIC_STRNCPY_FROM_USER select GENERIC_STRNCPY_FROM_USER
...@@ -29,9 +30,6 @@ config MMU ...@@ -29,9 +30,6 @@ config MMU
config HAVE_DMA_ATTRS config HAVE_DMA_ATTRS
def_bool y def_bool y
config UID16
def_bool y
config RWSEM_GENERIC_SPINLOCK config RWSEM_GENERIC_SPINLOCK
def_bool y def_bool y
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment