[dev/lib][warnings] fix -Wmissing-declarations warnings in dev/ and lib/

This commit is contained in:
Travis Geiselbrecht
2021-10-21 23:16:20 -07:00
parent a895bcece5
commit fcb65c9a88
28 changed files with 49 additions and 24 deletions

View File

@@ -5,8 +5,3 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
void dev_init(void) {
}

View File

@@ -405,6 +405,7 @@ enum handler_return __platform_irq(struct iframe *frame) {
return ret;
}
enum handler_return platform_irq(struct iframe *frame);
enum handler_return platform_irq(struct iframe *frame) {
#if WITH_LIB_SM
uint32_t ahppir = GICREG(0, GICC_AHPPIR);
@@ -447,6 +448,7 @@ enum handler_return platform_irq(struct iframe *frame) {
#endif
}
void platform_fiq(struct iframe *frame);
void platform_fiq(struct iframe *frame) {
#if WITH_LIB_SM
sm_handle_fiq();

View File

@@ -67,7 +67,7 @@ static struct fp_32_64 timer_freq_msec_conversion_inverse;
static void arm_cortex_a9_timer_init_percpu(uint level);
uint64_t get_global_val(void) {
static uint64_t get_global_val(void) {
uint32_t lo, hi;
retry:

View File

@@ -5,6 +5,7 @@
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT
*/
#include <dev/timer/arm_generic.h>
#include <arch/ops.h>
#include <assert.h>

View File

@@ -535,7 +535,7 @@ static int virtio_gpu_flush_thread(void *arg) {
return 0;
}
void virtio_gpu_gfx_flush(uint starty, uint endy) {
static void virtio_gpu_gfx_flush(uint starty, uint endy) {
event_signal(&the_gdev->flush_event, !arch_ints_disabled());
}

View File

@@ -380,7 +380,7 @@ void virtio_status_driver_ok(struct virtio_device *dev) {
dev->mmio_config->status |= VIRTIO_STATUS_DRIVER_OK;
}
void virtio_init(uint level) {
static void virtio_init(uint level) {
}
LK_INIT_HOOK(virtio, &virtio_init, LK_INIT_LEVEL_THREADING);