Skip to content

Declare local functions as static

Shraddha Barke outreachy 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 2 repliesIn review
  2. v14 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Staging: lustre: obdclass: llog_swab: Declare local functions as staticdrivers/staging/lustre/lustre/include/lustre/lustre_idl.h drivers/staging/lustre/lustre/obdclass/llog_swab.c+2 -60 replies
2/4Staging: lustre: obdclass: lprocfs_status: Declare typedefs as staticdrivers/staging/lustre/lustre/include/lprocfs_status.h drivers/staging/lustre/lustre/obdclass/lprocfs_status.c+5 -112 replies
3/4Staging: lustre: ptlrpc: pack_generic: Declare local functions as staticdrivers/staging/lustre/lustre/include/lustre/lustre_idl.h drivers/staging/lustre/lustre/ptlrpc/pack_generic.c+2 -60 replies
4/4Staging: lustre: ptlrcpc: sec: Declare local functions as staticdrivers/staging/lustre/lustre/include/lustre_sec.h drivers/staging/lustre/lustre/ptlrpc/sec.c+4 -130 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] Declare local functions as static

Declare functions as static since they are used only in a particular file.

Changes in v2-
Made commit log and subject clearer.

Shraddha Barke (4):
Staging: lustre: obdclass: llog_swab: Declare local functions as
static
Staging: lustre: obdclass: lprocfs_status: Declare typedefs as static
Staging: lustre: ptlrpc: pack_generic: Declare local functions as
static
Staging: lustre: ptlrcpc: sec: Declare local functions as static

 drivers/staging/lustre/lustre/include/lprocfs_status.h    |  5 -----
 drivers/staging/lustre/lustre/include/lustre/lustre_idl.h |  5 -----
 drivers/staging/lustre/lustre/include/lustre_sec.h        |  7 -------
 drivers/staging/lustre/lustre/obdclass/llog_swab.c        |  6 ++----
 drivers/staging/lustre/lustre/obdclass/lprocfs_status.c   | 11 +++++------
 drivers/staging/lustre/lustre/ptlrpc/pack_generic.c       |  5 ++---
 drivers/staging/lustre/lustre/ptlrpc/sec.c                | 10 ++++------
 7 files changed, 13 insertions(+), 36 deletions(-)
Signature · 1 line
2.1.4