Skip to contentSkip to conversation

can we use mandatory-y for non-uapi headers?

DISCUSSION Christoph Hellwig 2 participants 3 messages Aug 10, 2019 – Aug 12, 2019 Kbuild

lore
Share & tools
lore
#0 lore raw

Hi Masahiro,

what is the reason that the documentation says mandatory-y should only be used for uapi headers? If would also be very useful for normal asm-generic headers where most people use the generic version and we only have a few overrides. Two headers that immediately come to mind are dma-mapping.h, or msi.h.

#1 lore raw

Christoph,

Quoted 5 lines · Christoph Hellwig

Hi Masahiro,

what is the reason that the documentation says mandatory-y should only be used for uapi headers?

Where is it documented?

Documentation/kbuild/makefiles.rst section 7.4 describes mandatory-y is essentially used by include/(uapi/)asm-generic/Kbuild

include/(uapi/)asm-generic/Kbuild means:

include/uapi/asm-generic/Kbuild
include/asm-generic/Kbuild

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw
Quoted 5 lines · Masahiro Yamada
Quoted 2 lines

what is the reason that the documentation says mandatory-y should only be used for uapi headers?

Where is it documented?

Quoted 7 lines

Documentation/kbuild/makefiles.rst section 7.4 describes mandatory-y is essentially used by include/(uapi/)asm-generic/Kbuild

include/(uapi/)asm-generic/Kbuild means:

include/uapi/asm-generic/Kbuild
include/asm-generic/Kbuild

Ok, maybe it was just me misreading the documentation. In that case I'll start submitting patches to use it more.