[PATCH 1/2] arch: consolidate CONFIG_STRICT_DEVM in lib/Kconfig.debug
Ingo Molnar
mingo at kernel.org
Tue Nov 24 00:27:57 PST 2015
* Kees Cook <keescook at chromium.org> wrote:
> On Mon, Nov 23, 2015 at 9:12 AM, Dan Williams <dan.j.williams at intel.com> wrote:
> > On Mon, Nov 23, 2015 at 12:12 AM, Ingo Molnar <mingo at kernel.org> wrote:
> >>
> >> * Dan Williams <dan.j.williams at intel.com> wrote:
> >>
> >>> Let all the archs that implement CONFIG_STRICT_DEVM use a common
> >>> definition in lib/Kconfig.debug.
> >>
> >> For the x86 bit:
> >>
> >> Acked-by: Ingo Molnar <mingo at kernel.org>
> >>
> >>> Note, the 'depends on !SPARC' is due to sparc not implementing
> >>> devmem_is_allowed().
> >>
> >> Maybe that should be converted into a helper Kconfig switch for architectures to
> >> opt in to /dev/mem restrictions?
> >
> > Sure, easy enough to add a ARCH_HAS_DEVMEM_IS_ALLOWED opt-in.
>
> Is there some hidden meaning about the difference between ARCH_HAS_...
> and HAVE_ARCH_... and HAVE_... ?
There's also the double underscore variants such as __HAVE_ARCH_STRNCASECMP! ;-)
It's all just nonsensical historic muck: because no-one ever was confronted with
the messy global picture.
Today you can run Documentation/features/list-arch.sh and wonder at the zoo of
options ;-)
Thanks,
Ingo
More information about the linux-arm-kernel
mailing list