Re: [PATCH 3/3] KEYS: Make the keyring quotas controllable through /proc/sys
From: David Howells
Date: Fri Mar 14 2008 - 07:47:03 EST
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > +#ifdef CONFIG_SYSCTL
> > +extern ctl_table key_sysctls[];
> > +#endif
>
> I've been going around telling people to not bother with the ifdefs here.
> Upside: looks nicer. Downside: defers the build error from compile-time to
> link-time.
Should this extern actually be in include/linux/sysctl.h? I'd rather not put
it in include/linux/key.h as that means that key.h must include sysctl.h just
to get a definition of ctl_table. Conversely, however, sysctl.h doesn't need
to include key.h to include the above extern.
David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/