[PATCH] Re: 2.5.48 Compilation Failure skbuff.c

James Morris
2002-11-18T13:07:24Z

On Mon, 18 Nov 2002, bert hubert wrote:

> On Mon, Nov 18, 2002 at 01:36:48PM +0100, Rene Blokland wrote:
> > Hello, 2.5.48 Doesn't compile for me on a AMD k6-3 with gcc-3.2 and glibc-2.3.1
>
> I bet this just made ipsec mandatory :-)

Not quite yet :-)

A fix is below.

- James
--
James Morris
<jmorris@intercode.com.au>

diff -urN -X dontdiff linux-2.5.48.orig/include/linux/crypto.h linux-2.5.48.w1/include/linux/crypto.h
--- linux-2.5.48.orig/include/linux/crypto.h Tue Nov 12 00:12:06 2002
+++ linux-2.5.48.w1/include/linux/crypto.h Tue Nov 19 00:09:39 2002
@@ -196,12 +196,7 @@

static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm)
{
- struct crypto_alg *alg = tfm->__crt_alg;
-
- if (alg->cra_module)
- return alg->cra_module->name;
- else
- return NULL;
+ return module_name(tfm->__crt_alg->cra_module);
}

static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)