On Tue, Jun 9, 2026 at 9:43 PM Ethan Nelson-Moore
<[email protected]> wrote:
>
> CONFIG_OPEN_FPU_* options have never been defined by the kernel, but
> are referred to by arch/csky/abiv2/inc/abi/fpu.h. The *_STAT macros
> depending on them are also unused. Remove these references to eliminate
> dead code.
>
> Discovered while searching for CONFIG_* symbols referenced in code but
> not defined in any Kconfig file.
>
> Signed-off-by: Ethan Nelson-Moore <[email protected]>
> ---
>  arch/csky/abiv2/inc/abi/fpu.h | 36 -----------------------------------
>  1 file changed, 36 deletions(-)
>
> diff --git a/arch/csky/abiv2/inc/abi/fpu.h b/arch/csky/abiv2/inc/abi/fpu.h
> index aabb79355013..52c640ef797c 100644
> --- a/arch/csky/abiv2/inc/abi/fpu.h
> +++ b/arch/csky/abiv2/inc/abi/fpu.h
> @@ -27,40 +27,4 @@ void restore_from_user_fp(struct user_fp *user_fp);
>  #define  FPE_IOC   (1 << 0)     /* Invalid operation exception */
>  #define  FPE_REGULAR_EXCEPTION (FPE_IXC | FPE_UFC | FPE_OFC | FPE_DZC | 
> FPE_IOC)
>
> -#ifdef CONFIG_OPEN_FPU_IDE
> -#define IDE_STAT   (1 << 5)
> -#else
> -#define IDE_STAT   0
> -#endif
> -
> -#ifdef CONFIG_OPEN_FPU_IXE
> -#define IXE_STAT   (1 << 4)
> -#else
> -#define IXE_STAT   0
> -#endif
> -
> -#ifdef CONFIG_OPEN_FPU_UFE
> -#define UFE_STAT   (1 << 3)
> -#else
> -#define UFE_STAT   0
> -#endif
> -
> -#ifdef CONFIG_OPEN_FPU_OFE
> -#define OFE_STAT   (1 << 2)
> -#else
> -#define OFE_STAT   0
> -#endif
> -
> -#ifdef CONFIG_OPEN_FPU_DZE
> -#define DZE_STAT   (1 << 1)
> -#else
> -#define DZE_STAT   0
> -#endif
> -
> -#ifdef CONFIG_OPEN_FPU_IOE
> -#define IOE_STAT   (1 << 0)
> -#else
> -#define IOE_STAT   0
> -#endif
> -
>  #endif /* __ASM_CSKY_FPU_H */
> --
> 2.43.0
>
Thanks for the cleanup, I'll apply it for the next version.

-- 
Best Regards
 Guo Ren

Reply via email to