Whamcloud - gitweb
LU-5396: use gfp_t for gfp mask, instead of (unsigned) int 00/11200/3
authorFrank Zago <fzago@cray.com>
Tue, 22 Jul 2014 20:33:25 +0000 (15:33 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 27 Aug 2014 16:00:52 +0000 (16:00 +0000)
commited2430bd5a8b1b61ce9ae5c4a321598dee728199
treefcbdbe9af969d1dc12a8c555924000c8efebf395
parent2e4d077611eebfbaa4ea8b7b75beb8afda8ca913
LU-5396: use gfp_t for gfp mask, instead of (unsigned) int

This fixes sparse warnings, such as:

  .../echo.c:670:62: warning: incorrect type in initializer
                              (different base types)
  .../echo.c:670:62:    expected int [signed] gfp_mask
  .../echo.c:670:62:    got restricted gfp_t

gfp_t was introduced in 2.6.14 (end of 2005), so that should
work all recent distributions.

Besides using gfp_t, there is no code change.

Signed-off-by: frank zago <fzago@cray.com>
Change-Id: I3464fb21c47c174c3a04cb512ce05e0e9de146fb
Reviewed-on: http://review.whamcloud.com/11200
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Jenkins
Reviewed-by: Patrick Farrell <paf@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
libcfs/include/libcfs/linux/linux-mem.h
libcfs/libcfs/linux/linux-mem.c
libcfs/libcfs/module.c
libcfs/libcfs/tracefile.c
libcfs/libcfs/tracefile.h
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_pool.c
lustre/llite/lloop.c
lustre/llite/rw.c
lustre/obdecho/echo.c
lustre/obdecho/echo_client.c
lustre/ptlrpc/client.c
lustre/ptlrpc/ptlrpc_internal.h