exporting kernel headers via the include/uapi directory

Bjørn Mork bjorn at mork.no
Fri May 27 08:59:17 EDT 2016


"Robert P. J. Day" <rpjday at crashcourse.ca> writes:

>   while i'm here, some pedantry ... what is the point of adding a
> header file somewhere under include/uapi/<somedir> without
> *immediately* adding it to the Kbuild file so that it's exported?

I don't know the answer to that.  But having done this once, I can
answer why *I* did it: Ignorance.

I didn't realize that I had to update the Kbuild file, but wrongly
assumed that creating a file somewhere in include/uapi was enough.
Maybe that's the reason for most of these errors?  Some automatic check,
or maybe even automatic fix, would be nice.  Should be pretty easy to
do.



Bjørn



More information about the Kernelnewbies mailing list