* [PATCH] compat_ioctl: Remove unused local typedef
@ 2012-09-09 20:03 Andi Kleen
0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2012-09-09 20:03 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel, Andi Kleen
From: Andi Kleen <ak@linux.intel.com>
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 <ak@linux.intel.com>
---
fs/compat_ioctl.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
index debdfe0..e6f11a3 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;
--
1.7.7.6
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-09 20:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-09 20:03 [PATCH] compat_ioctl: Remove unused local typedef Andi Kleen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®