Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752196AbbKKKCX (ORCPT ); Wed, 11 Nov 2015 05:02:23 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:61499 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265AbbKKKCN (ORCPT ); Wed, 11 Nov 2015 05:02:13 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Jason Liu , dmaengine@vger.kernel.org, vinod.koul@intel.com, dan.j.williams@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] dmaengine: imx-sdma: remove __init annotation on sdma_event_remap Date: Wed, 11 Nov 2015 11:01:33 +0100 Message-ID: <4267122.WHg3VAy8bL@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <1447233649-21464-1-git-send-email-r64343@freescale.com> References: <1447233649-21464-1-git-send-email-r64343@freescale.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:CypwzBSG8w3bPBJCOT+lY4CmdjlvD6xGAP4rjA0eZRb76ZvPEO6 XUayH+1Fh8o4A5xLpY3Pbq7Q2RIqxRxbKdRvN7NR9Nbg0eCfc+qwj8XfcEZ7VfXdb74MgVT NLJb90kJ9N/3z2f443yuNbNdc+PWHYdKuM+A5HYIMquiwMLqr1pF8Cj7lWPpjMeyKfBjcbJ /3RP4xuHlVu29nzfpxtbQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:EUOeK9kXUvg=:kyukf8DtpXCDBRlrtzC8mj HA1ywszpx117cuVFQXXrcHc0EZYDNS+e6259QZUf5jLvmfhMlSqElVDK5CXtncMNaJgRh9Z4s ba9Lu+TnyE8pgHAMwndXog0E9QG7EYVsS2CTXNMi0rbDlUdG1rDwJdonLhaQiKDnsKZtGU52h 1gb66K9EokKkjQYkQyUCV68hgEcAZsOfgN0/ZbMBD2Ti+mpNrwFlPGejKfx5Fvkjgr6xw5sCt SVu7GtZvpCatwOsFpQ/XCGSjPbNJxFs/mISpnSK9ydxmipEt2+4k4qZOSErNoL7oLvQNrLO3S xvSLae7iQSfDt2yhjg90V9FSDT9Kd5PaXJANkR7uRGyzMbp8k4b5vV2LJ3x3XGle2NhBSTKyq gTtjW2a7kR2OdSXIAo/Xo886CbL1S3oNOSEPVVU6A0uqc6Twtkk0d8PpFHJA/7FkenPdj9IBR UBoxOENQHftsIjzAFVn1K2ijLR6ACFo2QuPvheGNzPWSrhq1BUnfagLa04r8elnhQenGrGlju tDZ619rRPUq1OAlbR0ZteI7QOvUdUBghzmBYdFvkBQ6SxA/KX2Kh+oGqrZa8sduIigeWseZid cZpXDQctNLHlSfjcWtlJwG9bhyOnzbQAUaUoKl3XIwdpOKhKOKerziH18CEAU5vnoW9yRU9rc tWrpX2sr/9Qnsu1wvIiu7z+vgrDZJLJEXg9yiOd1Z9B8U0dRhC7bI3aVWqCdE0Vc/4Nikixgy I3Cfvl76lKb2c6ZZ Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1413 Lines: 34 On Wednesday 11 November 2015 17:20:49 Jason Liu wrote: > The sdma_probe function will call sdma_event_remap, but sdma_event_remap > marked with the __init annotation which make the kbuild complains as the > following log: > > WARNING: drivers/dma/built-in.o(.text+0x56fc): Section mismatch in reference > from the function sdma_probe() to the function .init.text:sdma_event_remap() > The function sdma_probe() references > the function __init sdma_event_remap(). > This is often because sdma_probe lacks a __init > annotation or the annotation of sdma_event_remap is wrong. > > Remove the __init annotation on sdma_event_remap to kill this build warning > > Signed-off-by: Jason Liu > Cc: Vinod Koul > Cc: Dan Williams > Looks good. I wonder why I have not caught this with the randconfig builds yet. Acked-by: Arnd Bergmann One hint for the future: in the patch description, write less about the kbuild warning and more about the actual impact of the bug (calling a discarded function if the device gets unbound and rebound later, or if we get deferred probing). Arnd -- 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/