Skip to content

Commit

Permalink
jit: fix compilation of the module
Browse files Browse the repository at this point in the history
The module was using the PDE_DATA function (deprecated since 5.17) and
the module wasn't compiling.

More about the PDE_DATA removal here: torvalds/linux@359745d
  • Loading branch information
Pablito2020 authored and martinezjavier committed Feb 13, 2023
1 parent 718cbdf commit a8d82b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc-modules/jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ int jit_fn_show(struct seq_file *m, void *v)

static int jit_fn_open(struct inode *inode, struct file *file)
{
return single_open(file, jit_fn_show, PDE_DATA(inode));
return single_open(file, jit_fn_show, pde_data(inode));
}

static const struct file_operations jit_fn_fops = {
Expand Down Expand Up @@ -303,7 +303,7 @@ int jit_tasklet_show(struct seq_file *m, void *v)

static int jit_tasklet_open(struct inode *inode, struct file *file)
{
return single_open(file, jit_tasklet_show, PDE_DATA(inode));
return single_open(file, jit_tasklet_show, pde_data(inode));
}

static const struct file_operations jit_tasklet_fops = {
Expand Down

0 comments on commit a8d82b0

Please sign in to comment.