[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250205101814.2801701-3-tmricht@linux.ibm.com>
Date: Wed, 5 Feb 2025 11:18:14 +0100
From: Thomas Richter <tmricht@...ux.ibm.com>
To: linux-kernel@...r.kernel.org, linux-s390@...r.kernel.org,
linux-perf-users@...r.kernel.org, acme@...nel.org, namhyung@...nel.org,
irogers@...gle.com
Cc: agordeev@...ux.ibm.com, gor@...ux.ibm.com, sumanthk@...ux.ibm.com,
hca@...ux.ibm.com, Thomas Richter <tmricht@...ux.ibm.com>
Subject: [PATCH 2/2 v2] perf test: Hwmon align structure on boundary in union
Align both members in union hwmon_pmu_event_key to the same
boundary. Add unused structure members as sugguested.
Signed-off-by: Thomas Richter <tmricht@...ux.ibm.com>
Suggested-by: Namhyung Kim <namhyung@...nel.org>
---
tools/perf/util/hwmon_pmu.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/perf/util/hwmon_pmu.h b/tools/perf/util/hwmon_pmu.h
index b3329774d2b2..748cf93a859c 100644
--- a/tools/perf/util/hwmon_pmu.h
+++ b/tools/perf/util/hwmon_pmu.h
@@ -104,6 +104,10 @@ union hwmon_pmu_event_key {
struct {
int num :16;
enum hwmon_type type :8;
+ int unused: 8;
+#if __SIZEOF_LONG__ == 8
+ int unused2;
+#endif
};
};
--
2.48.1
Powered by blists - more mailing lists