From patchwork Fri Oct 9 05:04:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7359291 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 C3B18BEEA4 for ; Fri, 9 Oct 2015 05:06:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E89BC2054A for ; Fri, 9 Oct 2015 05:05:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ACA34204AD for ; Fri, 9 Oct 2015 05:05:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753090AbbJIFF4 (ORCPT ); Fri, 9 Oct 2015 01:05:56 -0400 Received: from m12-13.163.com ([220.181.12.13]:53049 "EHLO m12-13.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752983AbbJIFFz (ORCPT ); Fri, 9 Oct 2015 01:05:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=InTn41W5t6TgiCyCT0 FQZaIIyOLzophKPuQfVNPaL3k=; b=Zo/8ARmIQ/HDZ7O4Y6SpqDpTDhHMPO23yG NGupSJrL6b2rWchVAo0wTXco5x9Gr3dbtZoyP6uU0MslUR9QmN+uFWMFstdGtsQo 5XjHS++t08NMP/hHp0mZOmlolvtXCniIE5LbRVAa6uMz8P1weKI4qdMxPyStDltt rG2qsEluU= Received: from localhost (unknown [218.17.162.133]) by smtp9 (Coremail) with SMTP id DcCowAAHKkDrShdWD_qLDg--.196S3; Fri, 09 Oct 2015 13:04:45 +0800 (CST) From: Geliang Tang To: Mike Marciniszyn , Doug Ledford , Sean Hefty , Hal Rosenstock , Greg Kroah-Hartman Cc: Geliang Tang , linux-rdma@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] IB/hfi1: use TASK_COMM_LEN in hfi1_ctxtdata Date: Thu, 8 Oct 2015 22:04:26 -0700 Message-Id: X-Mailer: git-send-email 1.9.1 X-CM-TRANSID: DcCowAAHKkDrShdWD_qLDg--.196S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7XrW7KFWktF4kKr47urW3ZFb_yoW3GFgEka yktr4fWw1FkFyavr17uF45ZFyIqa1fZr4SyF1jg398Ar4UAa18Aryq9r18Gr98Wan7JF98 Arn5Zr1Yyr17tjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjUDG7UUUUU== X-Originating-IP: [218.17.162.133] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiJR2OmVUL7ZMOIQABsh 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]. Signed-off-by: Geliang Tang --- drivers/staging/rdma/hfi1/hfi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rdma/hfi1/hfi.h b/drivers/staging/rdma/hfi1/hfi.h index 8ca171b..a35213e 100644 --- a/drivers/staging/rdma/hfi1/hfi.h +++ b/drivers/staging/rdma/hfi1/hfi.h @@ -262,7 +262,7 @@ struct hfi1_ctxtdata { pid_t pid; pid_t subpid[HFI1_MAX_SHARED_CTXTS]; /* same size as task_struct .comm[], command that opened context */ - char comm[16]; + char comm[TASK_COMM_LEN]; /* so file ops can get at unit */ struct hfi1_devdata *dd; /* so functions that need physical port can get it easily */