Skip to contentSkip to conversation

UAPI: Remove empty Kbuild files

PATCH In review David Howells 3 participants 9 messages Mar 26, 2013

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 UAPI: Remove empty Kbuild files

Remove empty Kbuild files as they cause problems with the patch program which removes files that become empty.

Should I also remove include/Kbuild as that now does nothing? Or should it be left as an anchor just in case we want it in future?

---

 include/Kbuild         |    3 ---
 include/scsi/Kbuild    |    1 -
 include/scsi/fc/Kbuild |    0 
 include/video/Kbuild   |    0 
 4 files changed, 4 deletions(-)
 delete mode 100644 include/scsi/Kbuild
 delete mode 100644 include/scsi/fc/Kbuild
 delete mode 100644 include/video/Kbuild
include/Kbuild +0 -3
index 1dfd33e..bab1145 100644
@@ -1,5 +1,2 @@
 # Top-level Makefile calls into asm-$(ARCH)
 # List only non-arch directories below
-
-header-y += video/
-header-y += scsi/
include/scsi/Kbuild deleted +0 -1
deleted file mode 100644
index 562ff9d..0000000
@@ -1 +0,0 @@
-header-y += fc/
include/scsi/fc/Kbuild deleted +0 -0
deleted file mode 100644
index e69de29..0000000
include/video/Kbuild deleted +0 -0
deleted file mode 100644
index e69de29..0000000
#1 lore raw
Quoted 5 lines · On Tue, 26 Mar 2013 17:48:53 +0000 David Howells <[email protected]> wrote:

Remove empty Kbuild files as they cause problems with the patch program which removes files that become empty.

Should I also remove include/Kbuild as that now does nothing? Or should it be left as an anchor just in case we want it in future?

I think that if the build system created it, a make clean' or make mproper' should rub it out again. Ideally a `make mrproper' will give you a tree which is identical to a freshly-untarred kernel.org tarball (yes?).

Which reminds me of my email which you're still hiding from ;) Shouldn't a make mrproper' undo the effects of make headers_install' by wiping ./usr/include/?

#2 lore raw
Quoted 10 lines · Andrew Morton
Quoted 5 lines

Remove empty Kbuild files as they cause problems with the patch program which removes files that become empty.

Should I also remove include/Kbuild as that now does nothing? Or should it be left as an anchor just in case we want it in future?

I think that if the build system created it, a make clean' or make mproper' should rub it out again. Ideally a `make mrproper' will give you a tree which is identical to a freshly-untarred kernel.org tarball (yes?).

Ummm... What's that got to do with it? include/Kbuild is part of the
sources: make clean/mrproper/distclean should not be removing it.

Quoted 3 lines

Which reminds me of my email which you're still hiding from ;) Shouldn't a make mrproper' undo the effects of make headers_install' by wiping ./usr/include/?

Ummm...

	warthog>cp .../.config .
	warthog>make -j12 >&/dev/null
	warthog>find usr/include/ | wc -l
	873
	warthog>make distclean >&/dev/null
	warthog>find usr/include/ | wc -l
	find: `usr/include/': No such file or directory
	0

and:

	warthog>cp .../.config .
	warthog>make -j12 >&/dev/null
	warthog>find usr/include/ | wc -l
	873
	warthog>make mrproper >&/dev/null
	warthog>find usr/include/ | wc -l
	find: `usr/include/': No such file or directory
	0

so I don't see the problem.

David

#3 lore raw
Quoted 8 lines · On Tue, 26 Mar 2013 20:59:43 +0000 David Howells <[email protected]> wrote:
Quoted 6 lines · Andrew Morton
Quoted 5 lines

Remove empty Kbuild files as they cause problems with the patch program which removes files that become empty.

Should I also remove include/Kbuild as that now does nothing? Or should it be left as an anchor just in case we want it in future?

Quoted 7 lines
Quoted 4 lines

I think that if the build system created it, a make clean' or make mproper' should rub it out again. Ideally a `make mrproper' will give you a tree which is identical to a freshly-untarred kernel.org tarball (yes?).

Ummm... What's that got to do with it? include/Kbuild is part of the
sources: make clean/mrproper/distclean should not be removing it.

Obviously, I thought you were referring to build-time operations.

Quoted 26 lines
Quoted 3 lines

Which reminds me of my email which you're still hiding from ;) Shouldn't a make mrproper' undo the effects of make headers_install' by wiping ./usr/include/?

Ummm...

	warthog>cp .../.config .
	warthog>make -j12 >&/dev/null
	warthog>find usr/include/ | wc -l
	873
	warthog>make distclean >&/dev/null
	warthog>find usr/include/ | wc -l
	find: `usr/include/': No such file or directory
	0

and:

	warthog>cp .../.config .
	warthog>make -j12 >&/dev/null
	warthog>find usr/include/ | wc -l
	873
	warthog>make mrproper >&/dev/null
	warthog>find usr/include/ | wc -l
	find: `usr/include/': No such file or directory
	0
Quoted 1 line

so I don't see the problem.

Well damn. I tested this a few days ago and a `make mrproper' didn't remove usr/include. Did something change recently? If not, something odd is going on. I definitely tested it.

#4 lore raw
Quoted 1 line · Andrew Morton

Obviously, I thought you were referring to build-time operations.

I want to know whether I should extend my patch to remove include/Kbuild and any refs to it.

Quoted 5 lines
Quoted 1 line

so I don't see the problem.

Well damn. I tested this a few days ago and a `make mrproper' didn't remove usr/include. Did something change recently? If not, something odd is going on. I definitely tested it.

I haven't changed anything.

David

#5 lore raw
Quoted 6 lines · David Howells
Quoted 1 line · Andrew Morton

Obviously, I thought you were referring to build-time operations.

I want to know whether I should extend my patch to remove include/Kbuild and any refs to it.

make headers_install starts at include/uapi, so include/Kbuild is not needed. And new exported headers end up in inclde/uapi, so there will probably not be need for include/Kbuild in the future either. IMO, just remove it.

Michal

#6 lore raw
Quoted 7 lines · Michal Marek
Quoted 2 lines

I want to know whether I should extend my patch to remove include/Kbuild and any refs to it.

make headers_install starts at include/uapi, so include/Kbuild is not needed. And new exported headers end up in inclde/uapi, so there will probably not be need for include/Kbuild in the future either. IMO, just remove it.

That's not all Kbuild does. It also handles autogenerated headers.

David

#7 lore raw
Quoted 11 lines · David Howells
Quoted 7 lines · Michal Marek
Quoted 2 lines

I want to know whether I should extend my patch to remove include/Kbuild and any refs to it.

make headers_install starts at include/uapi, so include/Kbuild is not needed. And new exported headers end up in inclde/uapi, so there will probably not be need for include/Kbuild in the future either. IMO, just remove it.

That's not all Kbuild does. It also handles autogenerated headers.

That's true. But include/generated is handled by the main Makefile directly as well.

Michal

#8 lore raw
Quoted 8 lines · Michal Marek
Quoted 8 lines
Quoted 7 lines
Quoted 2 lines

I want to know whether I should extend my patch to remove include/Kbuild and any refs to it.

make headers_install starts at include/uapi, so include/Kbuild is not needed. And new exported headers end up in inclde/uapi, so there will probably not be need for include/Kbuild in the future either. IMO, just remove it.

Quoted 4 lines
Quoted 1 line

That's not all Kbuild does. It also handles autogenerated headers.

That's true. But include/generated is handled by the main Makefile directly as well.

But there are generated header files that aren't so handled - though those are only currently to be found in arch/. I don't mind removing it, it's just that I don't want to preclude anyone's use of it.

David