[PATCH 0/2] soc: qcom: qcom_stats: Clean up macro definitions
From: Maulik Shah
Date: Thu Jul 30 2026 - 04:53:03 EST
This series cleans up macro definitions in qcom_stats.c.
Patch 1 removes five macros (STAT_TYPE_OFFSET, COUNT_OFFSET,
LAST_ENTERED_AT_OFFSET, LAST_EXITED_AT_OFFSET, ACCUMULATED_OFFSET)
that are defined but never referenced, as identified by -Wunused-macros.
Patch 2 removes CLIENT_VOTES_OFFSET (0x20) and replaces its single
use with sizeof(struct sleep_stats), making the MSG_RAM memory layout
relationship self-documenting: appended_stats immediately follows
sleep_stats in the shared memory structure.
No functional impact.
Signed-off-by: Maulik Shah <maulik.shah@xxxxxxxxxxxxxxxx>
---
Maulik Shah (2):
soc: qcom: qcom_stats: Remove unused macro definitions
soc: qcom: qcom_stats: Replace CLIENT_VOTES_OFFSET macro with sizeof()
drivers/soc/qcom/qcom_stats.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
base-commit: 78bc8af4affb9a732504eb22eeac7d1e50883853
change-id: 20260730-b4b4-removed-unused-macros-a0b2617bf491
Best regards,
--
Maulik Shah <maulik.shah@xxxxxxxxxxxxxxxx>