Skip to content

panic: sys_info: Refactor and fix a potential issue

Andy Shevchenko lkml 3 versions – Applied

Status from this message: [merged mm-nonmm-stable] panic-sys_info-factor-out-read-and-write-handlers.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 8 repliesApplied 6/6
  2. v26 patches 10 repliesSuperseded
  3. v17 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- addressed an issue with empty parameter returned (Feng)
- gathered tags (Feng)

Patches in v3 All 6 applied

#Subject and filesSizeRepliesApplied
1/6panic: sys_info: Capture si_bits_global before iterating over itlib/sys_info.c+5 -20 repliesApplied
2/6panic: sys_info: Align constant definition names with parametersinclude/linux/sys_info.h kernel/panic.c lib/sys_info.c+4 -40 repliesApplied
3/6panic: sys_info: Replace struct sys_info_name with plain array of stringslib/sys_info.c+20 -242 repliesApplied
4/6panic: sys_info: Rewrite a fix for a compilation error (`make W=1`)lib/sys_info.c+16 -120 repliesApplied
5/6panic: sys_info: Deduplicate local variable 'table; assignmentslib/sys_info.c+4 -60 repliesApplied
6/6panic: sys_info: Factor out read and write handlerslib/sys_info.c+46 -333 repliesApplied

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFeng TangPetr Mladek
SeriesR-b
1/6R-b
2/6R-b
3/6
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] panic: sys_info: Refactor and fix a potential issue

While targeting the compilation issue due to dangling variable, I have noticed more opportunities for refactoring that helps to avoid above mentioned compilation issue in a cleaner way and also fixes a potential problem with global variable access. Please, give it a try.

Changelog v3:
- addressed an issue with empty parameter returned (Feng)
- gathered tags (Feng)

Changelog v2:
v2: https://lore.kernel.org/r/[email protected]
- rebased on top of the current codebase
- addressed an issue when converting to match_string() (Feng)
- Cc'ed to Petr (requested by Feng)

v1: https://lore.kernel.org/r/[email protected]

Andy Shevchenko (6):
panic: sys_info: Capture si_bits_global before iterating over it
panic: sys_info: Align constant definition names with parameters
panic: sys_info: Replace struct sys_info_name with plain array of
strings
panic: sys_info: Rewrite a fix for a compilation error (make W=1)
panic: sys_info: Deduplicate local variable 'table; assignments
panic: sys_info: Factor out read and write handlers

 include/linux/sys_info.h |   2 +-
 kernel/panic.c           |   2 +-
 lib/sys_info.c           | 138 +++++++++++++++++++++------------------
 3 files changed, 78 insertions(+), 64 deletions(-)
Signature · 1 line
2.50.1