Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440AbdH3NyL (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 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-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1771 Lines: 49 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, -- 1.9.1