[includes] replace header guards with #pragma once
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_DEBUG_H
|
||||
#define __KERNEL_DEBUG_H
|
||||
#pragma once
|
||||
|
||||
#include <lk/compiler.h>
|
||||
|
||||
@@ -55,6 +54,3 @@ enum {
|
||||
#define KEVLOG_IRQ_EXIT(irqn) kernel_evlog_add(KERNEL_EVLOG_IRQ_EXIT, (uintptr_t)irqn, 0)
|
||||
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_EVENT_H
|
||||
#define __KERNEL_EVENT_H
|
||||
#pragma once
|
||||
|
||||
#include <lk/compiler.h>
|
||||
#include <stdbool.h>
|
||||
@@ -65,6 +64,3 @@ static inline status_t event_wait(event_t *e) {
|
||||
}
|
||||
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_MUTEX_H
|
||||
#define __KERNEL_MUTEX_H
|
||||
#pragma once
|
||||
|
||||
#include <lk/compiler.h>
|
||||
#include <lk/debug.h>
|
||||
@@ -53,5 +52,3 @@ static bool is_mutex_held(mutex_t *m) {
|
||||
}
|
||||
|
||||
__END_CDECLS
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_NOVM_H
|
||||
#define __KERNEL_NOVM_H
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdlib.h>
|
||||
@@ -36,5 +35,3 @@ struct page_range {
|
||||
};
|
||||
|
||||
int novm_get_arenas(struct page_range *ranges, int number_of_ranges);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_PORT_H
|
||||
#define __KERNEL_PORT_H
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <lk/compiler.h>
|
||||
@@ -89,6 +88,3 @@ status_t port_destroy(port_t port);
|
||||
status_t port_close(port_t port);
|
||||
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __KERNEL_SEMAPHORE_H
|
||||
#define __KERNEL_SEMAPHORE_H
|
||||
#pragma once
|
||||
|
||||
#include <lk/compiler.h>
|
||||
#include <kernel/thread.h>
|
||||
@@ -46,4 +45,3 @@ status_t sem_trywait(semaphore_t *);
|
||||
status_t sem_timedwait(semaphore_t *, lk_time_t);
|
||||
|
||||
__END_CDECLS
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_THREAD_H
|
||||
#define __KERNEL_THREAD_H
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <lk/list.h>
|
||||
@@ -234,5 +233,3 @@ extern struct thread_stats thread_stats[SMP_MAX_CPUS];
|
||||
#endif
|
||||
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_TIMER_H
|
||||
#define __KERNEL_TIMER_H
|
||||
#pragma once
|
||||
|
||||
#include <lk/compiler.h>
|
||||
#include <lk/list.h>
|
||||
@@ -54,6 +53,3 @@ void timer_set_periodic(timer_t *, lk_time_t period, timer_callback, void *arg);
|
||||
void timer_cancel(timer_t *);
|
||||
|
||||
__END_CDECLS
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
#ifndef __KERNEL_WAIT_H
|
||||
#define __KERNEL_WAIT_H
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <lk/list.h>
|
||||
@@ -67,6 +66,3 @@ 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
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user