Skip to content

Adios on 6.17-rc4 does not compile #116

@bermeitinger-b

Description

@bermeitinger-b

This commit: torvalds/linux@f5a6604 introduced a different interface than the one used in adios.c.

block/adios.c:1336:26: error: too few arguments to function call, expected 3, have 2
 1336 |         eq = elevator_alloc(q, e);
      |              ~~~~~~~~~~~~~~     ^
block/elevator.h:165:24: note: 'elevator_alloc' declared here
  165 | struct elevator_queue *elevator_alloc(struct request_queue *,
      |                        ^              ~~~~~~~~~~~~~~~~~~~~~~~
  166 |                 struct elevator_type *, struct elevator_tags *);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
block/adios.c:1852:19: error: incompatible function pointer types initializing 'int (*)(struct request_queue *, struct elevator_queue *)' with an expression of type 'int (struct request_queue *, struct elevator_type *)' [-Wincompatible-function-pointer-types]
 1852 |                 .init_sched                     = adios_init_sched,
      | 

My C and kernel skills are not good enough to propose a patch set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions