Commit 461c6a30 authored by Sunil Mushran's avatar Sunil Mushran Committed by Mark Fasheh

ocfs2/net: Silence build warnings on sparc64

suseconds_t is type long on most arches except sparc64 where it is type int.
This patch silences the following warnings that are generated when building
on it.

netdebug.c: In function 'nst_seq_show':
netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 13 has type 'suseconds_t'
netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 15 has type 'suseconds_t'
netdebug.c:152: warning: format '%lu' expects type 'long unsigned int', but argument 17 has type 'suseconds_t'
netdebug.c: In function 'sc_seq_show':
netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 19 has type 'suseconds_t'
netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 21 has type 'suseconds_t'
netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 23 has type 'suseconds_t'
netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 25 has type 'suseconds_t'
netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 27 has type 'suseconds_t'
netdebug.c:332: warning: format '%lu' expects type 'long unsigned int', but argument 29 has type 'suseconds_t'
Signed-off-by: default avatarSunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: default avatarMark Fasheh <mfasheh@suse.com>
parent 01af4820
...@@ -146,8 +146,10 @@ static int nst_seq_show(struct seq_file *seq, void *v) ...@@ -146,8 +146,10 @@ static int nst_seq_show(struct seq_file *seq, void *v)
nst->st_task->comm, nst->st_node, nst->st_task->comm, nst->st_node,
nst->st_sc, nst->st_id, nst->st_msg_type, nst->st_sc, nst->st_id, nst->st_msg_type,
nst->st_msg_key, nst->st_msg_key,
nst->st_sock_time.tv_sec, nst->st_sock_time.tv_usec, nst->st_sock_time.tv_sec,
nst->st_send_time.tv_sec, nst->st_send_time.tv_usec, (unsigned long)nst->st_sock_time.tv_usec,
nst->st_send_time.tv_sec,
(unsigned long)nst->st_send_time.tv_usec,
nst->st_status_time.tv_sec, nst->st_status_time.tv_sec,
nst->st_status_time.tv_usec); nst->st_status_time.tv_usec);
} }
...@@ -274,7 +276,7 @@ static void *sc_seq_next(struct seq_file *seq, void *v, loff_t *pos) ...@@ -274,7 +276,7 @@ static void *sc_seq_next(struct seq_file *seq, void *v, loff_t *pos)
return sc; /* unused, just needs to be null when done */ return sc; /* unused, just needs to be null when done */
} }
#define TV_SEC_USEC(TV) TV.tv_sec, TV.tv_usec #define TV_SEC_USEC(TV) TV.tv_sec, (unsigned long)TV.tv_usec
static int sc_seq_show(struct seq_file *seq, void *v) static int sc_seq_show(struct seq_file *seq, void *v)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment