From patchwork Thu Aug 17 13:45:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9906365 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 7524C60386 for ; Thu, 17 Aug 2017 13:45:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69EF1286EB for ; Thu, 17 Aug 2017 13:45:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5EB7228A1E; Thu, 17 Aug 2017 13:45:40 +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=-5.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, RCVD_IN_SORBS_WEB 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 18AFF286EB for ; Thu, 17 Aug 2017 13:45:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbdHQNp1 (ORCPT ); Thu, 17 Aug 2017 09:45:27 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33814 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752696AbdHQNpZ (ORCPT ); Thu, 17 Aug 2017 09:45:25 -0400 Received: by mail-pg0-f65.google.com with SMTP id y192so9979105pgd.1; Thu, 17 Aug 2017 06:45:25 -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=d85K9+OUogF4yMSKOGis2HnekOG2CRjejEE0klSsD2g=; b=Edb1vwwcB7WnMXoeBFrCZ/ldVhnOqqCIZG32DvCG7pteQvrJZT300oknEgKxbug9/N Q7g/fU7M2c6/B6LBtalieOXc5VAjCF4yoDzYUeNlEmGbfRcdH53IiSAfai/KZVldiJ8F Br2Yl8ioVlYup/vX/tgkg44Dh7u0zItJ5R8VrvBgYCM1aWRbPgbKF82KCkoHPhHEkWXe lx8khnph551B9SeHTPB5X+0Pw+ZRymCIpvQC1JDURDZeVdu63Q839PZtwwsE195Q4i7q GMvMHtQV3S7vmMrJtP2Fsn1n9NmNIWM8OGDYGZc/ihxkYLHJ5LefVlE3H6B3lco4EyYI NEog== 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=d85K9+OUogF4yMSKOGis2HnekOG2CRjejEE0klSsD2g=; b=AZtc3631xBpqPQcIcpjRLHzMkXF8LpxcL1b+E0QDvyfia7WHRZ25LwjR/U+h6G/E2H P4jTUIhSdL7DmZydlGV1CIMVV6hFCurbcZpUs7q0YhnnSfIC3ro2MQfN26IOGyDQCQ9Y OOQYLmy78QLnzg+jhPOJHO0Bow5vl4ukakdEUNqRgkAMT6mzvWf4dPkRRkfQmFMIsitO rINts6kW0Ut4V5dpaLX7fEziO7flgY3H3cVaqHBPqPdkWWOx7OgkoIRM70fnFF5wksdi YCPwHFbP3Tz7EgOhaNCWDfKeZB/29o3f0MjbiujrmT75pCkyPk9CdgYQRfwpYuLls9Pq xfUg== X-Gm-Message-State: AHYfb5hqxtsq+tqzbqDMd0YdhIGhAN4BFE/nd+OfF3qzxQEkJbP+oBUY LxuXKeYHThjukg== X-Received: by 10.84.232.74 with SMTP id f10mr5837974pln.402.1502977523821; Thu, 17 Aug 2017 06:45:23 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.76]) by smtp.gmail.com with ESMTPSA id y4sm7814279pfd.116.2017.08.17.06.45.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Aug 2017 06:45:23 -0700 (PDT) From: Arvind Yadav To: tyreld@linux.vnet.ibm.com, paulus@samba.org, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, mpe@ellerman.id.au Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH 3/3] scsi: ibmvscsi_tgt: constify vio_device_id Date: Thu, 17 Aug 2017 19:15:07 +0530 Message-Id: <1502977507-2954-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502977507-2954-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502977507-2954-1-git-send-email-arvind.yadav.cs@gmail.com> 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 vio_device_id are not supposed to change at runtime. All functions working with vio_device_id provided by work with const vio_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c index 659ab48..7575276 100644 --- a/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c +++ b/drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c @@ -3956,7 +3956,7 @@ static struct class ibmvscsis_class = { .dev_groups = ibmvscsis_dev_groups, }; -static struct vio_device_id ibmvscsis_device_table[] = { +static const struct vio_device_id ibmvscsis_device_table[] = { { "v-scsi-host", "IBM,v-scsi-host" }, { "", "" } };