Skip to content

Commit

Permalink
Stop using register_sysctl_table()
Browse files Browse the repository at this point in the history
This is needed for post-6.4 kernels.

Fixes #280
  • Loading branch information
solardiz authored and Adam-pi3 committed Jul 16, 2023
1 parent a78f3e5 commit 55d28c9
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/modules/comm_channel/p_comm_channel.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@ static int p_sysctl_profile_enforce(struct ctl_table *p_table, int p_write,
void __user *p_buffer, size_t *p_len, loff_t *p_pos);


struct ctl_table p_lkrg_sysctl_base[] = {
{
.procname = "lkrg",
.mode = 0600,
.child = p_lkrg_sysctl_table,
},
{ }
};

struct ctl_table p_lkrg_sysctl_table[] = {
{
.procname = "kint_validate",
Expand Down Expand Up @@ -1265,7 +1256,7 @@ static int p_sysctl_profile_enforce(struct ctl_table *p_table, int p_write,

int p_register_comm_channel(void) {

if ( (p_sysctl_handle = register_sysctl_table(p_lkrg_sysctl_base)) == NULL) {
if ( (p_sysctl_handle = register_sysctl("lkrg", p_lkrg_sysctl_table)) == NULL) {
return P_LKRG_GENERAL_ERROR;
}

Expand Down

0 comments on commit 55d28c9

Please sign in to comment.