Re: 2.5.48 Compilation Failure skbuff.c

Werner Almesberger
2002-11-18T13:05:39Z

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/____________________________________________/