UAPI: Remove empty Kbuild files
Subsystems (5)
PATCH 1/2 UAPI: Remove empty Kbuild files
Empty files can get deleted by the patch program, so remove empty Kbuild files and their links from the parent Kbuilds.
Signed-off-by David Howells <[email protected]>
---
include/Kbuild | 3 --- include/linux/Kbuild | 5 ----- include/linux/hdlc/Kbuild | 0 include/linux/hsi/Kbuild | 0 include/linux/raid/Kbuild | 0 include/linux/usb/Kbuild | 0 include/rdma/Kbuild | 0 include/sound/Kbuild | 0 8 files changed, 8 deletions(-) delete mode 100644 include/linux/Kbuild delete mode 100644 include/linux/hdlc/Kbuild delete mode 100644 include/linux/hsi/Kbuild delete mode 100644 include/linux/raid/Kbuild delete mode 100644 include/linux/usb/Kbuild delete mode 100644 include/rdma/Kbuild delete mode 100644 include/sound/Kbuild
include/Kbuild +0 -3
@@ -1,8 +1,5 @@ # Top-level Makefile calls into asm-$(ARCH) # List only non-arch directories below -header-y += linux/ -header-y += sound/ -header-y += rdma/ header-y += video/ header-y += scsi/
include/linux/Kbuild deleted +0 -5
@@ -1,5 +0,0 @@ -header-y += dvb/ -header-y += hdlc/ -header-y += hsi/ -header-y += raid/ -header-y += usb/
include/linux/hdlc/Kbuild deleted +0 -0
include/linux/hsi/Kbuild deleted +0 -0
include/linux/raid/Kbuild deleted +0 -0
include/linux/usb/Kbuild deleted +0 -0
include/rdma/Kbuild deleted +0 -0
include/sound/Kbuild deleted +0 -0
PATCH 2/2 UAPI: Strip _UAPI prefix on header install no matter the whitespace
The following commit:
commit 56c176c9cac9a77249fa1736bfd792f379d61942 Author: David Howells <[email protected]> Date: Mon Nov 26 16:29:39 2012 -0800 Subject: UAPI: strip the _UAPI prefix from header guards during header installation
strips the _UAPI prefix from header guards, but only if there's a single space between the cpp directive and the label. Make it more flexible and able to handle tabs and multiple white space characters.
Signed-off-by David Howells <[email protected]>
---
scripts/headers_install.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/headers_install.pl +3 -3
@@ -42,9 +42,9 @@ foreach my $filename (@files) { $line =~ s/(^|\s)(inline)\b/$1__$2__/g; $line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; $line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; - $line =~ s/#ifndef _UAPI/#ifndef /; - $line =~ s/#define _UAPI/#define /; - $line =~ s!#endif /[*] _UAPI!#endif /* !; + $line =~ s/#ifndef\s+_UAPI/#ifndef /; + $line =~ s/#define\s+_UAPI/#define /; + $line =~ s!#endif\s+/[*]\s*_UAPI!#endif /* !; printf {$out} "%s", $line; } close $out;