Re: warning during make modules

2000-12-11 Thread Keith Owens

On Mon, 11 Dec 2000 21:42:14 -0200, 
Fr d ric L . W . Meunier <[EMAIL PROTECTED]> wrote:
>Is this a 2.4.0 issue? Because I see the warnings on 2.2.18
>too, and also building alsa-driver. I use modutils 2.3.22.
>binutils 2.10.1.0.2. glibc 2.2.

The kernel is trying to fudge the section flags for .modinfo to prevent
.modinfo being loaded as part of a module.  This works on older
toolchains, it even works on recent toolchains but now you get an
annoying warning.  modutils >= 2.3.19 has special case code for
.modinfo so the kernel fudge is no longer required.

The 2.4 kernel will be patched to remove the warning in my next set of
module changes, probably 2.4.1.  The 2.2 kernel will _not_ be patched
because that would force all 2.2 users to upgrade their user space
tools which is a no-no for 2.2.  But if you have already upgraded your
user space tools, you can patch 2.2 linux/module.h yourself to remove
the warning.  Against 2.2.18-pre27.

Index: 18-pre27.1/include/linux/module.h
--- 18-pre27.1/include/linux/module.h Tue, 12 Sep 2000 13:37:17 +1100 kaos 
(linux-2.2/F/51_module.h 1.1.7.2 644)
+++ 18-pre27.1(w)/include/linux/module.h Tue, 12 Dec 2000 12:12:48 +1100 kaos 
+(linux-2.2/F/51_module.h 1.1.7.2 644)
@@ -190,11 +190,6 @@ const char __module_parm_desc_##var[]  \
 __attribute__((section(".modinfo"))) = \
 "parm_desc_" __MODULE_STRING(var) "=" desc
 
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
-
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Frédéric L . W . Meunier

Is this a 2.4.0 issue? Because I see the warnings on 2.2.18
too, and also building alsa-driver. I use modutils 2.3.22.
binutils 2.10.1.0.2. glibc 2.2.

2.2.17 reported the same, 2.4.0-test11 too (but I never ran
this one).

The compiler is egcs 1.1.2. gcc is a symlink to egcs-2.1.96.

-- 
0@pervalidus.{net,{dyndns.}org} TelFax: 55-21-717-2399 (Niterói-RJ BR)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Keith Owens

On Mon, 11 Dec 2000 19:05:42 +0800, 
"Corisen" <[EMAIL PROTECTED]> wrote:
>Thanks for your reply. The below mentioned warning messages where displayed
>while using modutils 2.3.22. Guess I need to apply the patch you mentioned
>to removed all the anonying messages.
>
>As I've not applied any patch before, pls advise where should I download the
>patch and the instructions for patching pls.

The patch is in the original email, reproduced below.  It is against
linux-2.4.0-test12-pre7 but will fit -pre8 as well.  The Kernel-HOWTO
(part of the howto package) has a section on patching the kernel.

