Skip to content

Commit

Permalink
website: added conditional preprocessor directive
Browse files Browse the repository at this point in the history
Signed-off-by: Akari <[email protected]>
  • Loading branch information
whyakari authored May 27, 2024
1 parent 6a39798 commit 68d03f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions website/docs/guide/how-to-integrate-for-non-gki.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ index 32f6f1c68..d69d8eca2 100644
return dentry;
}

+#ifdef CONFIG_KSU
+extern int ksu_handle_devpts(struct inode*);
+#endif
+
/**
* devpts_get_priv -- get private data for a slave
Expand All @@ -325,7 +327,9 @@ index 32f6f1c68..d69d8eca2 100644
*/
void *devpts_get_priv(struct dentry *dentry)
{
+ #ifdef CONFIG_KSU
+ ksu_handle_devpts(dentry->d_inode);
+ #endif
if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)
return NULL;
return dentry->d_fsdata;
Expand Down

0 comments on commit 68d03f6

Please sign in to comment.