Skip to content

rasdaemon: fix some issues reported by static code analysis

Xiaofei Tan linux-edac 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 0 repliesNew
  2. v19 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* 1.Remove two accepted patches.
* 2.Optimize the buffer pointer check macro.
* 3.Add patch "rasdaemon: fix case style issues for enum constant".
* 4.Add patch "rasdaemon: add default branch for switch statement".

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9rasdaemon: decode submodule of OEM type1 for hip08non-standard-hisi_hip08.c+219 -640 replies
2/9rasdaemon: fix sub module name of HHA and DDRC for hip08non-standard-hisi_hip08.c+9 -80 replies
3/9rasdaemon: split OEM type1 table decode function to reduce lengthnon-standard-hisi_hip08.c+46 -300 replies
4/9rasdaemon: split OEM type2 table decode function to reduce lengthnon-standard-hisi_hip08.c+45 -280 replies
5/9rasdaemon: split PCIe local table decode function to reduce lengthnon-standard-hisi_hip08.c+45 -300 replies
6/9rasdaemon: fix magic number issues reported by static code analysis for hip08non-standard-hisi_hip08.c+20 -120 replies
7/9rasdaemon: replace sprintf with snprintf for hip08non-standard-hisi_hip08.c+137 -900 replies
8/9rasdaemon: fix case style issues for enum constantnon-standard-hisi_hip08.c+96 -960 replies
9/9rasdaemon: add default branch for switch statementnon-standard-hisi_hip08.c+4 -00 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/9] rasdaemon: fix some issues reported by static code analysis

Fix some issues reported by static code analysis.

Changelogs:
v1->v2:
* 1.Remove two accepted patches.
* 2.Optimize the buffer pointer check macro.
* 3.Add patch "rasdaemon: fix case style issues for enum constant".
* 4.Add patch "rasdaemon: add default branch for switch statement".

Xiaofei Tan (9):
rasdaemon: decode submodule of OEM type1 for hip08
rasdaemon: fix sub module name of HHA and DDRC for hip08
rasdaemon: split OEM type1 table decode function to reduce length
rasdaemon: split OEM type2 table decode function to reduce length
rasdaemon: split PCIe local table decode function to reduce length
rasdaemon: fix magic number issues reported by static code analysis
for hip08
rasdaemon: replace sprintf with snprintf for hip08
rasdaemon: fix case style issues for enum constant
rasdaemon: add default branch for switch statement

 non-standard-hisi_hip08.c | 885 ++++++++++++++++++++++++++++++----------------
 1 file changed, 574 insertions(+), 311 deletions(-)
Signature · 1 line
2.8.1