Re: 2.5.48 Compilation Failure skbuff.c

From: Werner Almesberger (wa@almesberger.net)
Date: Mon Nov 18 2002 - 08:12:30 EST


Rene Blokland wrote:
> include/linux/crypto.h: In function `crypto_tfm_alg_modname':
> include/linux/crypto.h:202: dereferencing pointer to incomplete type
[...]
> Any comments?

Disabling modules should work around this. Alternatively, you can
try the untested patch below. I also had to disable devfs to build
2.4.58.

- Werner

---------------------------------- cut here -----------------------------------

--- ../linux-2.5.48.orig/include/linux/crypto.h Mon Nov 18 01:29:29 2002
+++ linux-2.5.48/include/linux/crypto.h Mon Nov 18 10:03:46 2002
@@ -16,6 +16,7 @@
 #ifndef _LINUX_CRYPTO_H
 #define _LINUX_CRYPTO_H
 
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
@@ -196,12 +197,16 @@
 
 static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm)
 {
+#ifdef CONFIG_MODULES
         struct crypto_alg *alg = tfm->__crt_alg;
         
         if (alg->cra_module)
                 return alg->cra_module->name;
         else
                 return NULL;
+#else
+ return NULL;
+#endif
 }
 
 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)

-- 
  _________________________________________________________________________
 / Werner Almesberger, Buenos Aires, Argentina         wa@almesberger.net /
/_http://www.almesberger.net/____________________________________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:22 EST