[PATCH 0/2] coresight: Dismiss smatch warnings

Leo Yan leo.yan at arm.com
Wed Jun 11 07:44:00 PDT 2025


This series polishes the code to address warnings reported by the smatch
static checker.

Smatch reports a error "Function too hairy" for etm4x_sysreg_read() and
etm4x_sysreg_write(). This is a trade off to avoid large code blocks,
the implementation encapsulates logic using nested macros. But this is
not friendly to static checker. For now, the code will be kept as is.

Signed-off-by: Leo Yan <leo.yan at arm.com>
---
Leo Yan (2):
      coresight: stm: Remove redundant NULL checks
      coresight: perf: Use %px for printing pointers

 drivers/hwtracing/coresight/coresight-etm-perf.c | 4 ++--
 drivers/hwtracing/coresight/coresight-stm.c      | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
base-commit: 408c97c4a5e0b634dcd15bf8b8808b382e888164
change-id: 20250611-arm_cs_fix_smatch_warning_v1-6c2b5e78e38a

Best regards,
-- 
Leo Yan <leo.yan at arm.com>




More information about the linux-arm-kernel mailing list