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: 7675071 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AD72E9F392 for ; Sun, 22 Nov 2015 01:59:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C422E2060B for ; Sun, 22 Nov 2015 01:59:01 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D3DAC205FE for ; Sun, 22 Nov 2015 01:59:00 +0000 (UTC) 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-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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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 */ }, };