You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Staging: csr: remove __cplusplus nonsense from the .h files
In the kernel, we use C. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -13,10 +13,6 @@
|
||||
#include "csr_result.h"
|
||||
#include "csr_framework_ext_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Result codes */
|
||||
#define CSR_FE_RESULT_NO_MORE_EVENTS ((CsrResult) 0x0001)
|
||||
#define CSR_FE_RESULT_INVALID_POINTER ((CsrResult) 0x0002)
|
||||
@@ -36,8 +32,4 @@ extern "C" {
|
||||
|
||||
void CsrThreadSleep(u16 sleepTimeInMs);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -17,11 +17,6 @@
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
struct CsrEvent {
|
||||
@@ -46,8 +41,4 @@ typedef pthread_mutex_t CsrMutexHandle;
|
||||
|
||||
#endif /* __KERNEL__ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
|
||||
#include "csr_prim_defs.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
CsrPrim type;
|
||||
@@ -181,8 +177,4 @@ typedef struct
|
||||
*----------------------------------------------------------------------------*/
|
||||
CsrEventCsrUint32CsrCharString *CsrEventCsrUint32CsrCharString_struct(u16 primtype, u16 msgtype, u32 value1, char *value2);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CSR_LIB_H__ */
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
#include "csr_prim_defs.h"
|
||||
#include "csr_msgconv.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Log filtering
|
||||
*/
|
||||
@@ -224,8 +220,4 @@ void CsrLogExceptionWarning(u16 prim_type,
|
||||
u32 line,
|
||||
const char *file);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
|
||||
#include "csr_log.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*---------------------------------*/
|
||||
/* Log init/deinit */
|
||||
/*---------------------------------*/
|
||||
@@ -127,8 +123,4 @@ void CsrLogLevelTextSet(const char *originName,
|
||||
const char *subOriginName,
|
||||
CsrLogLevelText warningLevelMask);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
|
||||
#include "csr_log_configure.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct CsrLogSubOrigin
|
||||
{
|
||||
u16 subOriginNumber; /* Id of the given SubOrigin */
|
||||
@@ -125,8 +121,4 @@ void CsrLogTextBufferDebug(CsrLogTextTaskId taskId, u16 subOrigin, size_t buffer
|
||||
#define CSR_LOG_TEXT_UNHANDLED_PRIMITIVE(origin, suborigin, primClass, primType)
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define FALSE (0)
|
||||
#define TRUE (1)
|
||||
|
||||
@@ -107,8 +103,4 @@ extern "C" {
|
||||
#define CSR_TOLOWER(character) (((character) >= 'A') && ((character) <= 'Z') ? ((character) + 0x20) : (character))
|
||||
#define CSR_ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x)))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -10,16 +10,8 @@
|
||||
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef CsrMsgTransport
|
||||
#define CsrMsgTransport CsrSchedMessagePut
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CSR_MSG_TRANSPORT */
|
||||
|
||||
@@ -15,10 +15,6 @@
|
||||
#include "csr_prim_defs.h"
|
||||
#include "csr_sched.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef size_t (CsrMsgSizeofFunc)(void *msg);
|
||||
typedef u8 *(CsrMsgSerializeFunc)(u8 *buffer, size_t *length, void *msg);
|
||||
typedef void (CsrMsgFreeFunc)(void *msg);
|
||||
@@ -79,9 +75,4 @@ void CsrUint32Des(u32 *value, u8 *buffer, size_t *offset);
|
||||
void CsrMemCpyDes(void *value, u8 *buffer, size_t *offset, size_t length);
|
||||
void CsrCharStringDes(char **value, u8 *buffer, size_t *offset);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -9,9 +9,6 @@
|
||||
on the license terms.
|
||||
|
||||
*****************************************************************************/
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Segmentation of primitives in upstream and downstream segment
|
||||
@@ -55,8 +52,4 @@ typedef u16 CsrPrim;
|
||||
|
||||
#define CSR_ENV_PRIM ((u16) (0x00FF | CSR_SYNERGY_EVENT_CLASS_MISC_BASE))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CSR_PRIM_DEFS_H__ */
|
||||
|
||||
@@ -10,16 +10,8 @@
|
||||
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef u16 CsrResult;
|
||||
#define CSR_RESULT_SUCCESS ((CsrResult) 0x0000)
|
||||
#define CSR_RESULT_FAILURE ((CsrResult) 0xFFFF)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
#include <linux/types.h>
|
||||
#include "csr_time.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* An identifier issued by the scheduler. */
|
||||
typedef u32 CsrSchedIdentifier;
|
||||
|
||||
@@ -86,8 +82,4 @@ void CsrSchedMessagePut(CsrSchedQid q,
|
||||
void *mv);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
|
||||
#include "csr_result.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Result Codes */
|
||||
#define CSR_SDIO_RESULT_INVALID_VALUE ((CsrResult) 1) /* Invalid argument value */
|
||||
#define CSR_SDIO_RESULT_NO_DEVICE ((CsrResult) 2) /* The specified device is no longer present */
|
||||
@@ -724,8 +720,4 @@ CsrResult CsrSdioHardReset(CsrSdioFunction *function);
|
||||
void CsrSdioFunctionActive(CsrSdioFunction *function);
|
||||
void CsrSdioFunctionIdle(CsrSdioFunction *function);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -12,10 +12,6 @@ on the license terms.
|
||||
|
||||
#include <linux/types.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*******************************************************************************
|
||||
|
||||
NAME
|
||||
@@ -77,8 +73,4 @@ u32 CsrTimeGet(u32 *high);
|
||||
*----------------------------------------------------------------------------*/
|
||||
#define CsrTimeSub(t1, t2) ((s32) (t1) - (s32) (t2))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
#include <linux/types.h>
|
||||
#include "csr_result.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* MAC address */
|
||||
typedef struct
|
||||
{
|
||||
@@ -101,9 +97,5 @@ typedef struct
|
||||
|
||||
#define CSR_WIFI_VERSION "5.1.0.0"
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
#ifndef CSR_WIFI_FSM_H
|
||||
#define CSR_WIFI_FSM_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "csr_prim_defs.h"
|
||||
#include "csr_log_text.h"
|
||||
#include "csr_wifi_fsm_event.h"
|
||||
@@ -240,9 +236,5 @@ extern u8 CsrWifiFsmHasEvents(CsrWifiFsmContext *context);
|
||||
*/
|
||||
extern void CsrWifiFsmInstallWakeupCallback(CsrWifiFsmContext *context, CsrWifiFsmExternalWakupCallbackPtr callback);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CSR_WIFI_FSM_H */
|
||||
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
#ifndef CSR_WIFI_FSM_EVENT_H
|
||||
#define CSR_WIFI_FSM_EVENT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "csr_prim_defs.h"
|
||||
#include "csr_sched.h"
|
||||
|
||||
@@ -42,9 +38,5 @@ typedef struct CsrWifiFsmEvent
|
||||
struct CsrWifiFsmEvent *next;
|
||||
} CsrWifiFsmEvent;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CSR_WIFI_FSM_EVENT_H */
|
||||
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
#ifndef CSR_WIFI_FSM_TYPES_H
|
||||
#define CSR_WIFI_FSM_TYPES_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <linux/types.h>
|
||||
#include "csr_macro.h"
|
||||
#include "csr_sched.h"
|
||||
@@ -431,9 +427,4 @@ struct CsrWifiFsmContext
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* CSR_WIFI_FSM_TYPES_H */
|
||||
|
||||
@@ -21,10 +21,6 @@
|
||||
#ifndef __CARD_H__
|
||||
#define __CARD_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "csr_wifi_hip_card_sdio.h"
|
||||
#include "csr_wifi_hip_signals.h"
|
||||
#include "csr_wifi_hip_unifi_udi.h"
|
||||
@@ -115,9 +111,4 @@ void unifi_debug_string_to_buf(const char *str);
|
||||
void unifi_debug_hex_to_buf(const char *buff, u16 length);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __CARD_H__ */
|
||||
|
||||
@@ -20,10 +20,6 @@
|
||||
#ifndef __CARD_SDIO_H__
|
||||
#define __CARD_SDIO_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "csr_wifi_hip_unifi.h"
|
||||
#include "csr_wifi_hip_unifi_udi.h"
|
||||
#include "csr_wifi_hip_unifihw.h"
|
||||
@@ -695,8 +691,4 @@ CsrResult prealloc_netdata_alloc(card_t *card);
|
||||
void dump(void *mem, u16 len);
|
||||
void dump16(void *mem, u16 len);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __CARD_SDIO_H__ */
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user