public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Werner Almesberger <wa@almesberger.net>
To: reneb@cistron.nl
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.48 Compilation Failure skbuff.c
Date: Mon, 18 Nov 2002 10:12:30 -0300	[thread overview]
Message-ID: <20021118101230.N1407@almesberger.net> (raw)
In-Reply-To: <slrnathnn0.aas.reneb@orac.aais.org>; from reneb@orac.aais.org on Mon, Nov 18, 2002 at 01:36:48PM +0100

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

  parent reply	other threads:[~2002-11-18 13:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18 12:36 2.5.48 Compilation Failure skbuff.c Rene Blokland
2002-11-18 12:54 ` bert hubert
2002-11-18 13:12   ` Thomas Molina
2002-11-18 13:14   ` [PATCH] " James Morris
2002-11-18 14:40     ` Rene Blokland
2002-11-18 23:05     ` David S. Miller
2002-11-18 13:31   ` Rene Blokland
2002-11-18 13:12 ` Werner Almesberger [this message]
2002-11-18 13:23   ` Thomas Molina
2002-11-18 13:51     ` Werner Almesberger
2002-11-18 13:37   ` Rene Blokland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021118101230.N1407@almesberger.net \
    --to=wa@almesberger.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=reneb@cistron.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox