From patchwork Sat Aug 26 11:28:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 806114 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=sparclinux-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iecLf92b"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xfbQL4Q1Xz9t4g for ; Sat, 26 Aug 2017 21:28:58 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754511AbdHZL26 (ORCPT ); Sat, 26 Aug 2017 07:28:58 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33798 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754481AbdHZL25 (ORCPT ); Sat, 26 Aug 2017 07:28:57 -0400 Received: by mail-pf0-f196.google.com with SMTP id p69so816480pfk.1; Sat, 26 Aug 2017 04:28:57 -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=68udIgEA0gu2+suDu6N9VGje8vIy6b2owlMMK2O7KRw=; b=iecLf92b8TvKXLyJ9FyqobrfaIq5zETRGBGEsZN8Lr32y1XhaWUJuC2rmPH7uL4os4 obFExsB8BjRKIHNb1+euefFLgBvzpjc3TOqAtVhHAEJ1xGfWay7rs/z07PtP6TqyMytw +ISIPQZCTdvlAP8kiMNho4bwonZ7tRtY7NEwNko63AZB8eCTssb/ePux8seRkd7t5OF3 Pqfw83qbtO8SzVUxlMhMNKJrZgpBPVrcRf1/BJ5tfrBaszucfmxOB8pgoIQW3JjiSUvg 0px5P/aIX3Aw4ahkkc2B07E612G9U44lpfY2I/83yzMGZxTOnJtOPVd/pL5rmxFyHzkx 5bYQ== 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=68udIgEA0gu2+suDu6N9VGje8vIy6b2owlMMK2O7KRw=; b=FIlhWUv4m4Y8bhwhz0RJOT6FvoUX7slPB7sLvnfcH35Jqx0rV0Yd0ONg//Dt95UCef N4CrreH6W49I00w+eal4HK2JuatOu912n4r9uMA1jZYZUy1RdIAGqN0oIPQe5LHtYp6z U5sst5fpMJ3aNwcIXYm1pWp7UBiNJijUtTLKbS97wA6q95Jkw9P+wcHCchO1MZE5Q0fL jjvvgQlsPOLhzszAvBhOQJit+51JSlS5NyPJghuMq8xL3dcYhB+ES/OxUELD2BXU4qlu 4AP2fnjh+zsX9ZTEXhpDLb6RZQKJHEFaQ5BfeZGRXf/9fn08mgGJ9eWcKwars+fJ7XTW cywg== X-Gm-Message-State: AHYfb5jFtKscoEoosEwEUvP1/07RYyLQiZ2KPZECTh28InpL5Lrdpc5e y/KcxozYl1Ar6HUL X-Received: by 10.84.234.23 with SMTP id m23mr1618469plk.427.1503746936854; Sat, 26 Aug 2017 04:28:56 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id 87sm16420589pft.80.2017.08.26.04.28.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 26 Aug 2017 04:28:56 -0700 (PDT) From: Arvind Yadav To: davem@davemloft.net Cc: linux-kernel@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH] sparc: leon: grpci1: constify of_device_id Date: Sat, 26 Aug 2017 16:58:48 +0530 Message-Id: <47b2967d191cb0b0a525682feb7991742df333e6.1503746607.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org of_device_id are not supposed to change at runtime. All functions working with of_device_id provided by work with const of_device_ids. So mark the const and __initconst. Signed-off-by: Arvind Yadav --- arch/sparc/kernel/leon_pci_grpci1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c index 1e77128..c5fc762 100644 --- a/arch/sparc/kernel/leon_pci_grpci1.c +++ b/arch/sparc/kernel/leon_pci_grpci1.c @@ -695,7 +695,7 @@ static int grpci1_of_probe(struct platform_device *ofdev) return err; } -static struct of_device_id grpci1_of_match[] = { +static const struct of_device_id grpci1_of_match[] __initconst = { { .name = "GAISLER_PCIFBRG", },