* [PATCH] init: Fix for section mismatch in reference from name_to_dev_t().
@ 2010-12-16 20:52 Marcelo Roberto Jimenez
2010-12-16 22:26 ` Randy Dunlap
0 siblings, 1 reply; 3+ messages in thread
From: Marcelo Roberto Jimenez @ 2010-12-16 20:52 UTC (permalink / raw)
To: linux-kernel, mroberto; +Cc: gregkh, akpm, andi
This patch fixes the following message while compiling the kernel:
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] init: Fix for section mismatch in reference from name_to_dev_t().
2010-12-16 20:52 [PATCH] init: Fix for section mismatch in reference from name_to_dev_t() Marcelo Roberto Jimenez
@ 2010-12-16 22:26 ` Randy Dunlap
2010-12-17 8:04 ` Marcelo Roberto Jimenez
0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2010-12-16 22:26 UTC (permalink / raw)
To: Marcelo Roberto Jimenez; +Cc: linux-kernel, gregkh, akpm, andi
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 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] init: Fix for section mismatch in reference from name_to_dev_t().
2010-12-16 22:26 ` Randy Dunlap
@ 2010-12-17 8:04 ` Marcelo Roberto Jimenez
0 siblings, 0 replies; 3+ messages in thread
From: Marcelo Roberto Jimenez @ 2010-12-17 8:04 UTC (permalink / raw)
To: linux-kernel
On Thu, Dec 16, 2010 at 20:26, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>
> 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
I Agree, please do not consider my patch.
Regards,
Marcelo.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-12-17 8:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-16 20:52 [PATCH] init: Fix for section mismatch in reference from name_to_dev_t() Marcelo Roberto Jimenez
2010-12-16 22:26 ` Randy Dunlap
2010-12-17 8:04 ` Marcelo Roberto Jimenez
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®