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: 51465 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 35E6122D98 for ; Fri, 24 Jul 2015 19:36:42 +0000 (UTC) Received: by lbbvz8 with SMTP id vz8sf10456903lbb.2 for ; Fri, 24 Jul 2015 12:36:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:subject:message-id :user-agent:mime-version:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:cc:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=3WYPmqQWiNMSsHirm/eM5Qf45wnq+Kr4IUte5Xdyq2k=; b=Uwk7vLHbWRZPQAdhh/dsE71mVbJQi2fpQSc4J4F9sYK2+YxJD3Vm6AnLfaJ/bCEznh nFWAT33bxyU/V7vW7qOqYxnMUmu5L5EAbyoEawcxRvy7l6YjguYRLycAAP9ap53gNZ8e XAgUF5xlyjavHVP6aJqBuKdhLu7ZfUBtTyVAwX1hGCaThZPmE1HCumdIaPDsQkhDjbGb qVbYO1bh4tvCSN3HGMzNq5fFlE4piYP75br+4UQC4dVj122w2m//a1FF/+4bT7hpeBcn cKwlkCeqWFkzCa+52kNlrdOok59Jv5UZ/wyKGAE8toWpQqHfNAsgN2hJrDiuEf4mukMU ZhUQ== X-Gm-Message-State: ALoCoQkvMrjHRAC/UXB7V22hA2JyL8DiMc7joVleJ2xYYsdQNhTB00ppRwiwOz+Ozrij4OoUnhY0 X-Received: by 10.152.22.163 with SMTP id e3mr6791723laf.6.1437766600174; Fri, 24 Jul 2015 12:36:40 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.232 with SMTP id d8ls435902lab.13.gmail; Fri, 24 Jul 2015 12:36:40 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr15513478lbb.35.1437766600019; Fri, 24 Jul 2015 12:36:40 -0700 (PDT) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id pk10si8388485lbb.3.2015.07.24.12.36.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 12:36:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by lafd3 with SMTP id d3so9474194laf.1 for ; Fri, 24 Jul 2015 12:36:39 -0700 (PDT) X-Received: by 10.112.220.7 with SMTP id ps7mr15097448lbc.72.1437766599685; Fri, 24 Jul 2015 12:36:39 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp178210lba; Fri, 24 Jul 2015 12:36:38 -0700 (PDT) X-Received: by 10.66.121.163 with SMTP id ll3mr35301028pab.100.1437766597999; Fri, 24 Jul 2015 12:36:37 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id ny5si22937019pdb.49.2015.07.24.12.36.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jul 2015 12:36:37 -0700 (PDT) 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; 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-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-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 [209.85.220.171 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.220.171 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 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+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.pitre@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 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 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 */ }, };