diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/kconfig/streamline_config.pl | 80 | ||||
| -rwxr-xr-x | scripts/link-vmlinux.sh | 4 | ||||
| -rw-r--r-- | scripts/spelling.txt | 16 | 
3 files changed, 61 insertions, 39 deletions
diff --git a/scripts/kconfig/streamline_config.pl b/scripts/kconfig/streamline_config.pl index 911c72a2dbc4..1a5fea0519eb 100755 --- a/scripts/kconfig/streamline_config.pl +++ b/scripts/kconfig/streamline_config.pl @@ -601,12 +601,12 @@ if (defined($ENV{'LMC_KEEP'})) {  sub in_preserved_kconfigs {      my $kconfig = $config2kfile{$_[0]};      if (!defined($kconfig)) { -        return 0; +	return 0;      }      foreach my $excl (@preserved_kconfigs) { -        if($kconfig =~ /^$excl/) { -            return 1; -        } +	if($kconfig =~ /^$excl/) { +	    return 1; +	}      }      return 0;  } @@ -629,52 +629,52 @@ foreach my $line (@config_file) {      }      if (/CONFIG_MODULE_SIG_KEY="(.+)"/) { -        my $orig_cert = $1; -        my $default_cert = "certs/signing_key.pem"; - -        # Check that the logic in this script still matches the one in Kconfig -        if (!defined($depends{"MODULE_SIG_KEY"}) || -            $depends{"MODULE_SIG_KEY"} !~ /"\Q$default_cert\E"/) { -            print STDERR "WARNING: MODULE_SIG_KEY assertion failure, ", -                "update needed to ", __FILE__, " line ", __LINE__, "\n"; -            print; -        } elsif ($orig_cert ne $default_cert && ! -f $orig_cert) { -            print STDERR "Module signature verification enabled but ", -                "module signing key \"$orig_cert\" not found. Resetting ", -                "signing key to default value.\n"; -            print "CONFIG_MODULE_SIG_KEY=\"$default_cert\"\n"; -        } else { -            print; -        } -        next; +	my $orig_cert = $1; +	my $default_cert = "certs/signing_key.pem"; + +	# Check that the logic in this script still matches the one in Kconfig +	if (!defined($depends{"MODULE_SIG_KEY"}) || +	    $depends{"MODULE_SIG_KEY"} !~ /"\Q$default_cert\E"/) { +	    print STDERR "WARNING: MODULE_SIG_KEY assertion failure, ", +		"update needed to ", __FILE__, " line ", __LINE__, "\n"; +	    print; +	} elsif ($orig_cert ne $default_cert && ! -f $orig_cert) { +	    print STDERR "Module signature verification enabled but ", +		"module signing key \"$orig_cert\" not found. Resetting ", +		"signing key to default value.\n"; +	    print "CONFIG_MODULE_SIG_KEY=\"$default_cert\"\n"; +	} else { +	    print; +	} +	next;      }      if (/CONFIG_SYSTEM_TRUSTED_KEYS="(.+)"/) { -        my $orig_keys = $1; - -        if (! -f $orig_keys) { -            print STDERR "System keyring enabled but keys \"$orig_keys\" ", -                "not found. Resetting keys to default value.\n"; -            print "CONFIG_SYSTEM_TRUSTED_KEYS=\"\"\n"; -        } else { -            print; -        } -        next; +	my $orig_keys = $1; + +	if (! -f $orig_keys) { +	    print STDERR "System keyring enabled but keys \"$orig_keys\" ", +		"not found. Resetting keys to default value.\n"; +	    print "CONFIG_SYSTEM_TRUSTED_KEYS=\"\"\n"; +	} else { +	    print; +	} +	next;      }      if (/^(CONFIG.*)=(m|y)/) { -        if (in_preserved_kconfigs($1)) { -            dprint "Preserve config $1"; -            print; -            next; -        } +	if (in_preserved_kconfigs($1)) { +	    dprint "Preserve config $1"; +	    print; +	    next; +	}  	if (defined($configs{$1})) {  	    if ($localyesconfig) { -	        $setconfigs{$1} = 'y'; +		$setconfigs{$1} = 'y';  		print "$1=y\n";  		next;  	    } else { -	        $setconfigs{$1} = $2; +		$setconfigs{$1} = $2;  	    }  	} elsif ($2 eq "m") {  	    print "# $1 is not set\n"; @@ -702,3 +702,5 @@ foreach my $module (keys(%modules)) {  	print STDERR "\n";      }  } + +# vim: softtabstop=4 diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 0e0f6466b18d..475faa15854e 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -235,6 +235,10 @@ gen_btf()  	vmlinux_link ${1} +	if [ "${pahole_ver}" -ge "118" ] && [ "${pahole_ver}" -le "121" ]; then +		# pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars +		extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_vars" +	fi  	if [ "${pahole_ver}" -ge "121" ]; then  		extra_paholeopt="${extra_paholeopt} --btf_gen_floats"  	fi diff --git a/scripts/spelling.txt b/scripts/spelling.txt index 7b6a01291598..17fdc620d548 100644 --- a/scripts/spelling.txt +++ b/scripts/spelling.txt @@ -22,6 +22,7 @@ absolut||absolute  absoulte||absolute  acccess||access  acceess||access +accelaration||acceleration  acceleratoin||acceleration  accelleration||acceleration  accesing||accessing @@ -264,6 +265,7 @@ calucate||calculate  calulate||calculate  cancelation||cancellation  cancle||cancel +canot||cannot  capabilites||capabilities  capabilties||capabilities  capabilty||capability @@ -494,7 +496,10 @@ digial||digital  dimention||dimension  dimesions||dimensions  diconnected||disconnected +disabed||disabled +disble||disable  disgest||digest +disired||desired  dispalying||displaying  diplay||display  directon||direction @@ -710,6 +715,7 @@ havind||having  heirarchically||hierarchically  heirarchy||hierarchy  helpfull||helpful +hearbeat||heartbeat  heterogenous||heterogeneous  hexdecimal||hexadecimal  hybernate||hibernate @@ -989,6 +995,7 @@ notications||notifications  notifcations||notifications  notifed||notified  notity||notify +nubmer||number  numebr||number  numner||number  obtaion||obtain @@ -1014,8 +1021,10 @@ ommiting||omitting  ommitted||omitted  onself||oneself  ony||only +openning||opening  operatione||operation  opertaions||operations +opportunies||opportunities  optionnal||optional  optmizations||optimizations  orientatied||orientated @@ -1111,6 +1120,7 @@ prefitler||prefilter  preform||perform  premption||preemption  prepaired||prepared +prepate||prepare  preperation||preparation  preprare||prepare  pressre||pressure @@ -1123,6 +1133,7 @@ privilaged||privileged  privilage||privilege  priviledge||privilege  priviledges||privileges +privleges||privileges  probaly||probably  procceed||proceed  proccesors||processors @@ -1167,6 +1178,7 @@ promixity||proximity  psudo||pseudo  psuedo||pseudo  psychadelic||psychedelic +purgable||purgeable  pwoer||power  queing||queuing  quering||querying @@ -1180,6 +1192,7 @@ receieve||receive  recepient||recipient  recevied||received  receving||receiving +recievd||received  recieved||received  recieve||receive  reciever||receiver @@ -1228,6 +1241,7 @@ reponse||response  representaion||representation  reqeust||request  reqister||register +requed||requeued  requestied||requested  requiere||require  requirment||requirement @@ -1332,6 +1346,7 @@ singal||signal  singed||signed  sleeped||slept  sliped||slipped +softwade||software  softwares||software  soley||solely  souce||source @@ -1510,6 +1525,7 @@ unintialized||uninitialized  unitialized||uninitialized  unkmown||unknown  unknonw||unknown +unknouwn||unknown  unknow||unknown  unkown||unknown  unamed||unnamed  |