open-fcoe/open-fcoe-3.11-fix-hbaapi-prototypes.patch

61 lines
2.3 KiB
Diff

diff -Nru open-fcoe-3.11.orig/libHBAAPI/hbaapi.h open-fcoe-3.11/libHBAAPI/hbaapi.h
--- open-fcoe-3.11.orig/libHBAAPI/hbaapi.h 2013-10-14 19:16:02.000000000 +0200
+++ open-fcoe-3.11/libHBAAPI/hbaapi.h 2014-06-24 01:31:20.505015831 +0200
@@ -523,17 +523,17 @@
#define HBA_EVENT_LINK_UNKNOWN 0x500
#define HBA_EVENT_LINK_INCIDENT 0x501
-HBA_API HBA_UINT32 HBA_GetVersion();
+HBA_API HBA_UINT32 HBA_GetVersion(void);
/*
* Make sure HBA_LoadLibrary returns before any other threads
* make calls to the library
*/
-HBA_API HBA_STATUS HBA_LoadLibrary();
+HBA_API HBA_STATUS HBA_LoadLibrary(void);
-HBA_API HBA_STATUS HBA_FreeLibrary();
+HBA_API HBA_STATUS HBA_FreeLibrary(void);
-HBA_API HBA_UINT32 HBA_GetNumberOfAdapters();
+HBA_API HBA_UINT32 HBA_GetNumberOfAdapters(void);
HBA_API HBA_STATUS HBA_GetAdapterName(
HBA_UINT32 adapterindex,
@@ -602,7 +602,7 @@
HBA_UINT32 RspBufferSize
);
-HBA_API void HBA_RefreshAdapterConfiguration();
+HBA_API void HBA_RefreshAdapterConfiguration(void);
HBA_API HBA_STATUS HBA_GetEventBuffer(
HBA_HANDLE handle,
--- open-fcoe-3.11.orig/libHBAAPI/vendorhbaapi.h 2013-10-14 19:16:02.000000000 +0200
+++ open-fcoe-3.11/libHBAAPI/vendorhbaapi.h 2014-06-24 01:43:51.728306594 +0200
@@ -44,10 +44,10 @@
/* 6.10.1 HBA Library Function Table */
-typedef HBA_UINT32 (* HBAGetVersionFunc)();
-typedef HBA_STATUS (* HBALoadLibraryFunc)();
-typedef HBA_STATUS (* HBAFreeLibraryFunc)();
-typedef HBA_UINT32 (* HBAGetNumberOfAdaptersFunc)();
+typedef HBA_UINT32 (* HBAGetVersionFunc)(void);
+typedef HBA_STATUS (* HBALoadLibraryFunc)(void);
+typedef HBA_STATUS (* HBAFreeLibraryFunc)(void);
+typedef HBA_UINT32 (* HBAGetNumberOfAdaptersFunc)(void);
typedef HBA_STATUS (* HBAGetAdapterNameFunc)(HBA_UINT32, char *);
/*
* Open Adapter.... the vendor function is limmited to 16 bits,
@@ -72,7 +72,7 @@
typedef HBA_STATUS (* HBASendCTPassThruV2Func)
(HBA_HANDLE, HBA_WWN, void *, HBA_UINT32, void *, HBA_UINT32 *);
typedef void (* HBARefreshInformationFunc)(HBA_HANDLE);
-typedef void (* HBARefreshAdapterConfigurationFunc) ();
+typedef void (* HBARefreshAdapterConfigurationFunc) (void);
typedef void (* HBAResetStatisticsFunc)(HBA_HANDLE, HBA_UINT32);
typedef HBA_STATUS (* HBAGetFcpTargetMappingV2Func)
(HBA_HANDLE, HBA_WWN, HBA_FCPTARGETMAPPINGV2 *);