mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
Cc: linux-kernel@vger.kernel.org, gregkh@suse.de,
	akpm@linux-foundation.org, andi@firstfloor.org
Subject: Re: [PATCH] init: Fix for section mismatch in reference from name_to_dev_t().
Date: Thu, 16 Dec 2010 14:26:49 -0800	[thread overview]
Message-ID: <20101216142649.4a904846.randy.dunlap@oracle.com> (raw)
In-Reply-To: <1292532772-29923-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br>

On Thu, 16 Dec 2010 18:52:52 -0200 Marcelo Roberto Jimenez wrote:

> This patch fixes the following message while compiling the kernel:

I think that this one is preferable:

https://lkml.org/lkml/2010/12/7/210


> WARNING: init/mounts.o(.text+0x40): Section mismatch in reference from
> the function name_to_dev_t() to the function
> .init.text:devt_from_partuuid()
> The function name_to_dev_t() references
> the function __init devt_from_partuuid().
> This is often because name_to_dev_t lacks a __init
> annotation or the annotation of devt_from_partuuid is wrong.
> 
> Signed-off-by: Marcelo Roberto Jimenez <mroberto@cpti.cetuc.puc-rio.br>
> ---
>  init/do_mounts.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/init/do_mounts.c b/init/do_mounts.c
> index 830aaec..ba48e11 100644
> --- a/init/do_mounts.c
> +++ b/init/do_mounts.c
> @@ -133,7 +133,7 @@ done:
>   *	bangs.
>   */
>  
> -dev_t name_to_dev_t(char *name)
> +dev_t __init name_to_dev_t(char *name)
>  {
>  	char s[32];
>  	char *p;
> -- 
> 1.7.3.2
> 
> --
> 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/


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2010-12-16 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-16 20:52 Marcelo Roberto Jimenez
2010-12-16 22:26 ` Randy Dunlap [this message]
2010-12-17  8:04   ` Marcelo Roberto Jimenez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101216142649.4a904846.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=andi@firstfloor.org \
    --cc=gregkh@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mroberto@cpti.cetuc.puc-rio.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®