diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-02-28 22:41:31 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2024-02-29 13:38:03 -0800 |
commit | c5e6d3d85efa7451590edd94725b4b280e2fd8a3 (patch) | |
tree | d267803d5d4dc531786a6759cd3de54e04a61d79 /include/linux/overflow.h | |
parent | c2efa5387c2676815ebbb6a954bf72fef2609709 (diff) | |
download | linux-c5e6d3d85efa7451590edd94725b4b280e2fd8a3.tar.gz linux-c5e6d3d85efa7451590edd94725b4b280e2fd8a3.tar.bz2 linux-c5e6d3d85efa7451590edd94725b4b280e2fd8a3.zip |
overflow: Use POD in check_shl_overflow()
The check_shl_overflow() uses u64 type that is defined in types.h.
Instead of including that header, just switch to use POD type
directly.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20240228204919.3680786-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'include/linux/overflow.h')
-rw-r--r-- | include/linux/overflow.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/overflow.h b/include/linux/overflow.h index dede374832c9..bc390f026128 100644 --- a/include/linux/overflow.h +++ b/include/linux/overflow.h @@ -197,7 +197,7 @@ static inline bool __must_check __must_check_overflow(bool overflow) typeof(a) _a = a; \ typeof(s) _s = s; \ typeof(d) _d = d; \ - u64 _a_full = _a; \ + unsigned long long _a_full = _a; \ unsigned int _to_shift = \ is_non_negative(_s) && _s < 8 * sizeof(*d) ? _s : 0; \ *_d = (_a_full << _to_shift); \ |