From patchwork Sun Nov 22 01:56:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 57101 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp718112lbb; Sat, 21 Nov 2015 17:58:37 -0800 (PST) X-Received: by 10.66.63.37 with SMTP id d5mr28516724pas.103.1448157517116; Sat, 21 Nov 2015 17:58:37 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id fg2si6135257pbb.172.2015.11.21.17.58.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 17:58:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0JtX-0003ac-0R; Sun, 22 Nov 2015 01:56:47 +0000 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a0JtU-0003YT-Ne for linux-arm-kernel@lists.infradead.org; Sun, 22 Nov 2015 01:56:45 +0000 Received: by qkfo3 with SMTP id o3so48144887qkf.1 for ; Sat, 21 Nov 2015 17:56:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:user-agent:mime-version :content-type; bh=oPVE50SFJsGDT0pUJJKwVXTCeSXUBVmgylT3KLWnYLc=; b=vxv7oOY8bPAcSLiHy0ahPgS28FX0HtLpaQc4cuFQ9PyqRCIt3MVujvKVcpxtkV1WwA 0xgxKr0OBX97YeeZV4AtK//3K/6+Scud8WkSlRMh13ofy4meZ8+Ljh+y+b76jrxO3WDj 392Nj1WYHA3YCXqJL+suwxhmW4jODQK9PIqyGcPpWYksm1xNI5yVZDrkV9ftvN/a4x09 4g8xQGJG2NSsaLK0OklP1Bg41lu3UBIKxQ1Ktj6uzLUpexuIHSjDIYYT71WhCtsxBLBj ZjUjKDbM6ev90SdwGYOJWeyXjZOxJqwfff88Wo9EegLwA15QN/BewpsCXeEqbf1f0pbz Korw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:user-agent :mime-version:content-type; bh=oPVE50SFJsGDT0pUJJKwVXTCeSXUBVmgylT3KLWnYLc=; b=XM0Kzgtj0D8X/p3oDAKSGjjscDNp8RpvejpbR0ztobwlm6z5bui1YLAPBWICkYRrZo 0xYCTZqpixYICyRb54oTLcnsQq1WcXmxpkb7357IL+1NHHtQdn0Iod0OZ0k98UkA6ysU jGSLU9DWtNXst2MnTxeGvtCeeFBwrp3EZxhBPuvjFLO4v4x+5Z1zgWNMhYXW61T557bY NtACT3nqXhgmNzucZDgtqpt71rj/C+by4zyHhLIBYgf5v5oRSGwiF/6yfeDTtgRhx2Rk I93y/5fhiYvY5N0r62UiV0Nv9N1X4zIsldHUNztQiEPk1TOG5L3A5W/+L3NQ544aXD1K EFvQ== X-Gm-Message-State: ALoCoQlhl9C4l6ckh6rm/DoEMlx3I+VEiG8X7Zf7l0H1n0Aj1zQqiv00IY1e12nu3gIPcmfDXXac X-Received: by 10.55.81.11 with SMTP id f11mr20534767qkb.10.1448157383436; Sat, 21 Nov 2015 17:56:23 -0800 (PST) Received: from xanadu.home (modemcable065.157-23-96.mc.videotron.ca. [96.23.157.65]) by smtp.gmail.com with ESMTPSA id e204sm1495314qhc.19.2015.11.21.17.56.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Nov 2015 17:56:22 -0800 (PST) Date: Sat, 21 Nov 2015 20:56:21 -0500 (EST) From: Nicolas Pitre To: Philipp Zabel Subject: [PATCH] drivers/reset: appropriate __init annotation for const data Message-ID: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151121_175644_859491_C95F398A X-CRM114-Status: UNSURE ( 9.51 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:400d:c09:0:0:0:230 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Ripard , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Init data marked const should be annotated with __initconst for correctness and not __initdata. This also fixes LTO builds that otherwise fail with section mismatch errors. Signed-off-by: Nicolas Pitre Acked-by: Maxime Ripard _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index 3d95c87160..9353b2dd15 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -122,7 +122,7 @@ err_alloc: * our system, before we can even think of using a regular device * driver for it. */ -static const struct of_device_id sunxi_early_reset_dt_ids[] __initdata = { +static const struct of_device_id sunxi_early_reset_dt_ids[] __initconst = { { .compatible = "allwinner,sun6i-a31-ahb1-reset", }, { /* sentinel */ }, };