summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/debugfs.c
diff options
context:
space:
mode:
authorCasey Bowman <casey.g.bowman@intel.com>2020-10-07 16:13:07 -0700
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-11-05 13:32:46 +0300
commit77455129fb5b2a8749330b2b40d0c8750b6bf076 (patch)
treee3b64e5c4135e588af023fbdc04d9ccfaae37113 /drivers/thunderbolt/debugfs.c
parenta663e0df4a374b8537562a44d1cecafb472cd65b (diff)
downloadlwn-77455129fb5b2a8749330b2b40d0c8750b6bf076.tar.gz
lwn-77455129fb5b2a8749330b2b40d0c8750b6bf076.zip
thunderbolt: Add uaccess dependency to debugfs interface
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>
Diffstat (limited to 'drivers/thunderbolt/debugfs.c')
-rw-r--r--drivers/thunderbolt/debugfs.c1
1 files changed, 1 insertions, 0 deletions
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"