From patchwork Sat Aug 19 17:42:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9910567 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 BD9AB602A0 for ; Sat, 19 Aug 2017 17:43:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADB8028832 for ; Sat, 19 Aug 2017 17:43:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2A172885D; Sat, 19 Aug 2017 17:43:46 +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 9A94E28AD9 for ; Sat, 19 Aug 2017 17:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752261AbdHSRm7 (ORCPT ); Sat, 19 Aug 2017 13:42:59 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37293 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbdHSRmz (ORCPT ); Sat, 19 Aug 2017 13:42:55 -0400 Received: by mail-pg0-f66.google.com with SMTP id 83so18728993pgb.4; Sat, 19 Aug 2017 10:42:55 -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=/hnJw3W/D3HlT+Hb0DF0WwH0xHJkUyhG8ioR0J3yJyk=; b=szNlzRh7AEgWSjcMpqv7q81ipSdY0k7iP6LQjQf9RgWHApCKrU61vna73zMkoK8RzA B4e9Pi0XX8TLZ7slrTdrK9lN6JIZ0oBpcq686TSb+7bvxQKp+KFccfXZlTKgUTiiv4U8 IaeSNkU0c22iJvvsoa7oHASwS0PwbLN9AiN1f/ahLv6s8qqN1gCFhb0W9HjLKCdAujsK mYD0sUy7kNwfpbFfvqsKBQ0ZxgfSXhAD9M0jgBuAf6V78rCwklXGlrxlL74hj8hqiWux TCOROG7qE8Hs3nbMzeI+uII4uvo5MokLQyB/oiWkXjRw673tbKw0GylBYSkNQkm5P4W4 a8Tw== 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=/hnJw3W/D3HlT+Hb0DF0WwH0xHJkUyhG8ioR0J3yJyk=; b=VMecgw2Ve9W3Jh+2iuFwN7iJYLMDnWelGv39qXgGofH5hTmGkrn0YxwC4SNNWax8eV Wy7tiXiGMttuKkeFclN2YfgMqUsYVF928IdezgogMpmqLQEKf+VLiQI0SG7PIKpg34Xv us17bg5fCVmWZ3fbRlYnwOEmquBWgI86sZlWRQL92T5mQXeCubEk+qNGojFJqekF3ZX9 hsotT9R+zuDD1zoO6MmU2PMVrML2USKrdcgyKV/Ktiyw2SN02gI3YL5/gSCQ3hnyHfRD PAuKYWYQuD/+knBYfrfWDjvYPxnoteuIhGjLAHR1em67qQZh3xpZl6IRx1ULEs08RW25 wmGg== X-Gm-Message-State: AHYfb5j6c+K9qzt/8sBp5Wsw95ETQIPEbL0nBCZMTWCV3thdVtqI0/xC Q5au/atyGmqrQA== X-Received: by 10.84.237.2 with SMTP id s2mr13538288plk.70.1503164574937; Sat, 19 Aug 2017 10:42:54 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id p126sm11912456pfp.88.2017.08.19.10.42.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 19 Aug 2017 10:42:54 -0700 (PDT) From: Arvind Yadav To: jejb@parisc-linux.org, deller@gmx.de Cc: linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org Subject: [PATCH 7/8] parisc: sba_iommu: constify parisc_device_id Date: Sat, 19 Aug 2017 23:12:25 +0530 Message-Id: <1503164546-31433-8-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503164546-31433-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503164546-31433-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/parisc/sba_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c index 4086f79..1bad85c 100644 --- a/drivers/parisc/sba_iommu.c +++ b/drivers/parisc/sba_iommu.c @@ -1905,7 +1905,7 @@ static const struct file_operations sba_proc_bitmap_fops = { }; #endif /* CONFIG_PROC_FS */ -static struct parisc_device_id sba_tbl[] = { +static const struct parisc_device_id sba_tbl[] = { { HPHW_IOA, HVERSION_REV_ANY_ID, ASTRO_RUNWAY_PORT, 0xb }, { HPHW_BCPORT, HVERSION_REV_ANY_ID, IKE_MERCED_PORT, 0xc }, { HPHW_BCPORT, HVERSION_REV_ANY_ID, REO_MERCED_PORT, 0xc },