[PATCH 2/2 v2] perf test: Hwmon align structure on boundary in union

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
Suggested-by: Namhyung Kim <namhyung@xxxxxxxxxx>
---
 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





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux