[openib-general] [PATCH] SDP warnings on x86_64
Tom Duffy
tduffy at sun.com
Fri Feb 11 19:47:41 PST 2005
On Fri, 2005-02-11 at 18:40 -0800, Libor Michalek wrote:
> If no one objects, a patch to clean up compile warnings on x86_64. Most
> of the warnings are a result of print format mismatches, the most common
> being the need to use %Zu for size_t/sizeof.
Looks good. This patch gets rid of the compile warnings on x86_64, but
I am still seeing these on sparc64:
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c: In function `_sdp_rcvd_rdma_wr':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:237: warning: int format, different type arg (arg 10)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:237: warning: int format, different type arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c: In function `_sdp_rcvd_rdma_rd':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:306: warning: int format, different type arg (arg 10)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:306: warning: int format, different type arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c: In function `_sdp_rcvd_snk_avail':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:800: warning: long long unsigned int format, __u64 arg (arg 9)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:800: warning: long long unsigned int format, __u64 arg (arg 6)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c: In function `_sdp_rcvd_src_avail':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:966: warning: long long unsigned int format, __u64 arg (arg 10)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:966: warning: long long unsigned int format, __u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c: In function `sdp_event_recv':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:1312: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:1312: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:1312: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_rcvd.c:1312: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c: In function `sdp_event_send':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:449: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:449: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:449: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:449: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:537: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:537: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:537: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_sent.c:537: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c: In function `sdp_event_read':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c:142: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c:142: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c:174: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c:174: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c:174: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_read.c:174: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c: In function `sdp_event_write':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c:66: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c:66: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c:125: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_write.c:125: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c: In function `_sdp_send_data_buff_snk':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:396: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:396: warning: unsigned int format, different type arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:396: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:396: warning: unsigned int format, different type arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c: In function `_sdp_send_data_iocb_snk':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:533: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:533: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c: In function `sdp_inet_send':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:2273: warning: int format, different type arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_send.c:2273: warning: int format, different type arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c: In function `_sdp_post_recv_buff':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:74: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:74: warning: unsigned int format, different type arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:74: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:74: warning: unsigned int format, different type arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c: In function `_sdp_post_rdma_buff':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:203: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:203: warning: unsigned int format, different type arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:203: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:203: warning: unsigned int format, different type arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c: In function `_sdp_post_rdma_iocb_src':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:363: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:363: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c: In function `sdp_recv_buff':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:903: warning: int format, different type arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:903: warning: int format, different type arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c: In function `sdp_inet_recv':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:1323: warning: int format, different type arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_recv.c:1323: warning: int format, different type arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_event.c: In function `sdp_cq_event_locked':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_event.c:46: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_event.c:46: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_event.c:105: warning: long long unsigned int format, u64 arg (arg 9)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_event.c:105: warning: long long unsigned int format, u64 arg (arg 6)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_pass.c: In function `sdp_cm_req_handler':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_pass.c:381: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_pass.c:381: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c: In function `_sdp_cm_path_complete':
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:384: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:384: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:384: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:384: warning: long long unsigned int format, u64 arg (arg 5)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:411: warning: long long unsigned int format, u64 arg (arg 7)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:411: warning: long long unsigned int format, u64 arg (arg 8)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:411: warning: long long unsigned int format, u64 arg (arg 4)
/build1/tduffy/openib-work/linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_actv.c:411: warning: long long unsigned int format, u64 arg (arg 5)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20050211/6eae56e4/attachment.sig>
More information about the general
mailing list