Skip to content

Commit c5e6d3d

Browse files
andy-shevkees
authored andcommitted
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 <[email protected]> Acked-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
1 parent c2efa53 commit c5e6d3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/overflow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ static inline bool __must_check __must_check_overflow(bool overflow)
197197
typeof(a) _a = a; \
198198
typeof(s) _s = s; \
199199
typeof(d) _d = d; \
200-
u64 _a_full = _a; \
200+
unsigned long long _a_full = _a; \
201201
unsigned int _to_shift = \
202202
is_non_negative(_s) && _s < 8 * sizeof(*d) ? _s : 0; \
203203
*_d = (_a_full << _to_shift); \

0 commit comments

Comments
 (0)