* list_head makes me crazy
@ 2001-12-06 19:08 Frank Cornelis
2001-12-06 19:28 ` Davide Libenzi
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Frank Cornelis @ 2001-12-06 19:08 UTC (permalink / raw)
To: linux-kernel
HELP,
In include/asm-i386/processor.h, struct thread_struct I can add
struct list_head *mylist;
but not
struct list_head mylist;
while in both cases
#include <linux/list.h>
is being used.
I really need this, so if anyone has the solution to my problem...
Thanks in advance, Frank.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: list_head makes me crazy
2001-12-06 19:08 list_head makes me crazy Frank Cornelis
@ 2001-12-06 19:28 ` Davide Libenzi
2001-12-06 20:12 ` Rik van Riel
2001-12-06 23:17 ` David Woodhouse
2 siblings, 0 replies; 4+ messages in thread
From: Davide Libenzi @ 2001-12-06 19:28 UTC (permalink / raw)
To: Frank Cornelis; +Cc: lkml
On Thu, 6 Dec 2001, Frank Cornelis wrote:
> HELP,
>
> In include/asm-i386/processor.h, struct thread_struct I can add
> struct list_head *mylist;
> but not
> struct list_head mylist;
> while in both cases
> #include <linux/list.h>
> is being used.
>
> I really need this, so if anyone has the solution to my problem...
>
> Thanks in advance, Frank.
It a cross includes problem and you can declare a pointer to something
coz the pointer has a fixed size while the full struct is prohibited
because its size is unknown.
- Davide
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: list_head makes me crazy
2001-12-06 19:08 list_head makes me crazy Frank Cornelis
2001-12-06 19:28 ` Davide Libenzi
@ 2001-12-06 20:12 ` Rik van Riel
2001-12-06 23:17 ` David Woodhouse
2 siblings, 0 replies; 4+ messages in thread
From: Rik van Riel @ 2001-12-06 20:12 UTC (permalink / raw)
To: Frank Cornelis; +Cc: linux-kernel
On Thu, 6 Dec 2001, Frank Cornelis wrote:
> In include/asm-i386/processor.h, struct thread_struct I can add
> struct list_head *mylist;
> but not
> struct list_head mylist;
A struct list_head is about twice as large as a pointer.
Rik
--
DMCA, SSSCA, W3C? Who cares? http://thefreeworld.net/
http://www.surriel.com/ http://distro.conectiva.com/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: list_head makes me crazy
2001-12-06 19:08 list_head makes me crazy Frank Cornelis
2001-12-06 19:28 ` Davide Libenzi
2001-12-06 20:12 ` Rik van Riel
@ 2001-12-06 23:17 ` David Woodhouse
2 siblings, 0 replies; 4+ messages in thread
From: David Woodhouse @ 2001-12-06 23:17 UTC (permalink / raw)
To: Frank Cornelis; +Cc: linux-kernel
Frank.Cornelis@rug.ac.be said:
> I really need this, so if anyone has the solution to my problem...
Unfortunately, linux/list.h includes asm/processor.h, via linux/prefetch.h.
Making them include each other is not going to work very well.
The include files need a fairly hefty shakeup in 2.5.
--
dwmw2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-12-06 23:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-06 19:08 list_head makes me crazy Frank Cornelis
2001-12-06 19:28 ` Davide Libenzi
2001-12-06 20:12 ` Rik van Riel
2001-12-06 23:17 ` David Woodhouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox