All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] staging: lustre: include: replace macros by functions
@ 2015-04-01 13:57 Aya Mahfouz
  2015-04-01 13:58 ` [PATCH 1/3] staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev Aya Mahfouz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Aya Mahfouz @ 2015-04-01 13:57 UTC (permalink / raw)
  To: outreachy-kernel

Replace two macros with static inline functions that return values.
Inline functions are preferred because compilers are aware of them and
can optimize the calls. In addition, if macros are treated like
functions they can introduce bugs into the code.

Aya Mahfouz (3):
  staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev
  staging: lustre: include: replace OBD_CHECK_DEV_ACTIVE by
    obd_check_dev_active
  staging: lustre: include: remove unused macros

 drivers/staging/lustre/lustre/include/obd_class.h | 77 +++++++++++++++--------
 1 file changed, 50 insertions(+), 27 deletions(-)

-- 
2.1.0


-- 
Kind Regards,
Aya Saif El-yazal Mahfouz


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

end of thread, other threads:[~2015-04-01 15:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-01 13:57 [PATCH 0/3] staging: lustre: include: replace macros by functions Aya Mahfouz
2015-04-01 13:58 ` [PATCH 1/3] staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev Aya Mahfouz
2015-04-01 14:34   ` [Outreachy kernel] " Julia Lawall
2015-04-01 13:59 ` [PATCH 2/3] staging: lustre: include: replace OBD_CHECK_DEV_ACTIVE by obd_check_dev_active Aya Mahfouz
2015-04-01 14:35   ` [Outreachy kernel] " Julia Lawall
2015-04-01 15:14     ` Aya Mahfouz
2015-04-01 13:59 ` [PATCH 3/3] staging: lustre: include: remove unused macros Aya Mahfouz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.