Skip to content

Commit

Permalink
edac: phytium_edac: fix build for >= 6.10
Browse files Browse the repository at this point in the history
Adapt edac_device_alloc_ctl_info() to changes in:

commit 48bc886
Author: Jiri Slaby (SUSE) <[email protected]>
Date:   Tue Feb 13 12:20:48 2024 +0100

    EDAC: Remove dynamic attributes from edac_device_alloc_ctl_info()

    Dynamic attributes are not passed from any caller of
    edac_device_alloc_ctl_info(). Drop this unused/untested functionality
    completely.

    Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
    Signed-off-by: Borislav Petkov (AMD) <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Signed-off-by: Borislav Petkov (AMD) <[email protected]>

Signed-off-by: Mingcong Bai <[email protected]>
  • Loading branch information
MingcongBai committed Nov 12, 2024
1 parent 90d1c37 commit d660d9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/edac/phytium_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ static int phytium_edac_device_add(struct phytium_edac *edac)

edac_dev = edac_device_alloc_ctl_info(
sizeof(struct edac_device_ctl_info),
"ras", 1, "soc", 1, 0, NULL,
0, edac_device_alloc_index());
"ras", 1, "soc", 1, 0,
edac_device_alloc_index());
if (!edac_dev)
res = -ENOMEM;

Expand Down

0 comments on commit d660d9d

Please sign in to comment.