mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/6] staging: lustre: use built in min/max functions
@ 2014-12-26  0:04 Jeremiah Mahler
  2014-12-26  0:04 ` [PATCH 1/6] staging: lustre: use min/max instead of MIN/MAX, simple cases Jeremiah Mahler
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jeremiah Mahler @ 2014-12-26  0:04 UTC (permalink / raw)
  To: Oleg Drokin
  Cc: Andreas Dilger, Greg Kroah-Hartman, Peng Tao,
	Peter Zijlstra (Intel),
	Julia Lawall, Kirill Tkhai, Joe Perches, Zi Shen Lim,
	Dmitry Eremin, Masaru Nomura, Dan Carpenter, James A Shackleford,
	devel, linux-kernel, Jeremiah Mahler

The lustre modules define their own custom MIN, MAX and min_t functions.
However Linux provides these functions (include/linux/kernel.h) and their
design is more robust.  They check types and produce compiler warnings
if differing types are used.

This patch set updates the lustre modules to use the built in min/max
functions.

Jeremiah Mahler (6):
  staging: lustre: use min/max instead of MIN/MAX, simple cases
  staging: lustre: replace MIN with min_t
  staging: lustre: replace MIN/MAX with min_t/max_t
  staging: lustre: replace MIN with min, cast (__kernel_size_t)
  staging: lustre: replace MIN with min_t, remove cast
  staging: lustre: remove custom MIN/MAX and min_t operations

 .../lustre/include/linux/libcfs/libcfs_private.h     |  8 --------
 .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c   |  2 +-
 drivers/staging/lustre/lnet/klnds/socklnd/socklnd.c  |  2 +-
 .../staging/lustre/lnet/klnds/socklnd/socklnd_cb.c   |  6 +++---
 drivers/staging/lustre/lnet/lnet/lib-move.c          | 20 ++++++++++----------
 drivers/staging/lustre/lnet/lnet/router.c            |  4 ++--
 drivers/staging/lustre/lnet/lnet/router_proc.c       |  2 +-
 drivers/staging/lustre/lnet/selftest/conrpc.h        |  2 +-
 drivers/staging/lustre/lnet/selftest/rpc.c           |  4 ++--
 .../lustre/lustre/libcfs/linux/linux-tracefile.c     |  2 +-
 drivers/staging/lustre/lustre/osc/osc_internal.h     |  5 -----
 11 files changed, 22 insertions(+), 35 deletions(-)

-- 
2.1.4


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-26  0:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-26  0:04 [PATCH 0/6] staging: lustre: use built in min/max functions Jeremiah Mahler
2014-12-26  0:04 ` [PATCH 1/6] staging: lustre: use min/max instead of MIN/MAX, simple cases Jeremiah Mahler
2014-12-26  0:04 ` [PATCH 2/6] staging: lustre: replace MIN with min_t Jeremiah Mahler
2014-12-26  0:04 ` [PATCH 3/6] staging: lustre: replace MIN/MAX with min_t/max_t Jeremiah Mahler
2014-12-26  0:04 ` [PATCH 4/6] staging: lustre: replace MIN with min, cast (__kernel_size_t) Jeremiah Mahler
2014-12-26  0:04 ` [PATCH 5/6] staging: lustre: replace MIN with min_t, remove cast Jeremiah Mahler
2014-12-26  0:04 ` [PATCH 6/6] staging: lustre: remove custom MIN/MAX and min_t operations Jeremiah Mahler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®