Recently, I added a new upcall to mainline kernels and with that I added a new header file to describe the upcall/downcall format (include/linux/nfsd/cld.h).
I've noticed though that that file is not being packaged in the kernel-headers package, even though the other files in the linux/nfsd dir are. Is there some master list that I need to add this file to? Or do I need to mark this file in some way to ensure that it gets included in kernel-headers?
Thanks in advance,
On Mon, Apr 16, 2012 at 10:24:47AM -0400, Jeff Layton wrote:
Recently, I added a new upcall to mainline kernels and with that I added a new header file to describe the upcall/downcall format (include/linux/nfsd/cld.h).
I've noticed though that that file is not being packaged in the kernel-headers package, even though the other files in the linux/nfsd dir are. Is there some master list that I need to add this file to? Or do I need to mark this file in some way to ensure that it gets included in kernel-headers?
We just run 'make headers_install', which uses the upstream's header sanitize and install method for kernel headers. You probably need to add your new header to include/linux/nfsd/Kbuild if it's meant to be exported to userspace. E.g. send something like the following upstream.
josh
diff --git a/include/linux/nfsd/Kbuild b/include/linux/nfsd/Kbuild index b8d4001..b35b5ea 100644 --- a/include/linux/nfsd/Kbuild +++ b/include/linux/nfsd/Kbuild @@ -2,3 +2,4 @@ header-y += debug.h header-y += export.h header-y += nfsfh.h header-y += stats.h +header-y += cld.h
On Mon, 16 Apr 2012 10:31:58 -0400 Josh Boyer jwboyer@redhat.com wrote:
On Mon, Apr 16, 2012 at 10:24:47AM -0400, Jeff Layton wrote:
Recently, I added a new upcall to mainline kernels and with that I added a new header file to describe the upcall/downcall format (include/linux/nfsd/cld.h).
I've noticed though that that file is not being packaged in the kernel-headers package, even though the other files in the linux/nfsd dir are. Is there some master list that I need to add this file to? Or do I need to mark this file in some way to ensure that it gets included in kernel-headers?
We just run 'make headers_install', which uses the upstream's header sanitize and install method for kernel headers. You probably need to add your new header to include/linux/nfsd/Kbuild if it's meant to be exported to userspace. E.g. send something like the following upstream.
josh
diff --git a/include/linux/nfsd/Kbuild b/include/linux/nfsd/Kbuild index b8d4001..b35b5ea 100644 --- a/include/linux/nfsd/Kbuild +++ b/include/linux/nfsd/Kbuild @@ -2,3 +2,4 @@ header-y += debug.h header-y += export.h header-y += nfsfh.h header-y += stats.h +header-y += cld.h
Ahh thanks. That looks like the special sauce I was looking for!
Cheers,
On Mon, 2012-04-16 at 10:24 -0400, Jeff Layton wrote:
Is there some master list that I need to add this file to? Or do I need to mark this file in some way to ensure that it gets included in kernel-headers?
0) On a F16 system (kernel 3.3.1-5.fc16): $ rpm -ql kernel-headers | grep nfsd /usr/include/linux/nfsd /usr/include/linux/nfsd/debug.h /usr/include/linux/nfsd/export.h /usr/include/linux/nfsd/nfsfh.h /usr/include/linux/nfsd/stats.h
$ (inside the kernel tree) cat include/linux/nfsd/Kbuild: header-y += debug.h header-y += export.h header-y += nfsfh.h header-y += stats.h
1) Does adding it to include/linux/nfsd/Kbuild as "header-y" do what you want?
Paul Bolle
On Mon, Apr 16, 2012 at 4:24 PM, Jeff Layton jlayton@poochiereds.net wrote:
Recently, I added a new upcall to mainline kernels and with that I added a new header file to describe the upcall/downcall format (include/linux/nfsd/cld.h).
I've noticed though that that file is not being packaged in the kernel-headers package, even though the other files in the linux/nfsd dir are. Is there some master list that I need to add this file to? Or do I need to mark this file in some way to ensure that it gets included in kernel-headers?
I think that's defined in the upstream kernel sources as well. You probably need to update include/linux/nfsd/Kbuild and add the new file to export.
Some information can also be found in Documentation/make/headers_install.txt.
Cheers, Niels
On Mon, 16 Apr 2012 16:43:36 +0200 Niels de Vos devos@fedoraproject.org wrote:
On Mon, Apr 16, 2012 at 4:24 PM, Jeff Layton jlayton@poochiereds.net wrote:
Recently, I added a new upcall to mainline kernels and with that I added a new header file to describe the upcall/downcall format (include/linux/nfsd/cld.h).
I've noticed though that that file is not being packaged in the kernel-headers package, even though the other files in the linux/nfsd dir are. Is there some master list that I need to add this file to? Or do I need to mark this file in some way to ensure that it gets included in kernel-headers?
I think that's defined in the upstream kernel sources as well. You probably need to update include/linux/nfsd/Kbuild and add the new file to export.
Some information can also be found in Documentation/make/headers_install.txt.
Cheers, Niels
Thanks for the pointers everyone. I think that's all that was missing. I've sent Bruce Fields a patch so hopefully it'll be fixed in mainline soon.
Cheers,
kernel@lists.fedoraproject.org