Staging: ced1401: Patch fixes missing parentheses in macro definitions.
authorElena Ufimtseva <ufimtseva@gmail.com>
Wed, 15 May 2013 21:45:56 +0000 (17:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2013 03:52:56 +0000 (23:52 -0400)
Patch fixes missing parentheses in macro definitions.

Signed-off-by: Elena Ufimtseva <ufimtseva@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ced1401/use1401.h
drivers/staging/ced1401/use14_ioc.h

index 0ebadd504bd03c67776fd4d519642600e3de8c9e..80213ef7ab8b56d14334694886f55f71019e6179 100644 (file)
@@ -18,9 +18,9 @@
 #ifdef _IS_WINDOWS_
 #ifndef U14_NOT_DLL
 #ifdef DLL_USE1401
-#define U14API(retType) retType DllExport __stdcall
+#define U14API(retType) (retType DllExport __stdcall)
 #else
-#define U14API(retType) retType DllImport __stdcall
+#define U14API(retType) (retType DllImport __stdcall)
 #endif
 #endif
 
@@ -36,7 +36,7 @@
 #ifdef _QT
 #ifndef U14_NOT_DLL
 #undef U14API
-#define U14API(retType) retType __declspec(dllimport) __stdcall
+#define U14API(retType) (retType __declspec(dllimport) __stdcall)
 #endif
 #undef U14LONG
 #define U14LONG int
index be99c4ab23b14dac4601336a60971d82b976b1f5..a2f6e6e8e38a1466bcd90134408d80a7d75c62f4 100644 (file)
@@ -34,7 +34,7 @@
 #define  U14_SENDSTRING          CTL_CODE(FILE_DEVICE_CED1401,     \
                                                FNNUMBASE+2,             \
                                                METHOD_BUFFERED,         \
-                                               FILE_ANY_ACCESS
+                                               FILE_ANY_ACCESS)
 
 #define  U14_RESET1401           CTL_CODE(FILE_DEVICE_CED1401,     \
                                                FNNUMBASE+3,             \