[lkml]   [2006]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [GIT PATCHES] kbuild updates

    On Mon, 9 Jan 2006, Sam Ravnborg wrote:
    > Please pull from:
    > ssh://

    Ok, pulled.

    However, fixing up a trivial conflict in i386/Makefile, I noticed this:

    cflags-$(CONFIG_REGPARM) += $(shell if [ $(call cc-version) -ge 0300 ] ; then \
    echo "-mregparm=3"; fi ;)

    and it strikes me that this is WRONG.

    It's wrong for some subtle reasons: it means that CONFIG_REGPARM is set
    whether or not it is actually _used_, which means that anybody who depends
    on CONFIG_REGPARM in the sources is just screwed.

    Now, for this particular usage, the only breakage is in the i386
    <asm/module.h>, which will report "REGPARM" in MODULE_REGPARM regardless
    of whether the kernel was compiled with -mregparm=3 or not. So it's mainly

    But it strikes me that we'd be a _lot_ better off if the Kconfig phase
    would check the compiler version, instead of us checking it dynamically a
    hundred times in the Makefiles. It would be more efficient, and we could
    make things like this more _correct_.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2009-11-18 23:46    [W:0.020 / U:24.800 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site