]> err.no Git - linux-2.6/commitdiff
[XFS] Fix sparse warnings in ktrace.[ch]
authorChristoph Hellwig <hch@sgi.com>
Wed, 2 Nov 2005 04:07:23 +0000 (15:07 +1100)
committerNathan Scott <nathans@sgi.com>
Wed, 2 Nov 2005 04:07:23 +0000 (15:07 +1100)
SGI-PV: 943556
SGI-Modid: xfs-linux:xfs-kern:200113a

Signed-off-by: Christoph Hellwig <hch@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/support/ktrace.c
fs/xfs/support/ktrace.h

index 0ebb872d7da80a9311e716d0cad8b6b18f40c513..841aa4c15b8a205627ed7e6d2f30cbb2059abaf3 100644 (file)
@@ -50,7 +50,7 @@ ktrace_uninit(void)
  * number of entries.
  */
 ktrace_t *
-ktrace_alloc(int nentries, int sleep)
+ktrace_alloc(int nentries, unsigned int __nocast sleep)
 {
        ktrace_t        *ktp;
        ktrace_entry_t  *ktep;
index 4c5259a8afb434b1375158c6137507b06143b4a5..0d73216287c06b3cd1b08b3600869277d19e8f43 100644 (file)
@@ -52,7 +52,7 @@ typedef struct ktrace_snap {
 extern void ktrace_init(int zentries);
 extern void ktrace_uninit(void);
 
-extern ktrace_t *ktrace_alloc(int, int);
+extern ktrace_t *ktrace_alloc(int, unsigned int __nocast);
 extern void ktrace_free(ktrace_t *);
 
 extern void ktrace_enter(