Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756074AbbBPPhk (ORCPT ); Mon, 16 Feb 2015 10:37:40 -0500 Received: from bear.ext.ti.com ([192.94.94.41]:44294 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752990AbbBPPhi (ORCPT ); Mon, 16 Feb 2015 10:37:38 -0500 Message-ID: <54E20E9E.2050401@ti.com> Date: Mon, 16 Feb 2015 21:07:02 +0530 From: Sekhar Nori User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Arnd Bergmann , CC: , , Kevin Hilman Subject: Re: [PATCH 04/11] ARM: davinci: davinci_cfg_reg cannot be init References: <1423770163-583064-1-git-send-email-arnd@arndb.de> <1423770163-583064-5-git-send-email-arnd@arndb.de> In-Reply-To: <1423770163-583064-5-git-send-email-arnd@arndb.de> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1194 Lines: 30 On Friday 13 February 2015 01:12 AM, Arnd Bergmann wrote: > davinci_cfg_reg gets called from a lot of locations that > might get called after the init section has been discarded, > so the function itself must not be marked __init either. > > The kernel build currently warns about this with lots of > messages like: > > WARNING: vmlinux.o(.text.unlikely+0x24c): Section mismatch in reference from the function dm365evm_mmc_configure() to the function .init.text:davinci_cfg_reg() > The function dm365evm_mmc_configure() references > the function __init davinci_cfg_reg(). > This is often because dm365evm_mmc_configure lacks a __init > annotation or the annotation of davinci_cfg_reg is wrong. > > This removes the extraneous __init_or_module annotation. > > Signed-off-by: Arnd Bergmann > Cc: Sekhar Nori > Cc: Kevin Hilman Acked-by: Sekhar Nori Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/