Re: [2.6 patch] cris: "extern inline" -> "static inline"

From: Adrian Bunk (bunk_at_stusta.de)
Date: 08/22/05

  • Next message: Jesper Juhl: "Re: [PATCH] Suppress deprecated f_maxcount in 'struct file'"
    Date:	Mon, 22 Aug 2005 13:57:24 +0200
    To: Mikael Starvik <mikael.starvik@axis.com>
    
    

    On Mon, Aug 22, 2005 at 07:08:30AM +0200, Mikael Starvik wrote:

    > At the time this is rejected because GCC 3.2 makes other inlining
    > descisions when "extern inline" is used instead of "static inline".
    > Actually we modified lots of static inline to extern inline in
    > 2.4 in November 2002 to reduce code bloat with GCC 3.2. I don't
    > know if this still is true with 4.0.
    >...

    If you look at include/linux/compiler-gcc3.h, you see that in the
    kernel, we #define "inline" to "inline __attribute__((always_inline))"
    for gcc >= 3.1 .

    In November 2002, we didn't do this in 2.4 kernels.

    Can you test whether my patch makes any difference in the size of a 2.6
    kernel with gcc 3.2?

    > /Mikael
    >...

    cu
    Adrian

    -- 
           "Is there not promise of rain?" Ling Tan asked suddenly out
            of the darkness. There had been need of rain for many days.
           "Only a promise," Lao Er said.
                                           Pearl S. Buck - Dragon Seed
    -
    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/
    

  • Next message: Jesper Juhl: "Re: [PATCH] Suppress deprecated f_maxcount in 'struct file'"

    Relevant Pages

    • Re: Weirdness with suspending jobs in 2.6.9-rc3
      ... > sleep 5 ... > with older kernels. ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.13-rc4-mm1: iptables DROP crashes the computer
      ... Which kernels are affected, and which are ... Does it still happen if you compile your kernel with preemption ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] kernel: use kcalloc instead kmalloc/memset
      ... Looking at how few is left from kcalloc, ... "static inline" function in slab.h? ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [Dri-devel] [2.6 patch] disallow DRM on 386
      ... > runtime when the DRM module loads, then you can build 386 kernels that ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • 2.6: remove include/linux/acpi_serial.h
      ... no longer needed in recent 2.6 kernels. ... Could you include it's removal in one of your next updates? ... There had been need of rain for many days. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)