From patchwork Fri Jul 24 19:34:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 6862711 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 EFFBF9F358 for ; Fri, 24 Jul 2015 19:37:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 22DEC205BA for ; Fri, 24 Jul 2015 19:37:19 +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 4F16B205B9 for ; Fri, 24 Jul 2015 19:37:18 +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 1ZIijt-0002S2-8Q; Fri, 24 Jul 2015 19:34:37 +0000 Received: from mail-qk0-f171.google.com ([209.85.220.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZIijq-0002QH-U7 for linux-arm-kernel@lists.infradead.org; Fri, 24 Jul 2015 19:34:35 +0000 Received: by qkbm65 with SMTP id m65so20465583qkb.2 for ; Fri, 24 Jul 2015 12:34:13 -0700 (PDT) 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=PwL9GPsyxOBBOBJiyiVvCxIhURS1Y1+ZgyZ/RNnUOQA=; b=Aqe+9OP5oR57nm7+BTqkGKY/4gbBAvl2F5DITFeQKy9EQ0zgaXItZ/8Z+NvwuqgW39 VfF3xIt8S9PztBJiYdl+7/HiKf4AxLUTgmfSyDbrvpfRc9YY4QkooRoWPwM2VPLpBz8m kqsmkksNrgskiCzGCeXjzcJCsSC0AI+a5F4BOTz2UcXtNqKGAJ0Ka/N2R4khEMWChO3y T2DIlM7mPLKOz75r8TQSHpd2+rDzRkoqmtvp3AMr5Jzwcp5YSTh3M3Vn7oi5DAhGykYw nBqHQSqad516VDCSP7XsUbi6eBtIdJUJgLyp+3Y/DFSCuMNF2pDfznLwGwMGurk8Pnbt KBuw== X-Gm-Message-State: ALoCoQnm8LwB6uDSO5ojdHqeMNjnvVwHq++DPWzPLSOhtufJxucWqEgonRIp+YTSn8UswqWsUmbP X-Received: by 10.140.49.11 with SMTP id p11mr22997974qga.60.1437766453330; Fri, 24 Jul 2015 12:34:13 -0700 (PDT) Received: from xanadu.home (modemcable065.157-23-96.mc.videotron.ca. [96.23.157.65]) by smtp.gmail.com with ESMTPSA id 84sm4501669qha.47.2015.07.24.12.34.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 12:34:12 -0700 (PDT) Date: Fri, 24 Jul 2015 15:34:11 -0400 (EDT) From: Nicolas Pitre To: Philipp Zabel , Maxime Ripard 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-20150724_123435_060670_85349742 X-CRM114-Status: GOOD ( 10.31 ) 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: 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=-5.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 */ }, };