mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Cannot compile without sysctl (+semi-patch)
@ 2004-12-27 17:06 Jan Engelhardt
  2004-12-27 17:43 ` Adrian Bunk
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2004-12-27 17:06 UTC (permalink / raw)
  To: linux-kernel

Hi,


in trying to make the smallest possible kernel for an old pc's needs (read: 
386sx) disabling sysctl support (CONFIG_SYSCTL) does not work, sys_setgroups 
and sys_setgroups16 still require it. (I get a linking error.)
It's not a blocker, but it would be nice if this got wrapped up in #ifdef or 
something :-) so that either sysctl is always on or sys_setgroups behaves a 
little different.

Preferably:
include/linux/limits.h:
#ifdef __KERNEL__
extern int ngroups_max;
# define NGROUPS_MAX ngroups_max
#else
# define NGROUPS_MAX __NGROUPS_MAX
#endif

to

#if defined(__KERNEL__) && defined(CONFIG_SYSCTL)
# define NGROUPS_MAX ngroups_max
#else
# define NGROUPS_MAX __NGROUPS_MAX
#endif




Jan Engelhardt
-- 
ENOSPC

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-27 19:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-27 17:06 Cannot compile without sysctl (+semi-patch) Jan Engelhardt
2004-12-27 17:43 ` Adrian Bunk
2004-12-27 19:50   ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®