Skip to content

staging: lustre: include: replace macros by functions

Aya Mahfouz outreachy 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 0 repliesNew
  2. v33 patches 2 repliesSuperseded
  3. v23 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: lustre: include: replace OBD_CHECK_DEV by obd_check_devdrivers/staging/lustre/lustre/include/obd_class.h+26 -50 replies
2/3staging: lustre: include: replace OBD_CHECK_DEV_ACTIVE by obd_check_dev_activedrivers/staging/lustre/lustre/include/obd_class.h+25 -40 replies
3/3staging: lustre: include: remove unused macrosdrivers/staging/lustre/lustre/include/obd_class.h+0 -180 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/3] staging: lustre: include: replace macros by functions

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 resend.

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 | 74 +++++++++++++++--------
 1 file changed, 49 insertions(+), 25 deletions(-)
Signature · 6 lines
2.1.0


-- 
Kind Regards,
Aya Saif El-yazal Mahfouz