Re: Cannot compile without sysctl (+semi-patch)

From: Adrian Bunk (bunk_at_stusta.de)
Date: 12/27/04

  • Next message: Alan Cox: "Re: Linux 2.6.10-ac1"
    Date:	Mon, 27 Dec 2004 18:43:19 +0100
    To: Jan Engelhardt <jengelh@linux01.gwdg.de>
    
    

    On Mon, Dec 27, 2004 at 06:06:35PM +0100, Jan Engelhardt wrote:

    > Hi,

    Hi Jan,

    > 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
    >...

    you should also tell us which kernel version you observed this problem
    in - neither the latest 2.4 nor the latest 2.6 kernels have a limits.h
    like the one you describe...

    > Jan Engelhardt

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    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/
    

  • Next message: Alan Cox: "Re: Linux 2.6.10-ac1"

    Relevant Pages

    • Re: [2.6 patch] drivers/acpi: remove unused exported functions
      ... > future patches, but sometimes Real Life gets in the way and the ... > programmer stalls development for some time, no problem, just ifdef it. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Bloat report 2.6.3 -> 2.6.4
      ... For the average computer you can buy at your supermarket today it isn't ... People who need to care about the size of the kernel use hand-tuned ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: ANNOUNCE: CE Linux Forum - Specification V1.0 draft
      ... Kernel SHALL be configuralble with compiler size options, ... "specification" didn't send a patch - the trivial patch was sent by ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Weirdness with suspending jobs in 2.6.9-rc3
      ... >> It doesn't depend on which version I'm compiling, ... >> kernel I'm actually running. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Ocfs2-devel] Re: [RFC] [PATCH] OCFS2
      ... > It's a generic mechanism for userspace driven configuration of kernel ... > subsystems/projects could use it too, ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)