Skip to content

Commit eccd743

Browse files
committed
tee: fix compiler warning in tee_shm_register()
Include <linux/uaccess.h> to avoid the warning: drivers/tee/tee_shm.c: In function 'tee_shm_register': >> drivers/tee/tee_shm.c:242:14: error: implicit declaration of function 'access_ok' [-Werror=implicit-function-declaration] 242 | if (!access_ok((void __user *)addr, length)) | ^~~~~~~~~ cc1: some warnings being treated as errors Fixes: 573ae4f ("tee: add overflow check in register_shm_helper()") Reviewed-by: Sumit Garg <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Jens Wiklander <[email protected]>
1 parent 1c23f9e commit eccd743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tee/tee_shm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/sched.h>
1010
#include <linux/slab.h>
1111
#include <linux/tee_drv.h>
12+
#include <linux/uaccess.h>
1213
#include <linux/uio.h>
1314
#include "tee_private.h"
1415

0 commit comments

Comments
 (0)