public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* CONFIG_* symbols in UAPI headers?
@ 2019-04-08 12:46 Christoph Hellwig
  2019-04-08 13:58 ` Arnd Bergmann
  2019-04-09 19:11 ` Paul Bolle
  0 siblings, 2 replies; 5+ messages in thread
From: Christoph Hellwig @ 2019-04-08 12:46 UTC (permalink / raw)
  To: Jie Zhang
  Cc: Mike Frysinger, David Howells, Arnd Bergmann, linux-arch,
	linux-kernel

I just stumbled over the MAP_UNINITIALIZED defintion, initially
added by:

commit ea637639591def87a54cea811cbac796980cb30d
Author: Jie Zhang <jie.zhang@analog.com>
Date:   Mon Dec 14 18:00:02 2009 -0800

    nommu: fix malloc performance by adding uninitialized flag

The defintion depends on CONFIG_MMAP_ALLOW_UNINITIALIZED, which
will never be set by userspace.  How is this supposed to work?

Shoudn't we define the symbol unconditionally and just turn it
into a no-op in the implementation?


There are a few similar issues, like struct elf_prstatus having
a different layout depending on CONFIG_BINFMT_ELF_FDPIC, or
MAX_SHARED_LIBS defending on CONFIG_BINFMT_SHARED_FLAT.


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

end of thread, other threads:[~2019-04-09 20:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-08 12:46 CONFIG_* symbols in UAPI headers? Christoph Hellwig
2019-04-08 13:58 ` Arnd Bergmann
2019-04-09 18:17   ` David Howells
2019-04-09 19:11 ` Paul Bolle
2019-04-09 20:54   ` Paul Bolle

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