From patchwork Sat Aug 19 17:54:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910595 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 3E777602C8 for ; Sat, 19 Aug 2017 17:55:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30BC3285A9 for ; Sat, 19 Aug 2017 17:55:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2567928BB1; Sat, 19 Aug 2017 17:55:06 +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 D7F69285A9 for ; Sat, 19 Aug 2017 17:55:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751822AbdHSRyh (ORCPT ); Sat, 19 Aug 2017 13:54:37 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:37100 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751707AbdHSRyf (ORCPT ); Sat, 19 Aug 2017 13:54:35 -0400 Received: by mail-pg0-f67.google.com with SMTP id 83so18744985pgb.4; Sat, 19 Aug 2017 10:54:35 -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=5oXKR0JbTDPoEp+oYutKsM6a0clfz6Qu40/jJxiFuBY=; b=IRAKCQ3zk0g2edY4XRohCynMq51w/WLo9SbU8NuXcprqMRoPTCbW6sgzIX6zlZLMrQ /a1djh1SA+oc0d0yJjN92GA3JMZq4TkCQQvej35kHOsxQv6tyhnoI1rC1cXsKpI7xrb3 POxv+hayXsAVIK+eSVBMz6ZwtGaJN7bGyfVTU4mRqYx+du52VbFq8HmPFY0nmKGVxDad DG5vTzQ9xYwjA5a4/6rUwad5UkMwjapwN+PRzXuoGgg41+flhbgjm6+PjSBJv8IZKVgo MhrOjmHIMsj34xYkUrZEMAKGuqC9ApRw6oD6dlCtUuG3sA3CTh10wTi87HAlP/55txgY NW4A== 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=5oXKR0JbTDPoEp+oYutKsM6a0clfz6Qu40/jJxiFuBY=; b=VXGiKM4DucXt4Bax0nhdQ34deonFD9ffvOqBKyUOpSPUzW24lgQhS4kGmlaxO99o2b +x2P8SjgZ+QY4rvr8mdlftJKbKE1DXuELiE2vr9iO90CnR62gUhzR/+T3ytx8x3KZ4mK 2rRNZ49L4jQxs9VHGxY0U/bwhHNVXPo6GeiDcDEC0XevH/ZyuoHaFIxdqsxENtNGHYk7 k9w5a5V+lMdvFAkS7ZSBcz2i0lyG6fHLBkbovmZhOFv4b1d9LXOJDUU9+vSi/0VRcuuf ULe+Ce9I1unNa1wtN1BuxEcV7XwwkRKbjnFBl/0usONwSIxvIqlD/GdMojKxGio+rhtS 5zzw== X-Gm-Message-State: AHYfb5j0A33uB5NbM8tkveNLkiKqkyGNKSTPJtHZua5DsLNqqQomTfNd eiM9xpHM2ub3+A== X-Received: by 10.84.214.151 with SMTP id j23mr14076163pli.322.1503165275176; Sat, 19 Aug 2017 10:54:35 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id a63sm15695968pfc.165.2017.08.19.10.54.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:54:34 -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 1/4] scsi: lasi700: constify parisc_device_id Date: Sat, 19 Aug 2017 23:24:20 +0530 Message-Id: <1503165261-31741-2-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/lasi700.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lasi700.c b/drivers/scsi/lasi700.c index 5c4ded9..4e2b0e0 100644 --- a/drivers/scsi/lasi700.c +++ b/drivers/scsi/lasi700.c @@ -81,7 +81,7 @@ MODULE_LICENSE("GPL"); #define LASI710_CLOCK 40 #define LASI_SCSI_CORE_OFFSET 0x100 -static struct parisc_device_id lasi700_ids[] = { +static const struct parisc_device_id lasi700_ids[] = { LASI700_ID_TABLE, LASI710_ID_TABLE, { 0 }