From: Thomas Richter <tmricht@linux.ibm.com>
To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org,
linux-perf-users@vger.kernel.org, acme@kernel.org,
namhyung@kernel.org, irogers@google.com
Cc: agordeev@linux.ibm.com, gor@linux.ibm.com,
sumanthk@linux.ibm.com, hca@linux.ibm.com,
Thomas Richter <tmricht@linux.ibm.com>
Subject: [PATCH 2/2 v2] perf test: Hwmon align structure on boundary in union
Date: Wed, 5 Feb 2025 11:18:14 +0100 [thread overview]
Message-ID: <20250205101814.2801701-3-tmricht@linux.ibm.com> (raw)
In-Reply-To: <20250205101814.2801701-1-tmricht@linux.ibm.com>
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@linux.ibm.com>
Suggested-by: Namhyung Kim <namhyung@kernel.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
prev parent reply other threads:[~2025-02-05 10:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-05 10:18 [PATCH 0/2 v2] perf test: Fix endianess issue in hwmon test on Thomas Richter
2025-02-05 10:18 ` [PATCH 1/2 v2] perf test: Fix perf test 11 hwmon endianess issue Thomas Richter
2025-02-05 10:18 ` Thomas Richter [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250205101814.2801701-3-tmricht@linux.ibm.com \
--to=tmricht@linux.ibm.com \
--cc=acme@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=irogers@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=namhyung@kernel.org \
--cc=sumanthk@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®