lkml.org 
[lkml]   [2004]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectCannot compile without sysctl (+semi-patch)
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.032 / U:0.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site