From patchwork Sun Oct 18 13:57:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7430271 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 225EBBEEA4 for ; Sun, 18 Oct 2015 13:58:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47C55206AC for ; Sun, 18 Oct 2015 13:58:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14A75206A3 for ; Sun, 18 Oct 2015 13:58:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752161AbbJRN6g (ORCPT ); Sun, 18 Oct 2015 09:58:36 -0400 Received: from m50-133.163.com ([123.125.50.133]:58276 "EHLO m50-133.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750906AbbJRN6f (ORCPT ); Sun, 18 Oct 2015 09:58:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=BVhcgzg3wWOumtMSif +shgU6R+Zu1jH7iuBmpLcXOmU=; b=ep31tz0d2wmBp1xKCIXqjAXbon0Yv787Vh c95dVOFSt3nuAZX3UCtNVVT8HMHx5nEhwHMKfa8Ama5UYK69rO/BkEWb1EEdwF49 NHL2mYjVJxEbay06saWXIxuP0q9XYimnOZsgxrBxRo9Hwvv7UCAKfjWw1CjLqkIO vomWF7sLg= Received: from localhost (unknown [116.77.146.166]) by smtp3 (Coremail) with SMTP id DdGowEBJIUQ9pSNWh4osAA--.11827S3; Sun, 18 Oct 2015 21:57:19 +0800 (CST) From: Geliang Tang To: Greg Kroah-Hartman Cc: Geliang Tang , Mike Marciniszyn , Doug Ledford , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] staging: IB/ipath: use TASK_COMM_LEN in ipath_portdata Date: Sun, 18 Oct 2015 21:57:08 +0800 Message-Id: X-Mailer: git-send-email 2.5.0 In-Reply-To: <20151018050509.GA2703@kroah.com> X-CM-TRANSID: DdGowEBJIUQ9pSNWh4osAA--.11827S3 X-Coremail-Antispam: 1Uf129KBjvdXoWrKryxuw1UKrW7tFyUGFW5trb_yoWDtFcEk3 42kw1rW342yr92ya4fWFs7ZryIkw4fZFWxZw1UtFZFqrs8AF45CrZ8J3Z5J343uan7WFn8 Awn5ZasIkrW7KjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjU73PUUUUU== X-Originating-IP: [116.77.146.166] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiJQCXmVUL7kvV7gAAsr Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- Changes in v2: - split it into two patches. --- drivers/staging/rdma/ipath/ipath_kernel.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rdma/ipath/ipath_kernel.h b/drivers/staging/rdma/ipath/ipath_kernel.h index f0f9471..66c934a 100644 --- a/drivers/staging/rdma/ipath/ipath_kernel.h +++ b/drivers/staging/rdma/ipath/ipath_kernel.h @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -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 */