From patchwork Mon May 26 04:16:28 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 4239491 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0B1B79F1E7 for ; Mon, 26 May 2014 04:18:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C684201CE for ; Mon, 26 May 2014 04:18:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2554A201C8 for ; Mon, 26 May 2014 04:18:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751044AbaEZESq (ORCPT ); Mon, 26 May 2014 00:18:46 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:34520 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbaEZESp (ORCPT ); Mon, 26 May 2014 00:18:45 -0400 Received: by mail-pa0-f48.google.com with SMTP id rd3so6961787pab.21 for ; Sun, 25 May 2014 21:18:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=kfcMSR2U/CKFTxKf9tLujnmz4eAl8Vdb/Dlmbo9P4kM=; b=R22KNCyZ5YCpN0dw7mqshwxA1MzVgXXtEXHtpM2DIUNKdHx5adZ4eXhyMAE0jxEoaF MD633p5nKssC9u9eXTLl/t9Ci16CQDKramf/Wav7gEl0YJF7/QGeV/3mvq9GrZoJzfyN 4gTHsmyVXWvk1qzwLf/+FizeJZZgqMK3TJ8upJDS2eoaS1xLEwkptVTCTYuJjmHcyYFm cnPj+d+sB5+5Ea3Q3Tzi7aH/NekrRw54GAAnB5YuJ49xslCaWfvC/GIa83gxJ2MlRtvz E62wcsr8emrlDZmRNX/5+vTupguYGZowlItpxlW9+XTgTj0tnD9yC8MHEvLhy8X/LBfy lZsA== X-Gm-Message-State: ALoCoQmxc7Nzm67nHAJHJZl09dRCijvhImCifStZjinTgUAA1d/i0JKGb1C0m1N0KZzB3HD+mAJ7 X-Received: by 10.68.240.34 with SMTP id vx2mr24963948pbc.1.1401077925222; Sun, 25 May 2014 21:18:45 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id vx10sm52066374pac.17.2014.05.25.21.18.42 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 25 May 2014 21:18:44 -0700 (PDT) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Cc: linux-samsung-soc@vger.kernel.org, t.figa@samsung.com, kgene.kim@samsung.com, mturquette@linaro.org, sachin.kamat@linaro.org Subject: [PATCH 1/1] clk/exynos4: Fix compilation warning Date: Mon, 26 May 2014 09:46:28 +0530 Message-Id: <1401077788-31427-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Fixes the following warning: WARNING: drivers/built-in.o(.text.unlikely+0x2c50): Section mismatch in reference from the function exynos4_clk_sleep_init() to the (unknown reference) .init.data:(unknown) The function exynos4_clk_sleep_init() references the (unknown reference) __initdata (unknown). This is often because exynos4_clk_sleep_init lacks a __initdata annotation or the annotation of (unknown) is wrong. Signed-off-by: Sachin Kamat Reported-by: kbuild test robot --- drivers/clk/samsung/clk-exynos4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index c4df294bb7fb..4f150c9dd38c 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -324,7 +324,7 @@ static struct syscore_ops exynos4_clk_syscore_ops = { .resume = exynos4_clk_resume, }; -static void exynos4_clk_sleep_init(void) +static void __init exynos4_clk_sleep_init(void) { exynos4_save_common = samsung_clk_alloc_reg_dump(exynos4_clk_regs, ARRAY_SIZE(exynos4_clk_regs)); @@ -359,7 +359,7 @@ err_warn: __func__); } #else -static void exynos4_clk_sleep_init(void) {} +static void __init exynos4_clk_sleep_init(void) {} #endif /* list of all parent clock list */