View | Details | Raw Unified | Return to bug 139359
Collapse All | Expand All

(-)a/scripts/mod/modpost.c (-2 / +6 lines)
Lines 613-618 add_depends(struct buffer *b, struct mod Link Here
613
	buf_printf(b, "__attribute__((section(\".modinfo\"))) =\n");
613
	buf_printf(b, "__attribute__((section(\".modinfo\"))) =\n");
614
	buf_printf(b, "\"depends=");
614
	buf_printf(b, "\"depends=");
615
	for (s = mod->unres; s; s = s->next) {
615
	for (s = mod->unres; s; s = s->next) {
616
		const char *r;
617
616
		if (!s->module)
618
		if (!s->module)
617
			continue;
619
			continue;
618
620
Lines 620-627 add_depends(struct buffer *b, struct mod Link Here
620
			continue;
622
			continue;
621
623
622
		s->module->seen = 1;
624
		s->module->seen = 1;
623
		buf_printf(b, "%s%s", first ? "" : ",",
625
		r = strrchr(s->module->name, '/');
624
			   strrchr(s->module->name, '/') + 1);
626
		if (! r)
627
			continue;
628
		buf_printf(b, "%s%s", first ? "" : ",", r + 1);
625
		first = 0;
629
		first = 0;
626
	}
630
	}
627
	buf_printf(b, "\";\n");
631
	buf_printf(b, "\";\n");

Return to bug 139359