diff mbox series

[2/3] thunderbolt: Add uaccess dependency to debugfs interface

Message ID 20201029094636.51818-2-mika.westerberg@linux.intel.com (mailing list archive)
State Accepted
Commit 77455129fb5b2a8749330b2b40d0c8750b6bf076
Headers show
Series [1/3] thunderbolt: Fix memory leak if ida_simple_get() fails in enumerate_services() | expand

Commit Message

Mika Westerberg Oct. 29, 2020, 9:46 a.m. UTC
From: Casey Bowman <casey.g.bowman@intel.com>

Some calls in the debugfs interface are made to the linux/uaccess.h header,
but the header is not referenced. So, for x86_64 architectures, this
dependency seems to be pulled in elsewhere, which leads to a successful
compilation. However, on arm/arm64 architectures, it was found to error out
on implicit declarations.

This change fixes the implicit declaration error by adding the
linux/uaccess.h header.

Fixes: 54e418106c76 ("thunderbolt: Add debugfs interface")
Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
---
 drivers/thunderbolt/debugfs.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/thunderbolt/debugfs.c b/drivers/thunderbolt/debugfs.c
index 3680b2784ea1..ed65d2b13964 100644
--- a/drivers/thunderbolt/debugfs.c
+++ b/drivers/thunderbolt/debugfs.c
@@ -9,6 +9,7 @@ 
 
 #include <linux/debugfs.h>
 #include <linux/pm_runtime.h>
+#include <linux/uaccess.h>
 
 #include "tb.h"