summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-10-18 21:57:08 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-24 19:06:05 -0700
commit335c8ea16069aefd929acf6b287b3a23b39db978 (patch)
tree863b517258e8e08dcc21d53b21d5c69dfbc5f145 /drivers/staging/rdma
parent9821ed04795f019bfa14573847c743c6b89d96c4 (diff)
downloadblackbird-op-linux-335c8ea16069aefd929acf6b287b3a23b39db978.tar.gz
blackbird-op-linux-335c8ea16069aefd929acf6b287b3a23b39db978.zip
staging: IB/ipath: use TASK_COMM_LEN in ipath_portdata
Use comm[TASK_COMM_LEN] instead of comm[16] in ipath_kernel.h. And add sched.h header in it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rdma')
-rw-r--r--drivers/staging/rdma/ipath/ipath_kernel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/rdma/ipath/ipath_kernel.h b/drivers/staging/rdma/ipath/ipath_kernel.h
index f0f947122779..66c934a5f839 100644
--- a/drivers/staging/rdma/ipath/ipath_kernel.h
+++ b/drivers/staging/rdma/ipath/ipath_kernel.h
@@ -44,6 +44,7 @@
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/scatterlist.h>
+#include <linux/sched.h>
#include <asm/io.h>
#include <rdma/ib_verbs.h>
@@ -162,7 +163,7 @@ struct ipath_portdata {
struct pid *port_pid;
struct pid *port_subpid[INFINIPATH_MAX_SUBPORT];
/* same size as task_struct .comm[] */
- char port_comm[16];
+ char port_comm[TASK_COMM_LEN];
/* pkeys set by this use of this port */
u16 port_pkeys[4];
/* so file ops can get at unit */
OpenPOWER on IntegriCloud