Skip to contentSkip to conversation

coresight: Fix implicit inclusion of linux/sched.h

PATCH New Mark Brown 3 participants 3 messages Jul 20, 2015 Arm/CoreSight framework and drivers

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 coresight: Fix implicit inclusion of linux/sched.h

The patch "Coresight: Add an interface for supporting ETM3/4 Context ID tracing" adds uses of find_task_by_vpid() and task_pid_nr() from linux/sched.h but does not include that header causing build errors in at least an ARM allmodconfig where it is not implicitly included. Add an explicit include to fix that.

---
 include/linux/coresight.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/coresight.h +1 -0
index 626da6948ca2..c69e1b932809 100644
@@ -14,6 +14,7 @@
 #define _LINUX_CORESIGHT_H
 
 #include <linux/device.h>
+#include <linux/sched.h>
 
 /* Peripheral id registers (0xFD0-0xFEC) */
 #define CORESIGHT_PERIPHIDR4	0xfd0
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 coresight: Fix implicit inclusion of linux/sched.h

Thank you so much, Mark

Chunyan

Quoted 26 lines · Mark Brown

The patch "Coresight: Add an interface for supporting ETM3/4 Context ID tracing" adds uses of find_task_by_vpid() and task_pid_nr() from linux/sched.h but does not include that header causing build errors in at least an ARM allmodconfig where it is not implicitly included. Add an explicit include to fix that.

---
 include/linux/coresight.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/coresight.h +1 -1
index 626da6948ca2..c69e1b932809 100644
@@ -14,6 +14,7 @@
 #define _LINUX_CORESIGHT_H
 
 #include <linux/device.h>
+#include <linux/sched.h>
 
 /* Peripheral id registers (0xFD0-0xFEC) */
 #define CORESIGHT_PERIPHIDR4   0xfd0
--

2.1.4

#2 lore raw

PATCH 1/1 coresight: Fix implicit inclusion of linux/sched.h

In reply to Mark Brown
Quoted 24 lines · Mark Brown

The patch "Coresight: Add an interface for supporting ETM3/4 Context ID tracing" adds uses of find_task_by_vpid() and task_pid_nr() from linux/sched.h but does not include that header causing build errors in at least an ARM allmodconfig where it is not implicitly included. Add an explicit include to fix that.

---
 include/linux/coresight.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/coresight.h +1 -1
index 626da6948ca2..c69e1b932809 100644
@@ -14,6 +14,7 @@
 #define _LINUX_CORESIGHT_H
 
 #include <linux/device.h>
+#include <linux/sched.h>
 
 /* Peripheral id registers (0xFD0-0xFEC) */
 #define CORESIGHT_PERIPHIDR4   0xfd0
--
Quoted 2 lines

2.1.4

Applied - thanks.