summaryrefslogtreecommitdiffstats
path: root/include/linux/kernelcapi.h
diff options
context:
space:
mode:
authorTilman Schmidt <tilman@imap.cc>2014-10-11 13:46:30 +0200
committerDavid S. Miller <davem@davemloft.net>2014-10-14 15:05:34 -0400
commit9ea8aa8d5087529210553114b7bc4bf4374ace8f (patch)
treef796215d1413b364a83df686076ff5419b94fab8 /include/linux/kernelcapi.h
parentb8324f94202af7dc688576259803a2ef9a98d655 (diff)
downloadlinux-9ea8aa8d5087529210553114b7bc4bf4374ace8f.tar.gz
linux-9ea8aa8d5087529210553114b7bc4bf4374ace8f.tar.bz2
linux-9ea8aa8d5087529210553114b7bc4bf4374ace8f.zip
isdn/capi: correct capi20_manufacturer argument type mismatch
Function capi20_manufacturer() is declared with unsigned int cmd argument but called with unsigned long. Fix by correcting the function prototype since the actual argument is part of the user visible API. Spotted with Coverity. Signed-off-by: Tilman Schmidt <tilman@imap.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/kernelcapi.h')
-rw-r--r--include/linux/kernelcapi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kernelcapi.h b/include/linux/kernelcapi.h
index 9be37da93680..e985ba679c4a 100644
--- a/include/linux/kernelcapi.h
+++ b/include/linux/kernelcapi.h
@@ -41,7 +41,7 @@ u16 capi20_get_manufacturer(u32 contr, u8 buf[CAPI_MANUFACTURER_LEN]);
u16 capi20_get_version(u32 contr, struct capi_version *verp);
u16 capi20_get_serial(u32 contr, u8 serial[CAPI_SERIAL_LEN]);
u16 capi20_get_profile(u32 contr, struct capi_profile *profp);
-int capi20_manufacturer(unsigned int cmd, void __user *data);
+int capi20_manufacturer(unsigned long cmd, void __user *data);
#define CAPICTR_UP 0
#define CAPICTR_DOWN 1