From: Athira Rajeev <atrajeev@linux.ibm.com>
To: James Clark <james.clark@linaro.org>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>
Cc: "open list:PERFORMANCE EVENTS SUBSYSTEM"
<linux-perf-users@vger.kernel.org>,
linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
Madhavan Srinivasan <maddy@linux.ibm.com>,
Athira Rajeev <atrajeev@linux.vnet.ibm.com>,
Disha Goel <disgoel@linux.vnet.ibm.com>,
hbathini@linux.vnet.ibm.com, Aditya.Bodkhe1@ibm.com,
jiang.peng9@zte.com.cn,
Venkat Rao Bagalkote <venkat88@linux.ibm.com>,
Tejas Manhas <Tejas.Manhas1@ibm.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Jiri Olsa <jolsa@kernel.org>,
Adrian Hunter <adrian.hunter@intel.com>,
Ian Rogers <irogers@google.com>,
Namhyung Kim <namhyung@kernel.org>
Subject: Re: [PATCH] tools headers: Update the include/vdso/unaligned.h to sync headers
Date: Fri, 25 Apr 2025 20:16:51 +0530 [thread overview]
Message-ID: <607CE194-2D87-4E28-B65A-2407F3C265AB@linux.ibm.com> (raw)
In-Reply-To: <0f2b7c10-a30a-4d2e-ac3f-baec1b45d945@linaro.org>
> On 22 Apr 2025, at 2:41 PM, James Clark <james.clark@linaro.org> wrote:
>
>
>
> On 21/04/2025 4:41 am, Athira Rajeev wrote:
>> To pick up the changes in:
>> commit acea9943271b ("vdso: Address variable shadowing in macros")
>> Addressing this perf tools build warning:
>> diff -u tools/include/vdso/unaligned.h include/vdso/unaligned.h
>> Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
>> Signed-off-by: Athira Rajeev <atrajeev@linux.ibm.com>
>> Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
>> ---
>> tools/include/vdso/unaligned.h | 12 ++++++------
>> 1 file changed, 6 insertions(+), 6 deletions(-)
>> diff --git a/tools/include/vdso/unaligned.h b/tools/include/vdso/unaligned.h
>> index eee3d2a4dbe4..ff0c06b6513e 100644
>> --- a/tools/include/vdso/unaligned.h
>> +++ b/tools/include/vdso/unaligned.h
>> @@ -2,14 +2,14 @@
>> #ifndef __VDSO_UNALIGNED_H
>> #define __VDSO_UNALIGNED_H
>> -#define __get_unaligned_t(type, ptr) ({ \
>> - const struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \
>> - __pptr->x; \
>> +#define __get_unaligned_t(type, ptr) ({ \
>> + const struct { type x; } __packed * __get_pptr = (typeof(__get_pptr))(ptr); \
>> + __get_pptr->x; \
>> })
>> -#define __put_unaligned_t(type, val, ptr) do { \
>> - struct { type x; } __packed *__pptr = (typeof(__pptr))(ptr); \
>> - __pptr->x = (val); \
>> +#define __put_unaligned_t(type, val, ptr) do { \
>> + struct { type x; } __packed * __put_pptr = (typeof(__put_pptr))(ptr); \
>> + __put_pptr->x = (val); \
>> } while (0)
>> #endif /* __VDSO_UNALIGNED_H */
>
> Reviewed-by: James Clark <james.clark@linaro.org>
Hi,
Looking for feedback on this change.
Thanks
Athira
prev parent reply other threads:[~2025-04-25 14:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-21 3:41 [PATCH] tools headers: Update the include/vdso/unaligned.h to sync headers Athira Rajeev
2025-04-22 9:11 ` James Clark
2025-04-25 14:46 ` Athira Rajeev [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=607CE194-2D87-4E28-B65A-2407F3C265AB@linux.ibm.com \
--to=atrajeev@linux.ibm.com \
--cc=Aditya.Bodkhe1@ibm.com \
--cc=Tejas.Manhas1@ibm.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=atrajeev@linux.vnet.ibm.com \
--cc=disgoel@linux.vnet.ibm.com \
--cc=hbathini@linux.vnet.ibm.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jiang.peng9@zte.com.cn \
--cc=jolsa@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=namhyung@kernel.org \
--cc=venkat88@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.