Skip to content

Commit

Permalink
sysctl: Exclude the trailing empty element on recent kernels
Browse files Browse the repository at this point in the history
Fixes #347
  • Loading branch information
solardiz committed Jul 28, 2024
1 parent 0c6d213 commit c64f983
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/modules/comm_channel/p_comm_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,14 @@ struct ctl_table p_lkrg_sysctl_table[] = {
.extra1 = &p_profile_enforce_min,
.extra2 = &p_profile_enforce_max,
},
/*
* Empty element at the end of array was required when register_sysctl() was a
* function. It's no longer required when it became a macro in 2023, and it's
* disallowed after further changes in 2024.
*/
#ifndef register_sysctl
{ }
#endif
};


Expand Down

0 comments on commit c64f983

Please sign in to comment.