From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 22409 invoked from network); 16 May 2000 14:30:42 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 16 May 2000 14:30:42 -0000 Received: from garp.physik.uni-oldenburg.de (root@garp.physik.uni-oldenburg.de [134.106.111.15]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA27965 for ; Tue, 16 May 2000 10:30:41 -0400 Received: from mizar (mizar [134.106.163.145]) by garp.physik.uni-oldenburg.de (8.9.3/8.9.3/29.03.1999) with ESMTP id QAA13072 for ; Tue, 16 May 2000 16:30:39 +0200 Message-Id: <200005161430.QAA13072@garp.physik.uni-oldenburg.de> To: axp-list@redhat.com From: jnix@medi.physik.uni-oldenburg.de Subject: Portable pointers Date: Tue, 16 May 2000 16:30:31 +0200 Sender: jnix@mizar.physik.uni-oldenburg.de 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