[nit] fix extraneous trailing ; in CDECLS lines
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include <arch/arm/cm.h>
|
||||
#endif
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#if ARM_ISA_ARMV7 || (ARM_ISA_ARMV6 && !__thumb__)
|
||||
#define USE_GCC_ATOMICS 0
|
||||
@@ -471,6 +471,6 @@ static inline uint32_t arch_cycle_count(void) { return _arch_cycle_count(); }
|
||||
#define smp_rmb() CF
|
||||
#endif
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif // ASSEMBLY
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <arch/ops.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define SPIN_LOCK_INITIAL_VALUE (0)
|
||||
|
||||
@@ -108,4 +108,4 @@ arch_interrupt_restore(spin_lock_saved_state_t old_state, spin_lock_save_flags_t
|
||||
arch_enable_ints();
|
||||
}
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <stddef.h>
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* app support api */
|
||||
void apps_init(void); /* one time setup */
|
||||
@@ -53,7 +53,7 @@ struct app_descriptor {
|
||||
|
||||
#define APP_END };
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <compiler.h>
|
||||
#include <arch/ops.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define clz(x) __builtin_clz(x)
|
||||
#define ctz(x) __builtin_ctz(x)
|
||||
@@ -88,6 +88,6 @@ static inline int bitmap_ffz(unsigned long *bitmap, int numbits)
|
||||
return -1;
|
||||
}
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
@@ -69,7 +69,7 @@ enum {
|
||||
#define KEVLOG_IRQ_ENTER(irqn) kernel_evlog_add(KERNEL_EVLOG_IRQ_ENTER, (uintptr_t)irqn, 0)
|
||||
#define KEVLOG_IRQ_EXIT(irqn) kernel_evlog_add(KERNEL_EVLOG_IRQ_EXIT, (uintptr_t)irqn, 0)
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <kernel/thread.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define EVENT_MAGIC (0x65766E74) // "evnt"
|
||||
|
||||
@@ -81,7 +81,7 @@ static inline status_t event_wait(event_t *e)
|
||||
return event_wait_timeout(e, INFINITE_TIME);
|
||||
}
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <stdint.h>
|
||||
#include <kernel/thread.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
typedef uint32_t mp_cpu_mask_t;
|
||||
|
||||
@@ -126,4 +126,4 @@ static inline void mp_set_cpu_non_realtime(uint cpu) {}
|
||||
static inline mp_cpu_mask_t mp_get_realtime_mask(void) { return 0; }
|
||||
#endif
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <stdint.h>
|
||||
#include <kernel/thread.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define MUTEX_MAGIC (0x6D757478) // 'mutx'
|
||||
|
||||
@@ -69,6 +69,6 @@ static bool is_mutex_held(mutex_t *m)
|
||||
return m->holder == get_current_thread();
|
||||
}
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
#endif
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <compiler.h>
|
||||
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* Ports are named, opaque objects and come in three flavors, the
|
||||
* write-side, the read-side and a port group which is a collection
|
||||
@@ -103,7 +103,7 @@ status_t port_destroy(port_t port);
|
||||
*/
|
||||
status_t port_close(port_t port);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <kernel/thread.h>
|
||||
#include <kernel/mutex.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define SEMAPHORE_MAGIC (0x73656D61) // 'sema'
|
||||
|
||||
@@ -45,5 +45,5 @@ status_t sem_wait(semaphore_t *);
|
||||
status_t sem_trywait(semaphore_t *);
|
||||
status_t sem_timedwait(semaphore_t *, lk_time_t);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
#endif
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
typedef struct vmm_aspace vmm_aspace_t;
|
||||
#endif
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* debug-enable runtime checks */
|
||||
#if LK_DEBUGLEVEL > 1
|
||||
@@ -250,6 +250,6 @@ extern struct thread_stats thread_stats[SMP_MAX_CPUS];
|
||||
|
||||
#endif
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <list.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
void timer_init(void);
|
||||
|
||||
@@ -68,7 +68,7 @@ void timer_set_oneshot(timer_t *, lk_time_t delay, timer_callback, void *arg);
|
||||
void timer_set_periodic(timer_t *, lk_time_t period, timer_callback, void *arg);
|
||||
void timer_cancel(timer_t *);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <arch/ops.h>
|
||||
#include <arch/thread.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* wait queue stuff */
|
||||
#define WAIT_QUEUE_MAGIC (0x77616974) // 'wait'
|
||||
@@ -81,7 +81,7 @@ int wait_queue_wake_all(wait_queue_t *, bool reschedule, status_t wait_queue_err
|
||||
*/
|
||||
status_t thread_unblock_from_wait_queue(struct thread *t, status_t wait_queue_error);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
* specific apis.
|
||||
*/
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define PAGE_ALLOC_ANY_ARENA (-1)
|
||||
|
||||
@@ -64,6 +64,6 @@ int page_get_arenas(struct page_range* ranges, int number_of_ranges);
|
||||
// will return some non-page-aligned memory that would otherwise go to waste.
|
||||
void *page_first_alloc(size_t *size_return);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define containerof(ptr, type, member) \
|
||||
((type *)((addr_t)(ptr) - offsetof(type, member)))
|
||||
@@ -282,6 +282,6 @@ static inline size_t list_length(struct list_node *list)
|
||||
return cnt;
|
||||
}
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
typedef enum {
|
||||
HALT_ACTION_HALT = 0, // Spin forever.
|
||||
@@ -84,6 +84,6 @@ void platform_halt(platform_halt_action suggested_action,
|
||||
/* called during chain loading to make sure drivers and platform is put into a stopped state */
|
||||
void platform_quiesce(void);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <stdint.h>
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* routines for dealing with power of 2 values for efficiency */
|
||||
static inline __ALWAYS_INLINE bool ispow2(uint val)
|
||||
@@ -72,7 +72,7 @@ static inline __ALWAYS_INLINE uint32_t round_up_pow2_u32(uint32_t v)
|
||||
v++;
|
||||
return v;
|
||||
}
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <compiler.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* super early platform initialization, before almost everything */
|
||||
void target_early_init(void);
|
||||
@@ -46,6 +46,6 @@ void target_set_debug_led(unsigned int led, bool on);
|
||||
#define target_set_debug_led(led, on) ((void)(0))
|
||||
#endif
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <list.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
#define BIO_FLAGS_NONE (0 << 0)
|
||||
#define BIO_FLAG_CACHE_ALIGNED_READS (1 << 0)
|
||||
@@ -147,4 +147,4 @@ enum bio_ioctl_num {
|
||||
BIO_IOCTL_IS_MAPPED, /* if supported, returns whether or not the device is memory mapped. */
|
||||
};
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
@@ -29,7 +29,7 @@
|
||||
#define FS_MAX_PATH_LEN 128
|
||||
#define FS_MAX_FILE_LEN 64
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
// Generic FS ioctls
|
||||
enum fs_ioctl_num {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
void *cmpct_alloc(size_t);
|
||||
void *cmpct_realloc(void *, size_t);
|
||||
@@ -36,4 +36,4 @@ void cmpct_dump(void);
|
||||
void cmpct_test(void);
|
||||
void cmpct_trim(void);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
/* standard heap definitions */
|
||||
void *malloc(size_t size) __MALLOC;
|
||||
@@ -43,4 +43,4 @@ void heap_delayed_free(void *);
|
||||
/* tell the heap to return any free pages it can find */
|
||||
void heap_trim(void);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
struct miniheap_stats {
|
||||
void *heap_start;
|
||||
@@ -44,4 +44,4 @@ void miniheap_init(void *ptr, size_t len);
|
||||
void miniheap_dump(void);
|
||||
void miniheap_trim(void);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
int isalnum(int c);
|
||||
int isalpha(int c);
|
||||
@@ -43,7 +43,7 @@ int isxdigit(int c);
|
||||
int tolower(int c);
|
||||
int toupper(int c);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <stddef.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
typedef struct iovec {
|
||||
void *iov_base;
|
||||
@@ -39,7 +39,7 @@ ssize_t iovec_size(const iovec_t *iov, uint iov_cnt);
|
||||
ssize_t iovec_to_membuf(uint8_t *buf, uint buf_len,
|
||||
const iovec_t *iov, uint iov_cnt, uint iov_pos);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include <compiler.h>
|
||||
#include <sys/types.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
int rand(void);
|
||||
void srand(unsigned int seed);
|
||||
@@ -34,7 +34,7 @@ void srand(unsigned int seed);
|
||||
/* non standard extension to add some entropy to the seed */
|
||||
void rand_add_entropy(const void *buf, size_t len);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include <rand.h>
|
||||
#include <arch/defines.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
int atoi(const char *num);
|
||||
unsigned int atoui(const char *num);
|
||||
@@ -61,7 +61,7 @@ void *bsearch(const void *key, const void *base, size_t num_elems, size_t size,
|
||||
unsigned long int strtoul(const char *nptr, char **endptr, int base);
|
||||
char *getenv(const char *name);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
#include <compiler.h>
|
||||
|
||||
__BEGIN_CDECLS;
|
||||
__BEGIN_CDECLS
|
||||
|
||||
int strcasecmp(const char *s1, const char *s2);
|
||||
|
||||
__END_CDECLS;
|
||||
__END_CDECLS
|
||||
|
||||
#endif /* !__STRINGS_H */
|
||||
|
||||
Reference in New Issue
Block a user