[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Modutils patch needs some more work?



Arnd Bergmann wrote:

Can you check if this patch fixes the problem without breaking for
32 bit kernels?


--- ./depmod/depmod.c	2003-10-04 14:59:11.000000000 +0200
+++ ./depmod/depmod.c.orig	2003-10-04 14:58:37.000000000 +0200
@@ -198,7 +198,7 @@
 	__u32 model_id;
 	__u32 specifier_id;
 	__u32 version;
-	ElfW(Addr) driver_data;
+	ElfW(Addr) driver_data __attribute__((aligned(sizeof(ElfW(Addr)))));
 };
/*


Yes, that seems to fix it... 32bit is working fine as well.

Thanks :)

Tony




Reply to: