Re: [PATCH] kdev_t: Always inline major/minor helper functions
From: Randy Dunlap
Date: Wed Dec 23 2020 - 13:08:32 EST
On 12/23/20 7:30 AM, Josh Poimboeuf wrote:
> Silly GCC doesn't always inline these trivial functions.
>
> Fixes the following warning:
>
> arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled
>
> Reported-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
Acked-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx> # build-tested
Thanks.
> ---
> include/linux/kdev_t.h | 22 +++++++++++-----------
> 1 file changed, 11 insertions(+), 11 deletions(-)
~Randy