Suppress unused variable warnings
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m54s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 1m54s
This commit is contained in:
@@ -166,6 +166,8 @@ static int32_t ps2kb_keycode (void) {
|
||||
}
|
||||
|
||||
static bool ps2kb_irq (struct cpu** reschedule_cpu, void* arg, void* regs) {
|
||||
(void)arg, (void)regs;
|
||||
|
||||
int32_t keycode = ps2kb_keycode ();
|
||||
|
||||
if (keycode <= 0)
|
||||
@@ -196,7 +198,7 @@ static bool ps2kb_irq (struct cpu** reschedule_cpu, void* arg, void* regs) {
|
||||
|
||||
int ps2kb_read_key (struct device* device, struct device_op_ctx* op_ctx, void* a1, void* a2,
|
||||
void* a3, void* a4) {
|
||||
(void)device;
|
||||
(void)device, (void)a2, (void)a3, (void)a4;
|
||||
|
||||
if ((op_ctx->proc != NULL) && !(op_ctx->proc->procgroup->capabilities & PROC_CAP_KB))
|
||||
return -ST_PERMISSION_ERROR;
|
||||
@@ -224,7 +226,7 @@ int ps2kb_read_key (struct device* device, struct device_op_ctx* op_ctx, void* a
|
||||
}
|
||||
|
||||
bool ps2kb_init (struct device* device, void* arg) {
|
||||
(void)device;
|
||||
(void)device, (void)arg;
|
||||
|
||||
amd64_ioapic_route_irq (PS2KB, 1, 0, thiscpu->lapic_id);
|
||||
irq_attach (&ps2kb_irq, NULL, PS2KB);
|
||||
|
||||
@@ -91,6 +91,8 @@ int ramdrv_get_sector_size (struct device* device, struct device_op_ctx* op_ctx,
|
||||
|
||||
int ramdrv_read (struct device* device, struct device_op_ctx* op_ctx, void* a1, void* a2, void* a3,
|
||||
void* a4) {
|
||||
(void)op_ctx, (void)a4;
|
||||
|
||||
if (a1 == NULL || a2 == NULL || a3 == NULL)
|
||||
return -ST_BAD_ADDRESS_SPACE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user