Bug 602 - Make Warnings on SuSE 9.2 64-bit
: Make Warnings on SuSE 9.2 64-bit
Status: VERIFIED FIXED
: IPW2200
Install
: 1.0.1
: __UNSPECIFIED__ SuSE
: P2 normal
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-03-08 14:52 by
Modified: 2005-10-08 03:23 (History)


Attachments
amd64 cleanup patch (5.68 KB, patch)
2005-04-06 16:09, Pedro Ramalhais
Details | Diff
Results (2.15 KB, text/plain)
2005-04-06 21:08, Ben
Details
New amd64 warnings cleanup patch tested on sf.net compile farm's amd64 machines (6.57 KB, patch)
2005-04-11 20:20, Pedro Ramalhais
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-03-08 14:52:20
Please note that I'm new to linux.

I am running SuSE 9.2 64-bit with the 2.6.8-24.10 kernel, when I try to compile
the driver there are several integer format messages that appear.  I have not
been able to successfully load the driver, but I am not sure if this is the problem.

I have included a terminal dump:

amd64:~/Desktop/ipw2200-1.0.1 # make
make -C /lib/modules/2.6.8-24.10-default/build
SUBDIRS=/root/Desktop/ipw2200-1.0.1 MODVERDIR=/root/Desktop/ipw2200-1.0.1 modules
make[1]: Entering directory `/usr/src/linux-2.6.8-24.10-obj/x86_64/default'
make -C ../../../linux-2.6.8-24.10 O=../linux-2.6.8-24.10-obj/x86_64/default modules
  CC [M]  /root/Desktop/ipw2200-1.0.1/ipw2200.o
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `_ipw_write_reg8':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:244: warning: cast from pointer to integer
of different size
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `ipw_get_ordinal':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:519: warning: int format, different type
arg (arg 4)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:552: warning: int format, different type
arg (arg 4)
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `ipw_fw_dma_write_command_block':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:1766: warning: int format, different type
arg (arg 7)
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `ipw_get_fw':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:2368: warning: int format, different type
arg (arg 7)
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `ipw_queue_tx_init':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:2723: warning: int format, different type
arg (arg 2)
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `ipw_rx_notification':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3560: warning: int format, different type
arg (arg 5)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3576: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3609: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3626: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3646: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3667: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3681: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c:3693: warning: int format, different type
arg (arg 3)
/root/Desktop/ipw2200-1.0.1/ipw2200.c: In function `ipw_handle_data_packet':
/root/Desktop/ipw2200-1.0.1/ipw2200.c:5532: warning: cast from pointer to
integer of different size
/root/Desktop/ipw2200-1.0.1/ipw2200.c:5532: warning: cast from pointer to
integer of different size
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_module.o
/root/Desktop/ipw2200-1.0.1/ieee80211_module.c: In function
`store_debug_level':/root/Desktop/ipw2200-1.0.1/ieee80211_module.c:207: warning:
comparison of distinct pointer types lacks a cast
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_tx.o
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_rx.o
/root/Desktop/ipw2200-1.0.1/ieee80211_rx.c: In function `ieee80211_network_init':
/root/Desktop/ipw2200-1.0.1/ieee80211_rx.c:862: warning: int format, different
type arg (arg 4)
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_wx.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ieee80211.o
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt.o
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_wep.o
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_ccmp.o
  CC [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_tkip.o
  Building modules, stage 2.
  MODPOST
  CC      /root/Desktop/ipw2200-1.0.1/ieee80211.mod.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ieee80211.ko
  CC      /root/Desktop/ipw2200-1.0.1/ieee80211_crypt.mod.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt.ko
  CC      /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_ccmp.mod.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_ccmp.ko
  CC      /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_tkip.mod.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_tkip.ko
  CC      /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_wep.mod.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ieee80211_crypt_wep.ko
  CC      /root/Desktop/ipw2200-1.0.1/ipw2200.mod.o
  LD [M]  /root/Desktop/ipw2200-1.0.1/ipw2200.ko
make[1]: Leaving directory `/usr/src/linux-2.6.8-24.10-obj/x86_64/default'
------- Comment #1 From 2005-03-16 20:57:07 -------
I think the warnings are caused by the different size of the pointers of IA32
and ADM64.A lot of "u32" exist in the code.I'm not sure...
------- Comment #2 From 2005-04-06 16:09:40 -------
Created an attachment (id=333) [details]
amd64 cleanup patch

Can you please try if this patch removes the warnings?
------- Comment #3 From 2005-04-06 21:08:17 -------
Created an attachment (id=334) [details]
Make Results
------- Comment #4 From 2005-04-06 21:09:49 -------
(From update of attachment 334 [details])
The patch did the trick.  Thank You for working your 'magic' ;-)

There were still a couple int format errors, so I included the make results.

Ben
------- Comment #5 From 2005-04-06 21:10:57 -------
Patch fixed problems.
------- Comment #6 From 2005-04-11 20:20:56 -------
Created an attachment (id=339) [details]
New amd64 warnings cleanup patch tested on sf.net compile farm's amd64 machines

Linux amd64-linux1.sourceforge.net 2.6.9-1.667smp #1 SMP Tue Nov 2 15:09:11 EST
2004 x86_64 x86_64 x86_64 GNU/Linux

gcc (GCC) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

ramalhais@amd64-linux1:~/wireless/ipw2200-1.0.3_amd64_clean_warnings$ make
make -C /lib/modules/2.6.9-1.667smp/build
SUBDIRS=/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings
MODVERDIR=/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings
modules
make[1]: Entering directory `/lib/modules/2.6.9-1.667smp/build'
  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ipw2200.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_module.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_tx.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_rx.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_wx.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_wep.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_ccmp.o

  CC [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_tkip.o

  Building modules, stage 2.
  MODPOST
Warning: could not find versions for .tmp_versions/ipw2200.mod
  CC	 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211.mod.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211.ko

  CC	 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt.mod.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt.ko

  CC	 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_ccmp.mod.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_ccmp.ko

  CC	 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_tkip.mod.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_tkip.ko

  CC	 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_wep.mod.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ieee80211_crypt_wep.ko

  CC	 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ipw2200.mod.o

  LD [M] 
/home/users/r/ra/ramalhais/wireless/ipw2200-1.0.3_amd64_clean_warnings/ipw2200.ko

make[1]: Leaving directory `/lib/modules/2.6.9-1.667smp/build'
ramalhais@amd64-linux1:~/wireless/ipw2200-1.0.3_amd64_clean_warnings$
------- Comment #7 From 2005-04-11 20:26:19 -------
The only test i made was compiling it.
Please someone test the last patch and if the driver still works, resolve the
bug as TESTED_PATCH_EXISTS.
------- Comment #8 From 2005-04-12 14:08:16 -------
Compiles without errors/warnings and runs (SuSe 9.2 64-bit 2.6.8-24.14 kernel)
------- Comment #9 From 2005-06-02 00:52:34 -------
patch applied.
------- Comment #10 From 2005-06-02 00:53:18 -------
mark as fixed.
------- Comment #11 From 2005-07-12 19:44:44 -------
Mark as verified in 1.0.5.