History

Merge branch 'master' into next

James Morris committed 18 years ago

Commit 86d68892 parents 93c06cb 4c246ed4405 files · +100406 −37946Browse files

Showing the changes to scripts (6 of 4405 files). Show all

Unified · Split

6 files
  1. scripts/Makefile.fwinst +4 −0
  2. scripts/kconfig/conf.c +1 −1
  3. scripts/kconfig/confdata.c +2 −6
  4. scripts/kernel-doc +1 −1
  5. scripts/mod/file2alias.c +11 −5
  6. scripts/patch-kernel +2 −1
scripts/Makefile.fwinst+4−0
@@ -50,8 +50,12 @@ PHONY += __fw_install __fw_modinst FORCE · 49 unmodified lines
5050 .PHONY: $(PHONY)
5151
5252 __fw_install: $(installed-fw)
53+
5354 __fw_modinst: $(installed-mod-fw)
55+ @:
56+
5457 __fw_modbuild: $(addprefix $(obj)/,$(mod-fw))
58+ @:
5559
5660 FORCE:
5761
scripts/kconfig/conf.c+1−1
@@ -596,7 +596,7 @@ int main(int ac, char **av) · 595 unmodified lines
596596 break;
597597 }
598598
599− if (conf_get_changed() && conf_write(NULL)) {
599+ if (conf_write(NULL)) {
600600 fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
601601 exit(1);
602602 }
scripts/kconfig/confdata.c+2−6
@@ -222,10 +222,8 @@ load: · 221 unmodified lines
222222 continue;
223223 if (def == S_DEF_USER) {
224224 sym = sym_find(line + 9);
225− if (!sym) {
226− conf_warning("trying to assign nonexistent symbol %s", line + 9);
225+ if (!sym)
227226 break;
228− }
229227 } else {
230228 sym = sym_lookup(line + 9, 0);
231229 if (sym->type == S_UNKNOWN)
@@ -261,10 +259,8 @@ load: · 29 unmodified lines
261259 }
262260 if (def == S_DEF_USER) {
263261 sym = sym_find(line + 7);
264− if (!sym) {
265− conf_warning("trying to assign nonexistent symbol %s", line + 7);
262+ if (!sym)
266263 break;
267− }
268264 } else {
269265 sym = sym_lookup(line + 7, 0);
270266 if (sym->type == S_UNKNOWN)
scripts/kernel-doc+1−1
@@ -1403,7 +1403,7 @@ sub dump_struct($$) { · 1402 unmodified lines
14031403 my $members = $3;
14041404
14051405 # ignore embedded structs or unions
1406− $members =~ s/{.*?}//g;
1406+ $members =~ s/{.*}//g;
14071407
14081408 # ignore members marked private:
14091409 $members =~ s/\/\*.*?private:.*?public:.*?\*\///gos;
scripts/mod/file2alias.c+11−5
@@ -344,14 +344,20 @@ static void do_pnp_device_entry(void *symval, unsigned long size, · 343 unmodified lines
344344 struct module *mod)
345345 {
346346 const unsigned long id_size = sizeof(struct pnp_device_id);
347− const struct pnp_device_id *id = symval;
347+ const unsigned int count = (size / id_size)-1;
348+ const struct pnp_device_id *devs = symval;
349+ unsigned int i;
348350
349351 device_id_check(mod->name, "pnp", size, id_size, symval);
350352
351− buf_printf(&mod->dev_table_buf,
352− "MODULE_ALIAS(\"pnp:d%s*\");\n", id->id);
353− buf_printf(&mod->dev_table_buf,
354− "MODULE_ALIAS(\"acpi*:%s:*\");\n", id->id);
353+ for (i = 0; i < count; i++) {
354+ const char *id = (char *)devs[i].id;
355+
356+ buf_printf(&mod->dev_table_buf,
357+ "MODULE_ALIAS(\"pnp:d%s*\");\n", id);
358+ buf_printf(&mod->dev_table_buf,
359+ "MODULE_ALIAS(\"acpi*:%s:*\");\n", id);
360+ }
355361 }
356362
357363 /* looks like: "pnp:dD" for every device of the card */
scripts/patch-kernel+2−1
@@ -213,6 +213,7 @@ fi · 212 unmodified lines
213213 if [ $stopvers != "default" ]; then
214214 STOPSUBLEVEL=`echo $stopvers | cut -d. -f3`
215215 STOPEXTRA=`echo $stopvers | cut -d. -f4`
216+ STOPFULLVERSION=${stopvers%%.$STOPEXTRA}
216217 #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/"
217218 else
218219 STOPSUBLEVEL=9999
@@ -249,7 +250,7 @@ while : # incrementing SUBLEVEL (s in v.p.s) · 30 unmodified lines
249250 do
250251 CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
251252 EXTRAVER=
252− if [ $stopvers = $CURRENTFULLVERSION ]; then
253+ if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
253254 echo "Stopping at $CURRENTFULLVERSION base as requested."
254255 break
255256 fi