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
50.PHONY: $(PHONY)50.PHONY: $(PHONY)
51 51
52__fw_install: $(installed-fw)52__fw_install: $(installed-fw)
53
53__fw_modinst: $(installed-mod-fw)54__fw_modinst: $(installed-mod-fw)
55 @:
56
54__fw_modbuild: $(addprefix $(obj)/,$(mod-fw))57__fw_modbuild: $(addprefix $(obj)/,$(mod-fw))
58 @:
55 59
56FORCE:60FORCE:
57 61
scripts/kconfig/conf.c+1−1
@@ -596,7 +596,7 @@ int main(int ac, char **av) · 595 unmodified lines
596 break;596 break;
597 }597 }
598 598
599 if (conf_get_changed() && conf_write(NULL)) {599 if (conf_write(NULL)) {
600 fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));600 fprintf(stderr, _("\n*** Error during writing of the kernel configuration.\n\n"));
601 exit(1);601 exit(1);
602 }602 }
scripts/kconfig/confdata.c+2−6
@@ -222,10 +222,8 @@ load: · 221 unmodified lines
222 continue;222 continue;
223 if (def == S_DEF_USER) {223 if (def == S_DEF_USER) {
224 sym = sym_find(line + 9);224 sym = sym_find(line + 9);
225 if (!sym) {225 if (!sym)
226 conf_warning("trying to assign nonexistent symbol %s", line + 9);
227 break;226 break;
228 }
229 } else {227 } else {
230 sym = sym_lookup(line + 9, 0);228 sym = sym_lookup(line + 9, 0);
231 if (sym->type == S_UNKNOWN)229 if (sym->type == S_UNKNOWN)
@@ -261,10 +259,8 @@ load: · 29 unmodified lines
261 }259 }
262 if (def == S_DEF_USER) {260 if (def == S_DEF_USER) {
263 sym = sym_find(line + 7);261 sym = sym_find(line + 7);
264 if (!sym) {262 if (!sym)
265 conf_warning("trying to assign nonexistent symbol %s", line + 7);
266 break;263 break;
267 }
268 } else {264 } else {
269 sym = sym_lookup(line + 7, 0);265 sym = sym_lookup(line + 7, 0);
270 if (sym->type == S_UNKNOWN)266 if (sym->type == S_UNKNOWN)
scripts/kernel-doc+1−1
@@ -1403,7 +1403,7 @@ sub dump_struct($$) { · 1402 unmodified lines
1403 my $members = $3;1403 my $members = $3;
1404 1404
1405 # ignore embedded structs or unions1405 # ignore embedded structs or unions
1406 $members =~ s/{.*?}//g;1406 $members =~ s/{.*}//g;
1407 1407
1408 # ignore members marked private:1408 # ignore members marked private:
1409 $members =~ s/\/\*.*?private:.*?public:.*?\*\///gos;1409 $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
344 struct module *mod)344 struct module *mod)
345{345{
346 const unsigned long id_size = sizeof(struct pnp_device_id);346 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;
348 350
349 device_id_check(mod->name, "pnp", size, id_size, symval);351 device_id_check(mod->name, "pnp", size, id_size, symval);
350 352
351 buf_printf(&mod->dev_table_buf,353 for (i = 0; i < count; i++) {
352 "MODULE_ALIAS(\"pnp:d%s*\");\n", id->id);354 const char *id = (char *)devs[i].id;
353 buf_printf(&mod->dev_table_buf,355
354 "MODULE_ALIAS(\"acpi*:%s:*\");\n", id->id);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 }
355}361}
356 362
357/* looks like: "pnp:dD" for every device of the card */363/* looks like: "pnp:dD" for every device of the card */
scripts/patch-kernel+2−1
@@ -213,6 +213,7 @@ fi · 212 unmodified lines
213if [ $stopvers != "default" ]; then213if [ $stopvers != "default" ]; then
214 STOPSUBLEVEL=`echo $stopvers | cut -d. -f3`214 STOPSUBLEVEL=`echo $stopvers | cut -d. -f3`
215 STOPEXTRA=`echo $stopvers | cut -d. -f4`215 STOPEXTRA=`echo $stopvers | cut -d. -f4`
216 STOPFULLVERSION=${stopvers%%.$STOPEXTRA}
216 #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/"217 #echo "#___STOPSUBLEVEL=/$STOPSUBLEVEL/, STOPEXTRA=/$STOPEXTRA/"
217else218else
218 STOPSUBLEVEL=9999219 STOPSUBLEVEL=9999
@@ -249,7 +250,7 @@ while : # incrementing SUBLEVEL (s in v.p.s) · 30 unmodified lines
249do250do
250 CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"251 CURRENTFULLVERSION="$VERSION.$PATCHLEVEL.$SUBLEVEL"
251 EXTRAVER=252 EXTRAVER=
252 if [ $stopvers = $CURRENTFULLVERSION ]; then253 if [ $STOPFULLVERSION = $CURRENTFULLVERSION ]; then
253 echo "Stopping at $CURRENTFULLVERSION base as requested."254 echo "Stopping at $CURRENTFULLVERSION base as requested."
254 break255 break
255 fi256 fi