]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools: move alignment-related macros to new <linux/align.h>
authorAlexander Lobakin <aleksander.lobakin@intel.com>
Wed, 27 Mar 2024 15:23:48 +0000 (16:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Apr 2024 09:49:28 +0000 (10:49 +0100)
commit10a04ff09bcc39e0044190ffe9f00f998f13647c
treec2bc06b24930b4cf4f5630ca2146201787338056
parent4ca532d64648d4776d15512caed3efea05ca7195
tools: move alignment-related macros to new <linux/align.h>

Currently, tools have *ALIGN*() macros scattered across the unrelated
headers, as there are only 3 of them and they were added separately
each time on an as-needed basis.
Anyway, let's make it more consistent with the kernel headers and allow
using those macros outside of the mentioned headers. Create
<linux/align.h> inside the tools/ folder and include it where needed.

Signed-off-by: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/include/linux/align.h [new file with mode: 0644]
tools/include/linux/bitmap.h
tools/include/linux/mm.h