From patchwork Sat Aug 19 17:54:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910589 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 6BD2D602C8 for ; Sat, 19 Aug 2017 17:54:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C7E2285A9 for ; Sat, 19 Aug 2017 17:54:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E56628BB1; Sat, 19 Aug 2017 17:54:55 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham 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 BDCD5285A9 for ; Sat, 19 Aug 2017 17:54:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025AbdHSRyl (ORCPT ); Sat, 19 Aug 2017 13:54:41 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36102 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751707AbdHSRyi (ORCPT ); Sat, 19 Aug 2017 13:54:38 -0400 Received: by mail-pg0-f67.google.com with SMTP id y129so18730049pgy.3; Sat, 19 Aug 2017 10:54:38 -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:in-reply-to:references; bh=Kz7f5DoYNO5Rh/w7ZIVs97DMRr42D4z2swCEsjQoyKQ=; b=NKOKXaJ7n5v/9Kzm3nQOn1mFkc7coRoJuA4cBrAZclJQppIbewJYgXQfnvFajqefZE fFGdSyH9EDywosPrNj658AriTKmdNneJr/gTRsJv/+7/4W7ZQ2DJVVykOxFo5D5yntkA AJPTMeWZ4hk4mqT1voMihS0dKtf8kkAn4ntTPw0lVU6U6ydospB5mpmiEfJ3aZPvkcXl jqRYX+0hxwiadsmnqhPHe8ssSOYocFUX4DREiN+vuNTW8KBzVjWpz8Ij1V1chobUSDdk PfjxYK+9u3fa9l/uWaGJUOxzUSfX3llN1+/M1xPgJHtIY5LH8A31ogoDSrNTq/nMdZH4 lVDA== 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:in-reply-to :references; bh=Kz7f5DoYNO5Rh/w7ZIVs97DMRr42D4z2swCEsjQoyKQ=; b=fMA3IA9q3/romwgy0PNTEOKAPt+ZprHYYWHnRJKdDjuaUKCkNYfBdCeSCma2+Gmict Qed8KORdVhsR+Dvy29POPlqbWu4WWR6FUsFCc5TyMzxtEbynsK8DJvFC/SFgkWr9CKvU YmFDKEYyFUFIM/1c/Nt36EAV1yzuy8ZPiRmm81pCUGGwYaZ09t7lS6tOFNHrULhzm1fx K69+2797aMglDZC426ZyAiapm78/YW2jUiGqXicigNXGKIHwrer1ICaJ94UisrmW+8Pg g15K7y1gsh83jmrNb0V/mbC9y+dOFPkQA/VB1b7S17y9msNg8XUxKw2PvX2+qlJe7cvf m4nQ== X-Gm-Message-State: AHYfb5i/HLaKtxnMyDa07LL5WnBVcupeB3ab56/zuUbnPnk1RHMZ9RZ+ ik5Em9pYgJP/DQ== X-Received: by 10.98.144.13 with SMTP id a13mr12135533pfe.233.1503165278197; Sat, 19 Aug 2017 10:54:38 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id a63sm15695968pfc.165.2017.08.19.10.54.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:54:37 -0700 (PDT) From: Arvind Yadav To: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, deller@gmx.de, gregkh@linuxfoundation.org, jslaby@suse.com Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linux-scsi@vger.kernel.org Subject: [PATCH 2/4] scsi: zalon: constify parisc_device_id Date: Sat, 19 Aug 2017 23:24:21 +0530 Message-Id: <1503165261-31741-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503165261-31741-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503165261-31741-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP parisc_device_id are not supposed to change at runtime. All functions working with parisc_device_id provided by work with const parisc_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/scsi/zalon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/zalon.c b/drivers/scsi/zalon.c index b2cf1fa..00c7c28 100644 --- a/drivers/scsi/zalon.c +++ b/drivers/scsi/zalon.c @@ -160,7 +160,7 @@ zalon_probe(struct parisc_device *dev) return error; } -static struct parisc_device_id zalon_tbl[] = { +static const struct parisc_device_id zalon_tbl[] = { { HPHW_A_DMA, HVERSION_REV_ANY_ID, HVERSION_ANY_ID, 0x00089 }, { 0, } };