Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Petr Vorel <petr.vorel@gmail.com>
To: stable@vger.kernel.org
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Sasha Levin <sashal@kernel.org>, Rich Felker <dalias@libc.org>,
	Peter Korsgaard <peter@korsgaard.com>,
	Baruch Siach <baruch@tkos.co.il>,
	Florian Weimer <fweimer@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH 2/2] tools headers UAPI: Sync linux/const.h with the kernel headers
Date: Fri, 1 Jan 2021 21:27:47 +0100	[thread overview]
Message-ID: <X++Fw3tSmvOOA1V2@pevik> (raw)
In-Reply-To: <20210101202245.27409-2-petr.vorel@gmail.com>

> From: Arnaldo Carvalho de Melo <acme@redhat.com>

> commit 7ddcdea5b54492f54700f427f58690cf1e187e5e upstream.

> To pick up the changes in:

>   a85cbe6159ffc973 ("uapi: move constants from <linux/kernel.h> to <linux/const.h>")

> That causes no changes in tooling, just addresses this perf build
> warning:

>   Warning: Kernel ABI header at 'tools/include/uapi/linux/const.h' differs from latest version at 'include/uapi/linux/const.h'
>   diff -u tools/include/uapi/linux/const.h include/uapi/linux/const.h

> Cc: Adrian Hunter <adrian.hunter@intel.com>
> Cc: Ian Rogers <irogers@google.com>
> Cc: Jiri Olsa <jolsa@kernel.org>
> Cc: Namhyung Kim <namhyung@kernel.org>
> Cc: Petr Vorel <petr.vorel@gmail.com>
> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
> Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
> ---
> Fix for previous commit.
For stable/linux-5.4.y.

Kind regards,
Petr

> Kind regards,
> Petr

>  tools/include/uapi/linux/const.h | 5 +++++
>  1 file changed, 5 insertions(+)

> diff --git a/tools/include/uapi/linux/const.h b/tools/include/uapi/linux/const.h
> index 5ed721ad5b19..af2a44c08683 100644
> --- a/tools/include/uapi/linux/const.h
> +++ b/tools/include/uapi/linux/const.h
> @@ -28,4 +28,9 @@
>  #define _BITUL(x)	(_UL(1) << (x))
>  #define _BITULL(x)	(_ULL(1) << (x))

> +#define __ALIGN_KERNEL(x, a)		__ALIGN_KERNEL_MASK(x, (typeof(x))(a) - 1)
> +#define __ALIGN_KERNEL_MASK(x, mask)	(((x) + (mask)) & ~(mask))
> +
> +#define __KERNEL_DIV_ROUND_UP(n, d) (((n) + (d) - 1) / (d))
> +
>  #endif /* _UAPI_LINUX_CONST_H */

  reply	other threads:[~2021-01-01 20:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-01 20:22 [PATCH 1/2] uapi: move constants from <linux/kernel.h> to <linux/const.h> Petr Vorel
2021-01-01 20:22 ` [PATCH 2/2] tools headers UAPI: Sync linux/const.h with the kernel headers Petr Vorel
2021-01-01 20:27   ` Petr Vorel [this message]
2021-01-04 10:29     ` Greg Kroah-Hartman
  -- strict thread matches above, loose matches on Subject: below --
2021-01-01 20:27 [PATCH 1/2] uapi: move constants from <linux/kernel.h> to <linux/const.h> Petr Vorel
2021-01-01 20:27 ` [PATCH 2/2] tools headers UAPI: Sync linux/const.h with the kernel headers Petr Vorel

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=X++Fw3tSmvOOA1V2@pevik \
    --to=petr.vorel@gmail.com \
    --cc=acme@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=baruch@tkos.co.il \
    --cc=dalias@libc.org \
    --cc=fweimer@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=peter@korsgaard.com \
    --cc=sashal@kernel.org \
    --cc=stable@vger.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