* linux-next: input tree build warnings
@ 2009-06-12 7:05 Stephen Rothwell
2009-06-12 21:54 ` Tero Saarni
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Rothwell @ 2009-06-12 7:05 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-next, linux-kernel, Tero Saarni
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
Hi Dmitry,
Today's linux-next build (x86_64 allmodconfig) produced these warnings:
drivers/input/evdev.c: In function 'evdev_do_ioctl':
drivers/input/evdev.c:632: warning: comparison of distinct pointer types lacks a cast
drivers/input/evdev.c:660: warning: comparison of distinct pointer types lacks a cast
Introduced by commit 61c7bfcdf5acee06f58b246d6615989134719d19 ("Input:
synaptics - add support for reporting x/y resolution").
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: input tree build warnings
2009-06-12 7:05 linux-next: input tree build warnings Stephen Rothwell
@ 2009-06-12 21:54 ` Tero Saarni
2009-06-20 6:06 ` Dmitry Torokhov
0 siblings, 1 reply; 4+ messages in thread
From: Tero Saarni @ 2009-06-12 21:54 UTC (permalink / raw)
To: Stephen Rothwell, Dmitry Torokhov; +Cc: linux-next, linux-kernel
On Fri, 2009-06-12 at 17:05 +1000, Stephen Rothwell wrote:
> Hi Dmitry,
>
> Today's linux-next build (x86_64 allmodconfig) produced these warnings:
>
> drivers/input/evdev.c: In function 'evdev_do_ioctl':
> drivers/input/evdev.c:632: warning: comparison of distinct pointer types lacks a cast
> drivers/input/evdev.c:660: warning: comparison of distinct pointer types lacks a cast
>
> Introduced by commit 61c7bfcdf5acee06f58b246d6615989134719d19 ("Input:
> synaptics - add support for reporting x/y resolution").
My mistake, thanks for the heads up!
Input: fix warning: comparison of distinct pointer types
Signed-off-by: Tero Saarni <tero.saarni@gmail.com>
---
drivers/input/evdev.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index 7e46b96..7e8d218 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -628,8 +628,9 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd,
abs.flat = dev->absflat[t];
abs.resolution = dev->absres[t];
- if (copy_to_user(p, &abs,
- min(_IOC_SIZE(cmd), sizeof(struct input_absinfo))))
+ if (copy_to_user(p, &abs, min_t(size_t,
+ _IOC_SIZE(cmd),
+ sizeof(struct input_absinfo))))
return -EFAULT;
return 0;
@@ -656,8 +657,9 @@ static long evdev_do_ioctl(struct file *file, unsigned int cmd,
t = _IOC_NR(cmd) & ABS_MAX;
- if (copy_from_user(&abs, p,
- min(_IOC_SIZE(cmd), sizeof(struct input_absinfo))))
+ if (copy_from_user(&abs, p, min_t(size_t,
+ _IOC_SIZE(cmd),
+ sizeof(struct input_absinfo))))
return -EFAULT;
/*
--
1.6.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: linux-next: input tree build warnings
2009-06-12 21:54 ` Tero Saarni
@ 2009-06-20 6:06 ` Dmitry Torokhov
2009-06-20 7:17 ` Stephen Rothwell
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry Torokhov @ 2009-06-20 6:06 UTC (permalink / raw)
To: Tero Saarni; +Cc: Stephen Rothwell, linux-next, linux-kernel
On Sat, Jun 13, 2009 at 12:54:50AM +0300, Tero Saarni wrote:
> On Fri, 2009-06-12 at 17:05 +1000, Stephen Rothwell wrote:
> > Hi Dmitry,
> >
> > Today's linux-next build (x86_64 allmodconfig) produced these warnings:
> >
> > drivers/input/evdev.c: In function 'evdev_do_ioctl':
> > drivers/input/evdev.c:632: warning: comparison of distinct pointer types lacks a cast
> > drivers/input/evdev.c:660: warning: comparison of distinct pointer types lacks a cast
> >
> > Introduced by commit 61c7bfcdf5acee06f58b246d6615989134719d19 ("Input:
> > synaptics - add support for reporting x/y resolution").
>
> My mistake, thanks for the heads up!
>
>
> Input: fix warning: comparison of distinct pointer types
>
I folded it into the original patch.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linux-next: input tree build warnings
2009-06-20 6:06 ` Dmitry Torokhov
@ 2009-06-20 7:17 ` Stephen Rothwell
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2009-06-20 7:17 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: Tero Saarni, linux-next, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 956 bytes --]
Hi Dmitry, Tero,
On Fri, 19 Jun 2009 23:06:09 -0700 Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
>
> On Sat, Jun 13, 2009 at 12:54:50AM +0300, Tero Saarni wrote:
> > On Fri, 2009-06-12 at 17:05 +1000, Stephen Rothwell wrote:
> > > Hi Dmitry,
> > >
> > > Today's linux-next build (x86_64 allmodconfig) produced these warnings:
> > >
> > > drivers/input/evdev.c: In function 'evdev_do_ioctl':
> > > drivers/input/evdev.c:632: warning: comparison of distinct pointer types lacks a cast
> > > drivers/input/evdev.c:660: warning: comparison of distinct pointer types lacks a cast
> > >
> > > Introduced by commit 61c7bfcdf5acee06f58b246d6615989134719d19 ("Input:
> > > synaptics - add support for reporting x/y resolution").
> >
> > My mistake, thanks for the heads up!
>
> I folded it into the original patch.
Thanks.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-20 7:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-12 7:05 linux-next: input tree build warnings Stephen Rothwell
2009-06-12 21:54 ` Tero Saarni
2009-06-20 6:06 ` Dmitry Torokhov
2009-06-20 7:17 ` Stephen Rothwell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.