From 418f4a762bc2d398a9dbb4ce424ca9546178425e Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Thu, 13 Sep 2012 11:01:12 +1000 Subject: [PATCH] compat_ioctl: Remove unused local typedef gcc 4.8 always warns fs/compat_ioctl.c: In function 'serial_struct_ioctl': fs/compat_ioctl.c:609:38: warning: typedef 'SS' locally defined but not used [-Wunused-local-typedefs] typedef struct serial_struct SS; Indeed that typedef is unused, so just remove it. Signed-off-by: Andi Kleen Cc: Arnd Bergmann Signed-off-by: Andrew Morton --- fs/compat_ioctl.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index edd4ab67cd1b..3f0674534a98 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -606,7 +606,6 @@ struct serial_struct32 { static int serial_struct_ioctl(unsigned fd, unsigned cmd, struct serial_struct32 __user *ss32) { - typedef struct serial_struct SS; typedef struct serial_struct32 SS32; int err; struct serial_struct ss; -- 2.39.5