All of lore.kernel.org
 help / color / mirror / Atom feed
* incomplete type?!?
@ 2003-03-06 22:46 Giuliano Pochini
  2003-03-10 13:45 ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Giuliano Pochini @ 2003-03-06 22:46 UTC (permalink / raw)
  To: alsa-devel

I can't compile spin_lockxxxx(lock):

echoaudio.c:237: dereferencing pointer to incomplete type

I try to compile my module with the same args, defines and includes of
azt3328.c. Spinlock operations expands to exactly the same stuff
according cpp, but azt3328 compiles fine. What am I missing ?

Bye.




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: incomplete type?!?
  2003-03-06 22:46 incomplete type?!? Giuliano Pochini
@ 2003-03-10 13:45 ` Takashi Iwai
  2003-03-10 16:33   ` Giuliano Pochini
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2003-03-10 13:45 UTC (permalink / raw)
  To: Giuliano Pochini; +Cc: alsa-devel

At 06 Mar 2003 22:46:45 +0000,
Giuliano Pochini wrote:
> 
> I can't compile spin_lockxxxx(lock):
> 
> echoaudio.c:237: dereferencing pointer to incomplete type
> 
> I try to compile my module with the same args, defines and includes of
> azt3328.c. Spinlock operations expands to exactly the same stuff
> according cpp, but azt3328 compiles fine. What am I missing ?

did you include the correct kernel header files?
i guess spinlock_t is not defined properly.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: incomplete type?!?
  2003-03-10 13:45 ` Takashi Iwai
@ 2003-03-10 16:33   ` Giuliano Pochini
  2003-03-10 16:38     ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Giuliano Pochini @ 2003-03-10 16:33 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


On 10-Mar-2003 Takashi Iwai wrote:
> At 06 Mar 2003 22:46:45 +0000,
> Giuliano Pochini wrote:
>>
>> I can't compile spin_lockxxxx(lock):
>>
>> echoaudio.c:237: dereferencing pointer to incomplete type
>>
>> I try to compile my module with the same args, defines and includes of
>> azt3328.c. Spinlock operations expands to exactly the same stuff
>> according cpp, but azt3328 compiles fine. What am I missing ?
>
> did you include the correct kernel header files?
> i guess spinlock_t is not defined properly.

Yes... I believe. I also copied the #include's from azt3328.c and
I added <spinlock.h>. I hate problems with header files #:(


Bye.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: incomplete type?!?
  2003-03-10 16:33   ` Giuliano Pochini
@ 2003-03-10 16:38     ` Takashi Iwai
  0 siblings, 0 replies; 4+ messages in thread
From: Takashi Iwai @ 2003-03-10 16:38 UTC (permalink / raw)
  To: Giuliano Pochini; +Cc: alsa-devel

At Mon, 10 Mar 2003 17:33:36 +0100 (CET),
Giuliano Pochini wrote:
> 
> 
> On 10-Mar-2003 Takashi Iwai wrote:
> > At 06 Mar 2003 22:46:45 +0000,
> > Giuliano Pochini wrote:
> >>
> >> I can't compile spin_lockxxxx(lock):
> >>
> >> echoaudio.c:237: dereferencing pointer to incomplete type
> >>
> >> I try to compile my module with the same args, defines and includes of
> >> azt3328.c. Spinlock operations expands to exactly the same stuff
> >> according cpp, but azt3328 compiles fine. What am I missing ?
> >
> > did you include the correct kernel header files?
> > i guess spinlock_t is not defined properly.
> 
> Yes... I believe. I also copied the #include's from azt3328.c and
> I added <spinlock.h>. I hate problems with header files #:(

you mean <linux/spinlock.h>, right?

anyway, it's better to show the code and the exact error messages for
debugging if you have nothing against...  it might be a simple typo,
such as the forgotten '&' etc.


Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-10 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-06 22:46 incomplete type?!? Giuliano Pochini
2003-03-10 13:45 ` Takashi Iwai
2003-03-10 16:33   ` Giuliano Pochini
2003-03-10 16:38     ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.