From penberg@cs.helsinki.fi Mon Oct 20 14:28:55 2008 From: Pekka J Enberg Date: Fri, 17 Oct 2008 20:56:00 +0300 (EEST) Subject: Staging: echo: remove __cplusplus macro magic To: greg@kroah.com Cc: david@rowetel.com, steveu@coppice.org, linux-kernel@vger.kernel.org Message-ID: From: Pekka Enberg The kernel is written in C, so remove the __cplusplus macro magic from the driver. Cc: David Rowe Cc: Steve Underwood Signed-off-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman --- drivers/staging/echo/bit_operations.h | 8 -------- drivers/staging/echo/fir.h | 8 -------- 2 files changed, 16 deletions(-) --- a/drivers/staging/echo/bit_operations.h +++ b/drivers/staging/echo/bit_operations.h @@ -30,10 +30,6 @@ #if !defined(_BIT_OPERATIONS_H_) #define _BIT_OPERATIONS_H_ -#ifdef __cplusplus -extern "C" { -#endif - #if defined(__i386__) || defined(__x86_64__) /*! \brief Find the bit position of the highest set bit in a word \param bits The word to be searched @@ -245,9 +241,5 @@ static __inline__ int parity32(uint32_t } /*- End of function --------------------------------------------------------*/ -#ifdef __cplusplus -} -#endif - #endif /*- End of file ------------------------------------------------------------*/ --- a/drivers/staging/echo/fir.h +++ b/drivers/staging/echo/fir.h @@ -105,10 +105,6 @@ typedef struct float *history; } fir_float_state_t; -#ifdef __cplusplus -extern "C" { -#endif - static __inline__ const int16_t *fir16_create(fir16_state_t *fir, const int16_t *coeffs, int taps) @@ -312,9 +308,5 @@ static __inline__ int16_t fir32(fir32_st } /*- End of function --------------------------------------------------------*/ -#ifdef __cplusplus -} -#endif - #endif /*- End of file ------------------------------------------------------------*/