From: Alexander Lobakin <aleksander.lobakin@intel.com>
To: Erick Archer <erick.archer@outlook.com>
Cc: Kees Cook <keescook@chromium.org>,
Alexey Dobriyan <adobriyan@gmail.com>,
Miguel Ojeda <ojeda@kernel.org>,
Nathan Chancellor <nathan@kernel.org>,
Dmitry Antipov <dmantipov@yandex.ru>,
"Gustavo A. R. Silva" <gustavoars@kernel.org>,
Justin Stitt <justinstitt@google.com>,
<linux-kernel@vger.kernel.org>, <linux-hardening@vger.kernel.org>
Subject: Re: [PATCH] uapi: stddef.h: Provide UAPI macros for __counted_by_{le, be}
Date: Tue, 7 May 2024 14:58:15 +0200 [thread overview]
Message-ID: <e9edbd4b-b117-4876-8d3a-52dfa1d2a8f6@intel.com> (raw)
In-Reply-To: <AS8PR02MB7237CD9ECBF7907AD8B1CC938B1C2@AS8PR02MB7237.eurprd02.prod.outlook.com>
From: Erick Archer <erick.archer@outlook.com>
Date: Mon, 6 May 2024 19:42:08 +0200
> Provide UAPI macros for UAPI structs that will gain annotations for
> __counted_by_{le, be} attributes.
Pls add me to Cc next time.
Why is this change needed? __counted_by_{le, be}() aren't used anywhere
in the uAPI headers.
>
> Signed-off-by: Erick Archer <erick.archer@outlook.com>
> ---
> include/uapi/linux/stddef.h | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/include/uapi/linux/stddef.h b/include/uapi/linux/stddef.h
> index 2ec6f35cda32..58154117d9b0 100644
> --- a/include/uapi/linux/stddef.h
> +++ b/include/uapi/linux/stddef.h
> @@ -55,4 +55,12 @@
> #define __counted_by(m)
> #endif
>
> +#ifndef __counted_by_le
> +#define __counted_by_le(m)
> +#endif
> +
> +#ifndef __counted_by_be
> +#define __counted_by_be(m)
> +#endif
> +
> #endif /* _UAPI_LINUX_STDDEF_H */
Thanks,
Olek
next prev parent reply other threads:[~2024-05-07 12:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 17:42 [PATCH] uapi: stddef.h: Provide UAPI macros for __counted_by_{le, be} Erick Archer
2024-05-06 17:48 ` Miguel Ojeda
2024-05-07 12:58 ` Alexander Lobakin [this message]
2024-05-11 11:04 ` Erick Archer
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=e9edbd4b-b117-4876-8d3a-52dfa1d2a8f6@intel.com \
--to=aleksander.lobakin@intel.com \
--cc=adobriyan@gmail.com \
--cc=dmantipov@yandex.ru \
--cc=erick.archer@outlook.com \
--cc=gustavoars@kernel.org \
--cc=justinstitt@google.com \
--cc=keescook@chromium.org \
--cc=linux-hardening@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nathan@kernel.org \
--cc=ojeda@kernel.org \
/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