[dev/lib][warnings] fix -Wmissing-declarations warnings in dev/ and lib/
This commit is contained in:
@@ -5,8 +5,3 @@
|
||||
* license that can be found in the LICENSE file or at
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
void dev_init(void) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user