From patchwork Tue Dec 24 11:28:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 22744 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 19633202FA for ; Tue, 24 Dec 2013 11:28:54 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id v10sf17241313pde.0 for ; Tue, 24 Dec 2013 03:28:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=xaq3klbJDlgDlzUz1fyaWUuGEloWBKRNheA0gNPz4dE=; b=aMsQILXIZh6h0ngSslVUqFsoi3jj8PxFhxiIxlueqCrju2eESrmGWvU/lZ2aeyZAn2 tQkHmXFX/bTPiAX7C9CppPdgc+K4/SaYW4tJVLtLwSW0jPqaf8UlCSLG1Ydx7UrFlGbD cbQtY686CItnBA9le9yZbbPbF7Vu/gwfKmRY+lqT4QPOJqqKo1FPB6wS4nC8Ip8y0iC3 2n9pDSZB8pv5zpeuzLwq4W5A2jWSUF/jSBj5yFCnMhpNc4VT9xYZU9U1sFQ522A9Romn YIBIEFfVbx58CbJXTtHxouxuvTnXPU6QLhDHEC6QT6jy2Tow/qndlTtsuov3xkZ7xBA/ W8ZQ== X-Gm-Message-State: ALoCoQmHuVxphbOdF/M/9fDMbwp0YM9l6CDzQqoLKY/V9j5aloDcClVLtVJpefVEDb3Em/3tbwrL X-Received: by 10.68.241.99 with SMTP id wh3mr2523649pbc.4.1387884534108; Tue, 24 Dec 2013 03:28:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.84.234 with SMTP id c10ls1874637qez.50.gmail; Tue, 24 Dec 2013 03:28:54 -0800 (PST) X-Received: by 10.52.135.201 with SMTP id pu9mr13503186vdb.13.1387884533976; Tue, 24 Dec 2013 03:28:53 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id vq3si5823982veb.103.2013.12.24.03.28.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Dec 2013 03:28:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id lh4so3452717vcb.9 for ; Tue, 24 Dec 2013 03:28:53 -0800 (PST) X-Received: by 10.220.106.84 with SMTP id w20mr5375750vco.18.1387884533880; Tue, 24 Dec 2013 03:28:53 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp287400ved; Tue, 24 Dec 2013 03:28:53 -0800 (PST) X-Received: by 10.194.189.42 with SMTP id gf10mr22664590wjc.24.1387884532916; Tue, 24 Dec 2013 03:28:52 -0800 (PST) Received: from mail-we0-f180.google.com (mail-we0-f180.google.com [74.125.82.180]) by mx.google.com with ESMTPS id c8si7734052wix.37.2013.12.24.03.28.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 24 Dec 2013 03:28:52 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.180 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.180; Received: by mail-we0-f180.google.com with SMTP id t61so5922185wes.11 for ; Tue, 24 Dec 2013 03:28:52 -0800 (PST) X-Received: by 10.194.241.228 with SMTP id wl4mr22907164wjc.2.1387884532368; Tue, 24 Dec 2013 03:28:52 -0800 (PST) Received: from localhost.localdomain (100.41.84.79.rev.sfr.net. [79.84.41.100]) by mx.google.com with ESMTPSA id xl18sm38530636wib.9.2013.12.24.03.28.50 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Dec 2013 03:28:51 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Cc: ian.campbell@citrix.com, tim@xen.org, patches@linaro.org, stefano.stabellini@eu.citrix.com, keir@xen.org, Julien Grall Subject: [PATCH] xen: driver/char: fix const declaration of DT compatible list Date: Tue, 24 Dec 2013 11:28:47 +0000 Message-Id: <1387884527-6067-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.8.3.1 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The data type for DT compatible list should be: const char * const[] __initconst Fix every serial drivers which support device tree. Spotted-by: Jan Beulich Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/drivers/char/exynos4210-uart.c | 2 +- xen/drivers/char/ns16550.c | 2 +- xen/drivers/char/omap-uart.c | 2 +- xen/drivers/char/pl011.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/drivers/char/exynos4210-uart.c b/xen/drivers/char/exynos4210-uart.c index 17ba010..74ac33d 100644 --- a/xen/drivers/char/exynos4210-uart.c +++ b/xen/drivers/char/exynos4210-uart.c @@ -358,7 +358,7 @@ static int __init exynos4210_uart_init(struct dt_device_node *dev, return 0; } -static const char const *exynos4210_dt_compat[] __initdata = +static const char * const exynos4210_dt_compat[] __initconst = { "samsung,exynos4210-uart", NULL diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index 9c2cded..d53caa5 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -814,7 +814,7 @@ static int __init ns16550_uart_dt_init(struct dt_device_node *dev, return 0; } -static const char const *ns16550_dt_compat[] __initconst = +static const char * const ns16550_dt_compat[] __initconst = { "ns16550", "snps,dw-apb-uart", diff --git a/xen/drivers/char/omap-uart.c b/xen/drivers/char/omap-uart.c index ad5aabb..7f21f1f 100644 --- a/xen/drivers/char/omap-uart.c +++ b/xen/drivers/char/omap-uart.c @@ -353,7 +353,7 @@ static int __init omap_uart_init(struct dt_device_node *dev, return 0; } -static const char * const omap_uart_dt_compat[] __initdata = +static const char * const omap_uart_dt_compat[] __initconst = { "ti,omap4-uart", NULL diff --git a/xen/drivers/char/pl011.c b/xen/drivers/char/pl011.c index 378d37e..9c2870a 100644 --- a/xen/drivers/char/pl011.c +++ b/xen/drivers/char/pl011.c @@ -276,7 +276,7 @@ static int __init pl011_uart_init(struct dt_device_node *dev, return 0; } -static const char const *pl011_dt_compat[] __initdata = +static const char * const pl011_dt_compat[] __initconst = { "arm,pl011", NULL