diff options
Diffstat (limited to 'src/kernel/arch/i386/driver')
-rw-r--r-- | src/kernel/arch/i386/driver/fsroot.c | 2 | ||||
-rw-r--r-- | src/kernel/arch/i386/driver/ps2.c | 6 | ||||
-rw-r--r-- | src/kernel/arch/i386/driver/serial.c | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/src/kernel/arch/i386/driver/fsroot.c b/src/kernel/arch/i386/driver/fsroot.c index 49cecc9..e6e53cd 100644 --- a/src/kernel/arch/i386/driver/fsroot.c +++ b/src/kernel/arch/i386/driver/fsroot.c @@ -136,7 +136,7 @@ static void accept(struct vfs_request *req) { } } -static bool is_ready(struct vfs_backend *self) { +static bool is_ready(struct vfs_backend __attribute__((unused)) *self) { return true; } diff --git a/src/kernel/arch/i386/driver/ps2.c b/src/kernel/arch/i386/driver/ps2.c index 97e2878..aaa3156 100644 --- a/src/kernel/arch/i386/driver/ps2.c +++ b/src/kernel/arch/i386/driver/ps2.c @@ -54,7 +54,7 @@ static void accept(struct vfs_request *req) { if (req->caller) { // clamp between 0, sizeof buf ret = req->output.len; - if (ret > sizeof buf) ret = sizeof buf; + if (ret > (int)sizeof buf) ret = sizeof buf; if (ret < 0) ret = 0; ret = ps2_read(buf, ret); @@ -71,4 +71,6 @@ static void accept(struct vfs_request *req) { } } -static bool is_ready(struct vfs_backend *self) { return blocked_on == NULL; } +static bool is_ready(struct vfs_backend __attribute__((unused)) *self) { + return blocked_on == NULL; +} diff --git a/src/kernel/arch/i386/driver/serial.c b/src/kernel/arch/i386/driver/serial.c index 614d4e0..12cf2b8 100644 --- a/src/kernel/arch/i386/driver/serial.c +++ b/src/kernel/arch/i386/driver/serial.c @@ -92,7 +92,7 @@ static void accept(struct vfs_request *req) { if (req->caller) { // clamp between 0, sizeof buf ret = req->output.len; - if (ret > sizeof buf) ret = sizeof buf; + if (ret > (int)sizeof buf) ret = sizeof buf; if (ret < 0) ret = 0; ret = serial_read(buf, ret); @@ -120,4 +120,4 @@ static void accept(struct vfs_request *req) { } } -static bool is_ready(struct vfs_backend *self) { return blocked_on == NULL; } +static bool is_ready(struct vfs_backend __attribute__((unused)) *self) { return blocked_on == NULL; } |