From: jnix@medi.physik.uni-oldenburg.de
To: axp-list@redhat.com
Subject: Portable pointers
Date: Tue, 16 May 2000 16:30:31 +0200 [thread overview]
Message-ID: <200005161430.QAA13072@garp.physik.uni-oldenburg.de> (raw)
Hi,
I am trying to compile the ALSA (Adcanced Linux Sound Architecture)
code (Version 0.5.7) and get a few warnings like:
mixer.c:1128: warning: passing arg 1 of `swpipl' makes integer from pointer without a cast
rme9652.c:347: warning: cast from pointer to integer of different size
The latter (which I would like very much to work), is due to this code
fragment:
{
u32 pb;
u32 cb;
cb = snd_malloc_pages (RME9652_DMA_AREA_BYTES(rme9652), &pg, 1);
pb = snd_malloc_pages (RME9652_DMA_AREA_BYTES(rme9652), &pg, 1);
[ ...]
}
and so on. If I replace u32 for u64, the warnings get eliminated as
one would expect from the comments in the alpha-linux FAQ. Now, what
is the preferred canonical way or The Right Thing to code this in a
portable way, that means a portable int <-> void* cast ?
Another thing, the drivers use autoconf / configure and it is
necessary to add the -mcpu=ev6 flag to the gcc options. What has to be
changed there correctly ?
many thanks in advance,
Johannes
reply other threads:[~2000-05-16 14:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox