staging: IB/ipath: use TASK_COMM_LEN in ipath_portdata
authorGeliang Tang <geliangtang@163.com>
Sun, 18 Oct 2015 13:57:08 +0000 (21:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:06:05 +0000 (19:06 -0700)
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>
drivers/staging/rdma/ipath/ipath_kernel.h

index f0f9471227793f99f386555100ea0254ff39a1f9..66c934a5f8390744673b982a03267365c7372685 100644 (file)
@@ -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 */