From patchwork Thu Jan 28 21:50:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 8154351 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 430A1BEEE5 for ; Thu, 28 Jan 2016 21:50:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8026120219 for ; Thu, 28 Jan 2016 21:50:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CA4220218 for ; Thu, 28 Jan 2016 21:50:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751537AbcA1VuY (ORCPT ); Thu, 28 Jan 2016 16:50:24 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:33109 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751130AbcA1VuY (ORCPT ); Thu, 28 Jan 2016 16:50:24 -0500 X-IronPort-AV: E=Sophos;i="5.22,360,1449529200"; d="scan'208";a="199959239" Received: from 198.67.28.109.rev.sfr.net (HELO hadrien) ([109.28.67.198]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 28 Jan 2016 22:50:22 +0100 Date: Thu, 28 Jan 2016 22:50:21 +0100 (CET) From: Julia Lawall X-X-Sender: jll@localhost6.localdomain6 To: "ira.weiny" cc: "gregkh@linuxfoundation.org" , Doug Ledford , linux-rdma@vger.kernel.org, Mike Marciniszyn , "Dalessandro, Dennis" , devel@driverdev.osuosl.org Subject: [PATCH RESEND] staging: rdma: hfi1: diag: constify hfi1_filter_array structure In-Reply-To: <20160128214224.GB19371@phlsvsds.ph.intel.com> Message-ID: References: <20160128203021.GA19371@phlsvsds.ph.intel.com> <20160128204802.GA15184@kroah.com> <20160128214224.GB19371@phlsvsds.ph.intel.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 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.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 The hfi1_filter_array structure is never modified, so declare it as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall Acked-by: Mike Marciniszyn --- No change, resent to be picked up by Doug Ledford drivers/staging/rdma/hfi1/diag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/staging/rdma/hfi1/diag.c b/drivers/staging/rdma/hfi1/diag.c index 0c88317..e41159f 100644 --- a/drivers/staging/rdma/hfi1/diag.c +++ b/drivers/staging/rdma/hfi1/diag.c @@ -257,7 +257,7 @@ static int hfi1_filter_ib_service_level(void *ibhdr, void *packet_data, static int hfi1_filter_ib_pkey(void *ibhdr, void *packet_data, void *value); static int hfi1_filter_direction(void *ibhdr, void *packet_data, void *value); -static struct hfi1_filter_array hfi1_filters[] = { +static const struct hfi1_filter_array hfi1_filters[] = { { hfi1_filter_lid }, { hfi1_filter_dlid }, { hfi1_filter_mad_mgmt_class },