From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752669AbaI0MAS (ORCPT ); Sat, 27 Sep 2014 08:00:18 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:53284 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751537AbaI0MAQ (ORCPT ); Sat, 27 Sep 2014 08:00:16 -0400 From: Arnd Bergmann To: Pramod Gurav Cc: Pramod Gurav , "linux-kernel@vger.kernel.org" , Ludovic Desroches , Chris Ball , Ulf Hansson , linux-mmc@vger.kernel.org Subject: Re: [PATCH] mmc: atmel-mci: fix mismatched section on atmci_cleanup_slot Date: Sat, 27 Sep 2014 13:59:55 +0200 Message-ID: <2004885.JTcy2BUf8D@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1411467606-13041-1-git-send-email-pramod.gurav@smartplayin.com> <201409262134.58457.arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:8RJ5lgUEvCqJFxGw+f3l3nWbF35MS2U10UTE8Tx9Aba 5NeYg4rbG0MPj4Nk3ZPbuVFarhIM1/gT2AmDu2BK+QKtH1cbJX 6bxu4brSMk7LNMnPvqPfAhcWVat1dDsLFJyEAj4AycIUgHsKyD ZdUyuewVeMQror4UNhOdSIvc/XuD77IE30lc+BAvstfldhfvmM afE69KU+DE/4LHCMbcm4eDWqH0b14hQZW1kDa7eP/fjczVqhYP wbYq6y7j2k6HZwnLK2mBD5hlCza5l+r8F8txlsXiqOcINkqdFh OYoFKuysoaKFs+rAoLHhRDamV0fZnA/7dn+zh24tFdeIL1ai1h pqQhIrv1HSx3cKITvWCo= X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 27 September 2014 08:45:33 Pramod Gurav wrote: > Hi Arnd, > > On Sat, Sep 27, 2014 at 1:04 AM, Arnd Bergmann wrote: > > As of 528bc7808f4e ("mmc: atmel-mci: Release mmc resources on failure in probe"), > > the atmci_probe() function calls atmci_cleanup_slot in the failure path. > > > > This causes a new warning whenever the driver is built: > > > > WARNING: drivers/mmc/host/built-in.o(.init.text+0xa04): Section mismatch in reference from the function atmci_probe() to the function .exit.text:atmci_cleanup_slot() > > The function __init atmci_probe() references > > a function __exit atmci_cleanup_slot(). > Thanks for this though I am not owner of the driver but the last > commit was mine. > but how come I did not see this warning? Any flag with compiler that > warned about this? The warning above is only enabled if CONFIG_DEBUG_SECTION_MISMATCH is set, otherwise you get this one: WARNING: modpost: Found 1 section mismatch(es). To see full details build your kernel with: 'make CONFIG_DEBUG_SECTION_MISMATCH=y' Arnd