All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] staging: lustre: include: replace macros by functions
@ 2015-04-02 15:16 Aya Mahfouz
  2015-04-02 15:18 ` [PATCH v3 1/3] staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev Aya Mahfouz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Aya Mahfouz @ 2015-04-02 15:16 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.

Some minor fixes were done in patches 1 and 2 of the series. That
is why the patchset is resent.

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 | 76 +++++++++++++++--------
 1 file changed, 50 insertions(+), 26 deletions(-)

-- 
2.1.0


-- 
Kind Regards,
Aya Saif El-yazal Mahfouz


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

end of thread, other threads:[~2015-04-02 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-02 15:16 [PATCH v3 0/3] staging: lustre: include: replace macros by functions Aya Mahfouz
2015-04-02 15:18 ` [PATCH v3 1/3] staging: lustre: include: replace OBD_CHECK_DEV by obd_check_dev Aya Mahfouz
2015-04-02 16:49   ` [Outreachy kernel] " Greg KH
2015-04-02 18:09     ` Aya Mahfouz
2015-04-02 15:20 ` [PATCH v3 2/3] staging: lustre: include: replace OBD_CHECK_DEV_ACTIVE by obd_check_dev_active Aya Mahfouz
2015-04-02 15:21 ` [PATCH v3 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.