From patchwork Wed Aug 30 13:53:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9929655 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BAD6160380 for ; Wed, 30 Aug 2017 13:56:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC55C28643 for ; Wed, 30 Aug 2017 13:56:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A107628650; Wed, 30 Aug 2017 13:56:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AF2928643 for ; Wed, 30 Aug 2017 13:56:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbdH3NyL (ORCPT ); Wed, 30 Aug 2017 09:54:11 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36018 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751330AbdH3Nx3 (ORCPT ); Wed, 30 Aug 2017 09:53:29 -0400 Received: by mail-pg0-f67.google.com with SMTP id 83so5125556pgb.3; Wed, 30 Aug 2017 06:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bA+htAaW+Vb7uqGUKdN1PSpoftwv4HPYwPElKDKR9XE=; b=Kq61TnGOLNqrOdujWAbKwuc30wPxzIPBUVmgijAd/6zoQQ06MNdBlvZ/cjFHY7zX/z xsEc0ZWAfGR0PEvp9ILouavY6O48l7NZVxc+GFRzV2cagU31ySfOWZy+BdIoKaw7qr8r /3PuKwCCZuhUYdz0Hp+PQI1v8zi4nWHmuT/bjRSnIPvIVOd/PMzvYWUUU9rdKUgoQYMG YXN4cSSYuKbFfwwvb7mtXI5zer0u10KJJN/sDgrUpOebZu3Epdqc12Yjz0rzuilgajb1 Gg9dJH8BdTAoJIIRJMXF34U7ZZsLeovxWYeZZgQaNZxMC58OpUAK6/IBlkeF6lTz3E+K /GjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bA+htAaW+Vb7uqGUKdN1PSpoftwv4HPYwPElKDKR9XE=; b=uWtgwcwTguqqGcPKnYvev5WdXv2Wy3nm0oycLz8HqY37tuZ+D05171LUg3kp/hdh9B k2nSxKDZV0QUZairH4ZQnuF6TV7XsAa6lGodDwlGrXfb720zBNMSz6WpcfAeqJH20vV8 aNoClO8v4LWpwg5llQNJvuCh4xntjRV2CFSLSJRUkmdpnGZ42BZ32kyt+0kS324l+z5T pFjNsowfXiVv+hevP8fnZCfUPF96iIWx1fImpZqaRyOViHNs6vfc9NLq8Sj2kG/nUqfe mk56e3oJJ7hL+b/8V2lyT7qZqQs4dq+QFotGvv6mpyhi5HlO0ZvCJH3DtPcXqoGAOE6I iATw== X-Gm-Message-State: AHYfb5jxm127NnxzmE7i66PGh0KjcYCBmQfT4fjDmFbK68lA2mPyP6V/ EiGcNP/sOzAfoQ== X-Received: by 10.99.186.7 with SMTP id k7mr1671760pgf.426.1504101208472; Wed, 30 Aug 2017 06:53:28 -0700 (PDT) Received: from gmail.com ([2405:204:8007:dc15:569:bf81:8def:eea8]) by smtp.gmail.com with ESMTPSA id o128sm8014997pfb.144.2017.08.30.06.53.20 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 30 Aug 2017 06:53:26 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 30 Aug 2017 19:23:15 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, don.brace@microsemi.com, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, esc.storagedev@microsemi.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] scsi: hpsa: make access_method const Date: Wed, 30 Aug 2017 19:23:12 +0530 Message-Id: <1504101192-17837-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are not modified anywhere. Signed-off-by: Bhumika Goyal --- To compile-test hpsa.h, I test-compiled scsi/hpsa.c which includes this file. drivers/scsi/hpsa.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/hpsa.h b/drivers/scsi/hpsa.h index 018f980..4688b8f 100644 --- a/drivers/scsi/hpsa.h +++ b/drivers/scsi/hpsa.h @@ -628,28 +628,28 @@ static unsigned long SA5_ioaccel_mode1_completed(struct ctlr_info *h, u8 q) .command_completed = SA5_completed, }; -static struct access_method SA5_ioaccel_mode1_access = { +static const struct access_method SA5_ioaccel_mode1_access = { .submit_command = SA5_submit_command, .set_intr_mask = SA5_performant_intr_mask, .intr_pending = SA5_ioaccel_mode1_intr_pending, .command_completed = SA5_ioaccel_mode1_completed, }; -static struct access_method SA5_ioaccel_mode2_access = { +static const struct access_method SA5_ioaccel_mode2_access = { .submit_command = SA5_submit_command_ioaccel2, .set_intr_mask = SA5_performant_intr_mask, .intr_pending = SA5_performant_intr_pending, .command_completed = SA5_performant_completed, }; -static struct access_method SA5_performant_access = { +static const struct access_method SA5_performant_access = { .submit_command = SA5_submit_command, .set_intr_mask = SA5_performant_intr_mask, .intr_pending = SA5_performant_intr_pending, .command_completed = SA5_performant_completed, }; -static struct access_method SA5_performant_access_no_read = { +static const struct access_method SA5_performant_access_no_read = { .submit_command = SA5_submit_command_no_read, .set_intr_mask = SA5_performant_intr_mask, .intr_pending = SA5_performant_intr_pending,