diff --git a/lustre/utils/obd.c b/lustre/utils/obd.c
index 4ba20ae1781dae569983bc26ed3626dbee874f01..8e6db0bab204df9899e49449c22e1f2234bb741e 100644
--- a/lustre/utils/obd.c
+++ b/lustre/utils/obd.c
@@ -121,7 +121,7 @@ struct lsm_buffer {
         struct lov_oinfo *ptrs[MAX_STRIPES];
 } lsm_buffer;
 
-static int l2_ioctl(int dev_id, int opc, void *buf)
+static int l2_ioctl(int dev_id, unsigned int opc, void *buf)
 {
         return l_ioctl(dev_id, opc, buf);
 }