Index: 0-test12-pre7.1/include/linux/module.h
--- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100 kaos 
(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
+++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22 +1100 kaos 
+(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
@@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
   __attribute__ ((unused)) = name
 #define MODULE_DEVICE_TABLE(type,name) \
   MODULE_GENERIC_TABLE(type##_device,name)
-/* not put to .modinfo section to avoid section type conflicts */
-
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
 
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Corisen

Hi Keith,

Thanks for your reply. The below mentioned warning messages where displayed
while using modutils 2.3.22. Guess I need to apply the patch you mentioned
to removed all the anonying messages.

As I've not applied any patch before, pls advise where should I download the
patch and the instructions for patching pls.

Thanks.


- Original Message -
From: Keith Owens <[EMAIL PROTECTED]>
To: Corisen <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, December 11, 2000 5:27 PM
Subject: Re: warning during make modules


> On Mon, 11 Dec 2000 17:15:53 +0800,
> "Corisen" <[EMAIL PROTECTED]> wrote:
> >i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to
use
> >kgcc, executed "make clean" and "make mrproper". "make menuconfig" and
"make
> >dep" went smoothly. however during the "make modules" process, several
> >warning messages (shown below) appeared:
> >
> >{standard input}: Assembler messages:
> >{standard input}:8: Warning: Ignoring changed section attributes for
> >.modinfo
> >
> >pls kindly advise how can i resolve the warning messages, or can i can
> >safely igonre the warning messages?
>
> You can safely ignore the messages.  But if they get too annoying,
> upgrade to modutils >= 2.3.19 (current is 2.3.22) and apply this patch.
>
> Index: 0-test12-pre7.1/include/linux/module.h
> --- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100
kaos (linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
> +++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22
+1100 kaos (linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
> @@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
>__attribute__ ((unused)) = name
>  #define MODULE_DEVICE_TABLE(type,name) \
>MODULE_GENERIC_TABLE(type##_device,name)
> -/* not put to .modinfo section to avoid section type conflicts */
> -
> -/* The attributes of a section are set the first time the section is
> -   seen; we want .modinfo to not be allocated.  */
> -
> -__asm__(".section .modinfo\n\t.previous");
>
>  /* Define the module variable, and usage macros.  */
>  extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Keith Owens

On Mon, 11 Dec 2000 17:15:53 +0800, 
"Corisen" <[EMAIL PROTECTED]> wrote:
>i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to use
>kgcc, executed "make clean" and "make mrproper". "make menuconfig" and "make
>dep" went smoothly. however during the "make modules" process, several
>warning messages (shown below) appeared:
>
>{standard input}: Assembler messages:
>{standard input}:8: Warning: Ignoring changed section attributes for
>.modinfo
>
>pls kindly advise how can i resolve the warning messages, or can i can
>safely igonre the warning messages?

You can safely ignore the messages.  But if they get too annoying,
upgrade to modutils >= 2.3.19 (current is 2.3.22) and apply this patch.

Index: 0-test12-pre7.1/include/linux/module.h
--- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100 kaos 
(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
+++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22 +1100 kaos 
+(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
@@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
   __attribute__ ((unused)) = name
 #define MODULE_DEVICE_TABLE(type,name) \
   MODULE_GENERIC_TABLE(type##_device,name)
-/* not put to .modinfo section to avoid section type conflicts */
-
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
 
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



warning during make modules

2000-12-11 Thread Corisen

i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to use
kgcc, executed "make clean" and "make mrproper". "make menuconfig" and "make
dep" went smoothly. however during the "make modules" process, several
warning messages (shown below) appeared:

{standard input}: Assembler messages:
{standard input}:8: Warning: Ignoring changed section attributes for
.modinfo

pls kindly advise how can i resolve the warning messages, or can i can
safely igonre the warning messages?

thanks.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



warning during make modules

2000-12-11 Thread Corisen

i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to use
kgcc, executed "make clean" and "make mrproper". "make menuconfig" and "make
dep" went smoothly. however during the "make modules" process, several
warning messages (shown below) appeared:

{standard input}: Assembler messages:
{standard input}:8: Warning: Ignoring changed section attributes for
.modinfo

pls kindly advise how can i resolve the warning messages, or can i can
safely igonre the warning messages?

thanks.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Keith Owens

On Mon, 11 Dec 2000 17:15:53 +0800, 
"Corisen" [EMAIL PROTECTED] wrote:
i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to use
kgcc, executed "make clean" and "make mrproper". "make menuconfig" and "make
dep" went smoothly. however during the "make modules" process, several
warning messages (shown below) appeared:

{standard input}: Assembler messages:
{standard input}:8: Warning: Ignoring changed section attributes for
.modinfo

pls kindly advise how can i resolve the warning messages, or can i can
safely igonre the warning messages?

You can safely ignore the messages.  But if they get too annoying,
upgrade to modutils = 2.3.19 (current is 2.3.22) and apply this patch.

Index: 0-test12-pre7.1/include/linux/module.h
--- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100 kaos 
(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
+++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22 +1100 kaos 
+(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
@@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
   __attribute__ ((unused)) = name
 #define MODULE_DEVICE_TABLE(type,name) \
   MODULE_GENERIC_TABLE(type##_device,name)
-/* not put to .modinfo section to avoid section type conflicts */
-
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
 
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Corisen

Hi Keith,

Thanks for your reply. The below mentioned warning messages where displayed
while using modutils 2.3.22. Guess I need to apply the patch you mentioned
to removed all the anonying messages.

As I've not applied any patch before, pls advise where should I download the
patch and the instructions for patching pls.

Thanks.


- Original Message -
From: Keith Owens [EMAIL PROTECTED]
To: Corisen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, December 11, 2000 5:27 PM
Subject: Re: warning during make modules


 On Mon, 11 Dec 2000 17:15:53 +0800,
 "Corisen" [EMAIL PROTECTED] wrote:
 i'm compiling kernel 2.4.0-test11 uder RH7. i've changed the CC= line to
use
 kgcc, executed "make clean" and "make mrproper". "make menuconfig" and
"make
 dep" went smoothly. however during the "make modules" process, several
 warning messages (shown below) appeared:
 
 {standard input}: Assembler messages:
 {standard input}:8: Warning: Ignoring changed section attributes for
 .modinfo
 
 pls kindly advise how can i resolve the warning messages, or can i can
 safely igonre the warning messages?

 You can safely ignore the messages.  But if they get too annoying,
 upgrade to modutils = 2.3.19 (current is 2.3.22) and apply this patch.

 Index: 0-test12-pre7.1/include/linux/module.h
 --- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100
kaos (linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
 +++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22
+1100 kaos (linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
 @@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
__attribute__ ((unused)) = name
  #define MODULE_DEVICE_TABLE(type,name) \
MODULE_GENERIC_TABLE(type##_device,name)
 -/* not put to .modinfo section to avoid section type conflicts */
 -
 -/* The attributes of a section are set the first time the section is
 -   seen; we want .modinfo to not be allocated.  */
 -
 -__asm__(".section .modinfo\n\t.previous");

  /* Define the module variable, and usage macros.  */
  extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Keith Owens

On Mon, 11 Dec 2000 19:05:42 +0800, 
"Corisen" [EMAIL PROTECTED] wrote:
Thanks for your reply. The below mentioned warning messages where displayed
while using modutils 2.3.22. Guess I need to apply the patch you mentioned
to removed all the anonying messages.

As I've not applied any patch before, pls advise where should I download the
patch and the instructions for patching pls.

The patch is in the original email, reproduced below.  It is against
linux-2.4.0-test12-pre7 but will fit -pre8 as well.  The Kernel-HOWTO
(part of the howto package) has a section on patching the kernel.

Index: 0-test12-pre7.1/include/linux/module.h
--- 0-test12-pre7.1/include/linux/module.h Thu, 07 Dec 2000 09:20:04 +1100 kaos 
(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.1 644)
+++ 0-test12-pre7.2(w)/include/linux/module.h Mon, 11 Dec 2000 20:26:22 +1100 kaos 
+(linux-2.4/W/33_module.h 1.1.2.1.2.1.2.1.2.1.1.3.1.2 644)
@@ -247,12 +247,6 @@ static const struct gtype##_id * __modul
   __attribute__ ((unused)) = name
 #define MODULE_DEVICE_TABLE(type,name) \
   MODULE_GENERIC_TABLE(type##_device,name)
-/* not put to .modinfo section to avoid section type conflicts */
-
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
 
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Frédéric L . W . Meunier

Is this a 2.4.0 issue? Because I see the warnings on 2.2.18
too, and also building alsa-driver. I use modutils 2.3.22.
binutils 2.10.1.0.2. glibc 2.2.

2.2.17 reported the same, 2.4.0-test11 too (but I never ran
this one).

The compiler is egcs 1.1.2. gcc is a symlink to egcs-2.1.96.

-- 
0@pervalidus.{net,{dyndns.}org} TelFax: 55-21-717-2399 (Niterói-RJ BR)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: warning during make modules

2000-12-11 Thread Keith Owens

On Mon, 11 Dec 2000 21:42:14 -0200, 
Fr d ric L . W . Meunier [EMAIL PROTECTED] wrote:
Is this a 2.4.0 issue? Because I see the warnings on 2.2.18
too, and also building alsa-driver. I use modutils 2.3.22.
binutils 2.10.1.0.2. glibc 2.2.

The kernel is trying to fudge the section flags for .modinfo to prevent
.modinfo being loaded as part of a module.  This works on older
toolchains, it even works on recent toolchains but now you get an
annoying warning.  modutils = 2.3.19 has special case code for
.modinfo so the kernel fudge is no longer required.

The 2.4 kernel will be patched to remove the warning in my next set of
module changes, probably 2.4.1.  The 2.2 kernel will _not_ be patched
because that would force all 2.2 users to upgrade their user space
tools which is a no-no for 2.2.  But if you have already upgraded your
user space tools, you can patch 2.2 linux/module.h yourself to remove
the warning.  Against 2.2.18-pre27.

Index: 18-pre27.1/include/linux/module.h
--- 18-pre27.1/include/linux/module.h Tue, 12 Sep 2000 13:37:17 +1100 kaos 
(linux-2.2/F/51_module.h 1.1.7.2 644)
+++ 18-pre27.1(w)/include/linux/module.h Tue, 12 Dec 2000 12:12:48 +1100 kaos 
+(linux-2.2/F/51_module.h 1.1.7.2 644)
@@ -190,11 +190,6 @@ const char __module_parm_desc_##var[]  \
 __attribute__((section(".modinfo"))) = \
 "parm_desc_" __MODULE_STRING(var) "=" desc
 
-/* The attributes of a section are set the first time the section is
-   seen; we want .modinfo to not be allocated.  */
-
-__asm__(".section .modinfo\n\t.previous");
-
 /* Define the module variable, and usage macros.  */
 extern struct module __this_module;
 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/