Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 6 Dec 2001 14:17:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 6 Dec 2001 14:17:33 -0500 Received: from mail.xmailserver.org ([208.129.208.52]:53766 "EHLO mail.xmailserver.org") by vger.kernel.org with ESMTP id ; Thu, 6 Dec 2001 14:17:26 -0500 Date: Thu, 6 Dec 2001 11:28:31 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Frank Cornelis cc: lkml Subject: Re: list_head makes me crazy In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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 - 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/