Skip to contentSkip to conversation

sound: au88x0_core.c fix incorrect signedness warnings

PATCH Harvey Harrison 2 participants 2 messages Feb 28, 2008 Sound

lore
Share & tools
lore
#0 lore raw

Fixes the following, repeated at every callsite, vortex->fixed_res is always passed in this argument, the change to unsigned int won't change anything.

sound/pci/au88x0/au88x0_core.c:2047:54: warning: incorrect type in argument 2 (different signedness)
sound/pci/au88x0/au88x0_core.c:2047:54: expected int *resmap
sound/pci/au88x0/au88x0_core.c:2047:54: got unsigned int *<noident>

---
 sound/pci/au88x0/au88x0.h      |    4 ++--
 sound/pci/au88x0/au88x0_core.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
sound/pci/au88x0/au88x0.h +2 -2
index 4aad35b..31e6899 100644
@@ -242,8 +242,8 @@ static int vortex_alsafmt_aspfmt(int alsafmt);
 static void vortex_connect_default(vortex_t * vortex, int en);
 static int vortex_adb_allocroute(vortex_t * vortex, int dma, int nr_ch,
 				 int dir, int type);
-static char vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out,
-				  int restype);
+static char vortex_adb_checkinout(vortex_t * vortex, unsigned int resmap[],
+				  int out, int restype);
 #ifndef CHIP_AU8810
 static int vortex_wt_allocroute(vortex_t * vortex, int dma, int nr_ch);
 static void vortex_wt_connect(vortex_t * vortex, int en);
sound/pci/au88x0/au88x0_core.c +1 -1
index 333c62d..0ee8202 100644
@@ -2000,7 +2000,7 @@ static int resnum[VORTEX_RESOURCE_LAST] =
  restype: Indicates type of resource to be checked in or out.
 */
 static char
-vortex_adb_checkinout(vortex_t * vortex, int resmap[], int out, int restype)
+vortex_adb_checkinout(vortex_t * vortex, unsigned int resmap[], int out, int restype)
 {
 	int i, qty = resnum[restype], resinuse = 0;
 
Signature · 1 line
1.5.4.3.342.g99e8
#1 lore raw
Quoted 1 line

Subject: Re: [PATCH 13/12] sound: au88x0_core.c fix incorrect signedness warnings

The patch overflow? ;-)

At Wed, 27 Feb 2008 17:06:43 -0800,

Quoted 7 lines · Harvey Harrison

Fixes the following, repeated at every callsite, vortex->fixed_res is always passed in this argument, the change to unsigned int won't change anything.

sound/pci/au88x0/au88x0_core.c:2047:54: warning: incorrect type in argument 2 (different signedness)
sound/pci/au88x0/au88x0_core.c:2047:54: expected int *resmap
sound/pci/au88x0/au88x0_core.c:2047:54: got unsigned int *<noident>

I thought this warning is rather a compiler issue. We had this with some gcc version but it was suppressed as default in the end.

Fine to fix in the code as it's obviously correct, though.

thanks,

Takashi