Commit 298754c5 authored by Stephen Boyd's avatar Stephen Boyd Committed by Greg Kroah-Hartman

coresight: Include required headers in C files

We should include headers that C files use in the C files that use them
and avoid relying on implicit includes as much as possible. This helps
avoid compiler errors in the future about missing declarations when
header files change includes in the future.

Cc: Douglas Anderson <dianders@chromium.org>
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200518180242.7916-20-mathieu.poirier@linaro.orgSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bab223f9
...@@ -2,11 +2,17 @@ ...@@ -2,11 +2,17 @@
/* /*
* Copyright (c) 2019, The Linaro Limited. All rights reserved. * Copyright (c) 2019, The Linaro Limited. All rights reserved.
*/ */
#include <linux/coresight.h>
#include <linux/device.h>
#include <linux/err.h>
#include <linux/of.h>
#include <linux/property.h>
#include <linux/slab.h>
#include <dt-bindings/arm/coresight-cti-dt.h> #include <dt-bindings/arm/coresight-cti-dt.h>
#include <linux/of.h>
#include "coresight-cti.h" #include "coresight-cti.h"
#include "coresight-priv.h"
/* Number of CTI signals in the v8 architecturally defined connection */ /* Number of CTI signals in the v8 architecturally defined connection */
#define NR_V8PE_IN_SIGS 2 #define NR_V8PE_IN_SIGS 2
......
...@@ -4,7 +4,13 @@ ...@@ -4,7 +4,13 @@
* Author: Mike Leach <mike.leach@linaro.org> * Author: Mike Leach <mike.leach@linaro.org>
*/ */
#include <linux/atomic.h>
#include <linux/coresight.h> #include <linux/coresight.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/sysfs.h>
#include "coresight-cti.h" #include "coresight-cti.h"
......
...@@ -4,7 +4,20 @@ ...@@ -4,7 +4,20 @@
* Author: Mike Leach <mike.leach@linaro.org> * Author: Mike Leach <mike.leach@linaro.org>
*/ */
#include <linux/amba/bus.h>
#include <linux/atomic.h>
#include <linux/bits.h>
#include <linux/coresight.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/pm_runtime.h>
#include <linux/property.h> #include <linux/property.h>
#include <linux/spinlock.h>
#include "coresight-priv.h"
#include "coresight-cti.h" #include "coresight-cti.h"
/** /**
......
...@@ -7,8 +7,14 @@ ...@@ -7,8 +7,14 @@
#ifndef _CORESIGHT_CORESIGHT_CTI_H #ifndef _CORESIGHT_CORESIGHT_CTI_H
#define _CORESIGHT_CORESIGHT_CTI_H #define _CORESIGHT_CORESIGHT_CTI_H
#include <asm/local.h> #include <linux/coresight.h>
#include <linux/device.h>
#include <linux/fwnode.h>
#include <linux/list.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
#include <linux/sysfs.h>
#include <linux/types.h>
#include "coresight-priv.h" #include "coresight-priv.h"
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment