public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] module-init-tools-0.9.7, depmod and GPL-only symbols
@ 2003-01-10 22:16 Petr Vandrovec
  2003-01-11  7:38 ` Rusty Russell
  0 siblings, 1 reply; 2+ messages in thread
From: Petr Vandrovec @ 2003-01-10 22:16 UTC (permalink / raw)
  To: rusty; +Cc: linux-kernel

Hi Rusty,
   I finally got 2.5.56 running with configuration I always used (== almost
everything modular), and I found that module-init-tools-0.9.7 has small
problem with GPL-only symbols: depmod ignores them :-(

   As I did not notice any newer version, please apply patch below if you
did not do something simillar already.

   Of course you can create better solution, which will actually check
license and so on, but I just decided to leave this task on kernel, as
I believe that we do not want such code duplication between kernel and
module-init-tools.
						Thanks,
							Petr Vandrovec


diff -ur module-init-tools-0.9.7.src/moduleops_core.c module-init-tools-0.9.7/moduleops_core.c
--- module-init-tools-0.9.7.src/moduleops_core.c	2002-12-26 07:04:42.000000000 +0100
+++ module-init-tools-0.9.7/moduleops_core.c	2003-01-10 23:08:47.000000000 +0100
@@ -30,6 +30,9 @@
 	ksyms = PERBIT(load_section)(module->mmap, "__ksymtab", &size);
 	for (i = 0; i < size / sizeof(struct PERBIT(kernel_symbol)); i++)
 		add_symbol(ksyms[i].name, module);
+	ksyms = PERBIT(load_section)(module->mmap, "__gpl_ksymtab", &size);
+	for (i = 0; i < size / sizeof(struct PERBIT(kernel_symbol)); i++)
+		add_symbol(ksyms[i].name, module);
 }
 
 /* Calculate the dependencies for this module */

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-11  9:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-10 22:16 [PATCH] module-init-tools-0.9.7, depmod and GPL-only symbols Petr Vandrovec
2003-01-11  7:38 ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox