]> git.baikalelectronics.ru Git - kernel.git/commit
Char: stallion, fix compiler warnings
authorJiri Slaby <jirislaby@gmail.com>
Thu, 7 Feb 2008 08:16:36 +0000 (00:16 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 7 Feb 2008 16:42:33 +0000 (08:42 -0800)
commit07944092db90d7baeb3dce90a0e8fdb309815bac
tree5dda5fff40846f895be81f31eda54aa06e0357c9
parent88fa29f33c293daceeda9a116ef3521dd44a6b77
Char: stallion, fix compiler warnings

Don't emit warnings on 64 bit platforms from min(). sizeof() on those
is not uint, neither 2 pointers difference, cast it to uint by min_t in
both cases.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/stallion.c