diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.headersinst | 11 | ||||
| -rwxr-xr-x | scripts/checkpatch.pl | 1 | 
2 files changed, 7 insertions, 5 deletions
diff --git a/scripts/Makefile.headersinst b/scripts/Makefile.headersinst index 25f216a841d..477d137c055 100644 --- a/scripts/Makefile.headersinst +++ b/scripts/Makefile.headersinst @@ -14,7 +14,7 @@ kbuild-file := $(srctree)/$(obj)/Kbuild  include $(kbuild-file)  # called may set destination dir (when installing to asm/) -_dst := $(or $(destination-y),$(dst),$(obj)) +_dst := $(if $(destination-y),$(destination-y),$(if $(dst),$(dst),$(obj)))  old-kbuild-file := $(srctree)/$(subst uapi/,,$(obj))/Kbuild  ifneq ($(wildcard $(old-kbuild-file)),) @@ -48,13 +48,14 @@ all-files     := $(header-y) $(genhdr-y) $(wrapper-files)  output-files  := $(addprefix $(installdir)/, $(all-files))  input-files   := $(foreach hdr, $(header-y), \ -		   $(or \ +		   $(if $(wildcard $(srcdir)/$(hdr)), \  			$(wildcard $(srcdir)/$(hdr)), \ -			$(wildcard $(oldsrcdir)/$(hdr)), \ -			$(error Missing UAPI file $(srcdir)/$(hdr)) \ +			$(if $(wildcard $(oldsrcdir)/$(hdr)), \ +				$(wildcard $(oldsrcdir)/$(hdr)), \ +				$(error Missing UAPI file $(srcdir)/$(hdr))) \  		   )) \  		 $(foreach hdr, $(genhdr-y), \ -		   $(or \ +		   $(if	$(wildcard $(gendir)/$(hdr)), \  			$(wildcard $(gendir)/$(hdr)), \  			$(error Missing generated UAPI file $(gendir)/$(hdr)) \  		   )) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index b28cc384a5b..4de4bc48493 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3016,6 +3016,7 @@ sub process {  			    $dstat !~ /^'X'$/ &&					# character constants  			    $dstat !~ /$exceptions/ &&  			    $dstat !~ /^\.$Ident\s*=/ &&				# .foo = +			    $dstat !~ /^(?:\#\s*$Ident|\#\s*$Constant)\s*$/ &&		# stringification #foo  			    $dstat !~ /^do\s*$Constant\s*while\s*$Constant;?$/ &&	# do {...} while (...); // do {...} while (...)  			    $dstat !~ /^for\s*$Constant$/ &&				# for (...)  			    $dstat !~ /^for\s*$Constant\s+(?:$Ident|-?$Constant)$/ &&	# for (...) bar()  |