Skip to content
Snippets Groups Projects
  1. Jun 12, 2008
    • Sam Ravnborg's avatar
      kbuild: ignore powerpc specific symbols in modpost · 4d7365d6
      Sam Ravnborg authored
      
      Kumar Gala <galak@kernel.crashing.org> wrote:
      We have a case in powerpc in which we want to link some library
      routines with all module objects.  The routines are intended for
      handling out-of-line function call register save/restore so having
      them as EXPORT_SYMBOL() is counter productive (we do also need to
      link the same "library" code into the kernel).
      
      Without this patch a powerpc build would error out and fail
      to build modules with the added register save/restore module.
      
      There were two obvious solutions:
      1) To link the .o file before the modpost stage
      2) To ignore the symbols in modpost
      
      Option 1) was ruled out because we do not have any separate
      linking stage for single file modules.
      
      This patch implements option 2 - and do so only for powerpc.
      
      The symbols we ignore are all undefined symbols named:
      _restgpr_*, _savegpr_*, _rest32gpr_*, _save32gpr_*
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      4d7365d6
  2. Jun 06, 2008
    • Andy Whitcroft's avatar
      update checkpatch.pl to version 0.19 · c45dcabd
      Andy Whitcroft authored
      
      This version is a bit of a whopper.  This version brings a few new checks,
      improvements to a number of checks mostly through modifications to the
      way types are parsed, several fixes to quote/comment handling, as well as
      the usual slew of fixes for false positives.
      
      Of note:
       - return is not a function and is now reported,
       - preprocessor directive detection is loosened to match C99 standard,
       - we now intuit new type modifiers, and
       - comment handling is much improved
      
      Andy Whitcroft (18):
            Version: 0.19
            fix up a couple of missing newlines in reports
            colon to parenthesis spacing varies on asm
            values: #include is a preprocessor statement
            quotes: fix single character quotes at line end
            add typedef exception for the non-pointer "function types"
            kerneldoc parameters must be on one line, relax line length
            types: word boundary is not always required
            improved #define bracketing reports
            uninitialized_var is an annotation not a function name
            possible types: add possible modifier handling
            possible types: fastcall is a type modifier
            types: unsigned is not a modifier on all types
            static/external initialisation to zero should allow modifiers
            checkpatch: fix recognition of preprocessor directives -- part 2
            comments: fix inter-hunk comment tracking
            return is not a function
            do not report include/asm/foo.h use in include/linux/foo.h
            return is not a function -- tighten test
      
      [jengelh@computergmbh.de: fix recognition of preprocessor directives]
      Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
      Cc: Jan Engelhardt <jengelh@computergmbh.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c45dcabd
  3. May 31, 2008
    • Sam Ravnborg's avatar
      kbuild: fix $(src) assignmnet with external modules · 96d97f26
      Sam Ravnborg authored
      When we introduced support for KBUILD_EXTRA_SYMBOLS
      we started to include the externam module's kbuild
      file when doing the final modpost step.
      
      As external modules often do:
      ccflags-y := -I$(src)
      
      We had problems because $(src) was unassinged and
      gcc then used the next parameter for -I resulting in
      strange build failures.
      
      Fix is to assign $(src) and $(obj) when building
      external modules.
      
      This fixes: http://bugzilla.kernel.org/show_bug.cgi?id=10798
      
      
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Tvrtko <tvrtko.ursulin@sophos.com>
      Cc: Andrea Arcangeli <andrea@qumranet.com>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      96d97f26
  4. May 30, 2008
  5. May 25, 2008
  6. May 19, 2008
  7. May 11, 2008
    • Andi Kleen's avatar
      kbuild: disable modpost warnings for linkonce sections · fd1db0a3
      Andi Kleen authored
      
      Disable modpost warnings for linkonce sections
      
      My build gives lots of warnings like
      
      WARNING: sound/core/snd.o (.gnu.linkonce.wi.mpspec_def.h.30779716): unexpected section name.
      The (.[number]+) following section name are ld generated and not expected.
      Did you forget to use "ax"/"aw" in a .S file?
      Note that for example <linux/init.h> contains
      section definitions for use in .S files.
      
      But for .linkonce. duplicated sections are actually ok and expected.
      So just disable the warning for this case.
      
      Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      fd1db0a3
  8. May 04, 2008
    • Sam Ravnborg's avatar
      c4143a83
    • Jean Delvare's avatar
      modpost: i2c aliases need no trailing wildcard · ac551828
      Jean Delvare authored
      
      Not all device types need a wildcard at the end of their module
      aliases. In particular, for i2c module aliases, the trailing wildcard
      is not only unneeded, it could also cause the wrong driver to be
      loaded.
      
      As I2C devices have no IDs, i2c module aliases are simple, arbitrary
      device names. For example:
      
      $ /sbin/modinfo lm90
      filename:       /lib/modules/2.6.25-git18/kernel/drivers/hwmon/lm90.ko
      author:         Jean Delvare <khali@linux-fr.org>
      description:    LM90/ADM1032 driver
      license:        GPL
      vermagic:       2.6.25-git18 mod_unload
      depends:        hwmon
      alias:          i2c:lm90*
      alias:          i2c:adm1032*
      alias:          i2c:lm99*
      alias:          i2c:lm86*
      alias:          i2c:max6657*
      alias:          i2c:adt7461*
      alias:          i2c:max6680*
      $
      
      This would cause trouble if one I2C chip name matches the beginning of
      another I2C chip name and both chips are supported by different
      drivers. For example, an i2c device named lm9042 would cause the lm90
      driver to be loaded, while it doesn't support that device. This case
      has yet to be seen in practice, but still, I'd like to fix it now. The
      cleanest fix is to remove the trailing wildcard from i2c module aliases.
      
      Here's a patch doing this.
      
      Not all device type aliases need a trailing wildcard, in particular
      the i2c aliases don't. Don't add a wildcard by default in do_table(),
      instead let each device type handler add it if needed.
      
      I have tested types acpi, dmi, eisa, i2c, ide, ieee1394, input, pci,
      pcmcia, platform, pnp, scsi, serio, ssb and usb. Other types (ccw, of,
      vio, parisc, sdio and virtio) are untested.
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Acked-by: default avatarJochen Friedrich <jochen@scram.de>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      ac551828
  9. May 01, 2008
  10. Apr 30, 2008
  11. Apr 29, 2008
    • Jean Delvare's avatar
      i2c: Add support for device alias names · d2653e92
      Jean Delvare authored
      
      Based on earlier work by Jon Smirl and Jochen Friedrich.
      
      This patch allows new-style i2c chip drivers to have alias names using
      the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
      point, the old i2c driver binding scheme (driver_name/type) is still
      supported.
      
      Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
      Cc: Jochen Friedrich <jochen@scram.de>
      Cc: Jon Smirl <jonsmirl@gmail.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      d2653e92
    • Andy Whitcroft's avatar
      update checkpatch.pl to version 0.18 · 9c9ba34e
      Andy Whitcroft authored
      
      This version brings a few fixes for the extern checks, and a couple of
      new checks.
      
      Of note:
       - false is now recognised as a 0 assignment in static/external
         assignments,
       - printf format strings including %L are reported,
       - a number of fixes for the extern in .c file detector which had
         temporarily lost its ability to detect variables; undetected due to
         the loss of its test.
      
      Andy Whitcroft (8):
            Version: 0.18
            false should trip 0 assignment checks
            tests: reinstate missing tests
            tests: allow specification of the file extension for a test
            fix extern checks for variables
            check for and report %Lu, %Ld, and %Li
            ensure we only start a statement on lines with some content
            extern spacing
      
      Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9c9ba34e
    • Andy Whitcroft's avatar
      update checkpatch.pl to version 0.17 · 171ae1a4
      Andy Whitcroft authored
      
      This version brings improvements to external declaration detection, fixes to
      quote tracking, fixes to unary tracking, some clarification of wording, and
      the usual slew of fixes for false positives.
      
      Of note:
       - much better unary tracking across preprocessor directives
       - UTF8 checks highlight the character at fault
       - widening of mutex detection
      
      Andy Whitcroft (17):
            Version: 0.17
            values: __attribute__ carries through the previous type
            quotes: should only follow "positive" lines
            clarify the indent tabs over spaces wording
            loosen NR_CPUS check for array range initialisers
            detect external function declarations without an extern prefix
            function declaration arguments should be with the identifier
            DEFINE_MUTEX should report in line with struct mutex
            NR_CPUS is valid in preprocessor statements
            comment detection should not start on the @@ line
            types: add support for #undef
            tighten mutex/completion reports to usage
            allow export of function pointers
            values: preprocessor #define is out of line maintain values
            values: #define does not always have parentheses
            unary '*' may be const
            utf8 checks should report location of the invalid character
      
      Wolfram Sang (1):
            make checkpatch.pl really skip <asm/irq.h>
      
      Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      171ae1a4
    • Joe Perches's avatar
      scripts/Lindent: support gnu indent v2.2.10 · ee8900c9
      Joe Perches authored
      The new version of indent supports positioning labels in column 1
      using "-il0"
      
      http://www.nabble.com/Release-2.2.10-of-GNU-Indent-td15990700.html
      
      
      
      Add "-il0" if indent version >= 2.2.10
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Acked-by: default avatarAlan Cox <alan@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ee8900c9
  12. Apr 28, 2008
  13. Apr 26, 2008
  14. Apr 25, 2008
    • Sam Ravnborg's avatar
      kconfig: fix broken target update-po-config · 4217516e
      Sam Ravnborg authored
      
      Massimo Maiurana reported:
      In the latest kernel "make update-po-config" fails because it tries
      to open arch/Kconfig/Kconfig, since the ls command doesn't
      distinguish between files and directories.
      
      Cc: Massimo Maiurana <maiurana@gmail.com>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      4217516e
    • Richard Hacker's avatar
      kbuild: Add new Kbuild variable KBUILD_EXTRA_SYMBOLS · 0d96fb20
      Richard Hacker authored
      
      This patch adds a new (Kbuild) Makefile variable KBUILD_EXTRA_SYMBOLS.
      The space separated list of file names assigned to KBUILD_EXTRA_SYMBOLS
      is used when calling scripts/mod/modpost during stage 2 of the Kbuild
      process for non-kernel-tree modules.
      
      Signed-off-by: default avatarRichard Hacker <lerichi@gmx.net>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      0d96fb20
    • Richard Hacker's avatar
      kbuild: support loading extra symbols in modpost · 2d04b5ae
      Richard Hacker authored
      
      This patch adds a new command line option -E to modpost, expecting a symbol
      file as an argument which is read prior to symbol processing. -E can be
      supplied multiple times for as many files as is needed.
      
      When building kernel modules that depend on other modules not in the main
      kernel tree, modpost complains about undefined symbols:
      # make -C /path/to/linux/kernel M=/path/to/my/module
      ...
      Building modules, stage 2.
      ....
      WARNING: "rt_copy_buf" [/home/rich/osc_etl_rtw/osc_kmod.ko] undefined!
      ...etc
      
      This situation occurs when modpost processes the new module's symbols. When
      it finds symbols not exported by the mainline kernel, it issues this warning.
      
      The patch adds a new command line option -e to modpost which expects a symbol
      file as an argument. The symbols listed in this file are added to modpost's
      symbol tables during startup. -e can be supplied as often as required.
      
      This patch works together with the second patch. It introduces a new make
      variable, KBUILD_EXTRA_SYMBOLS, which is used when calling modpost.
      
      Signed-off-by: default avatarRichard Hacker <lerichi@gmx.net>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      2d04b5ae
    • Robert P. J. Day's avatar
      kbuild: fix some minor typoes · 3156fd05
      Robert P. J. Day authored
      
      Signed-off-by: default avatarRobert P. J. Day <rpjday@crashcourse.ca>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      3156fd05
    • Sam Ravnborg's avatar
      kbuild: error out on missing MODULE_LICENSE · eed7d279
      Sam Ravnborg authored
      
      Adrian Bunk suggested a build time check for
      missing MODULE_LICENSE annotation in modules.
      The build time check is fatal as we really
      want this fixed for all modules.
      In-tree modules should all have been fixed up by now.
      
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Cc: Adrian Bunk <bunk@kernel.org>
      eed7d279
  15. Apr 24, 2008
  16. Apr 19, 2008
    • Kay Sievers's avatar
      PNP: add all PNP card device id's as individual aliases · 0c81eed4
      Kay Sievers authored
      
      The current PNP combined card + devices module aliase can
      never ever match anything, because these values are not available
      all at the same time to request a module.
      
      Instead of adding the combined alias, we add the device id's
      all as individual aliases. Device id's are exported by the PNP
      bus and can now properly used to request the loading of a
      matching module.
      
      The module snd-sbawe currently exports aliases, which can never
      match anything:
        alias: pnp:cCTLXXXXdCTL0045dCTL0022*
        alias: pnp:cCTLXXXXdCTL0044dCTL0023*
        alias: pnp:cCTLXXXXdCTL0042dCTL0022*
        alias: pnp:cCTLXXXXdCTL0041dCTL0021*
        alias: pnp:cCTLXXXXdCTL0031dCTL0021*
        alias: pnp:cCTL00eddCTL0041dCTL0070*
        alias: pnp:cCTL00e9dCTL0045dCTL0022*
        alias: pnp:cCTL00e4dCTL0045dCTL0022*
        alias: pnp:cCTL00c7dCTL0045dCTL0022*
        alias: pnp:cCTL00c5dCTL0045dCTL0022*
        alias: pnp:cCTL00c3dCTL0045dCTL0022*
        alias: pnp:cCTL00c1dCTL0042dCTL0022*
        alias: pnp:cCTL00b2dCTL0044dCTL0023*
        alias: pnp:cCTL009edCTL0044dCTL0023*
        alias: pnp:cCTL009ddCTL0042dCTL0022*
        alias: pnp:cCTL009fdCTL0041dCTL0021*
        alias: pnp:cCTL009cdCTL0041dCTL0021*
        alias: pnp:cCTL009adCTL0041dCTL0021*
        alias: pnp:cCTL0054dCTL0031dCTL0021*
        alias: pnp:cCTL0048dCTL0031dCTL0021*
        alias: pnp:cCTL0047dCTL0031dCTL0021*
        alias: pnp:cCTL0046dCTL0031dCTL0021*
        alias: pnp:cCTL0045dCTL0031dCTL0021*
        alias: pnp:cCTL0044dCTL0031dCTL0021*
        alias: pnp:cCTL0043dCTL0031dCTL0021*
        alias: pnp:cCTL0042dCTL0031dCTL0021*
        alias: pnp:cCTL0039dCTL0031dCTL0021*
        alias: pnp:cCTL0035dCTL0031dCTL0021*
      
      With this patch it exports only the device id's, as properly
      matchable aliases:
        alias: pnp:dCTL0070*
        alias: pnp:dCTL0045*
        alias: pnp:dCTL0023*
        alias: pnp:dCTL0044*
        alias: pnp:dCTL0022*
        alias: pnp:dCTL0042*
        alias: pnp:dCTL0041*
        alias: pnp:dCTL0021*
        alias: pnp:dCTL0031*
      
      Now, the exported value of the PNP bus can be used to autoload
      a matching module:
        $ modprobe --first-time -n -v pnp:dCTL0045
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/core/snd-rawmidi.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/core/snd-hwdep.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/isa/sb/snd-sb-common.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/isa/sb/snd-sb16-csp.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/isa/sb/snd-sb16-dsp.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/drivers/opl3/snd-opl3-lib.ko
        insmod /lib/modules/2.6.24-rc6-g5b825ed2-dirty/kernel/sound/isa/sb/snd-sbawe.ko
      
        $ grep CTL0045 /sys/bus/pnp/devices/*/id
        /sys/bus/pnp/devices/01:01.00/id:CTL0045
      
      Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      0c81eed4
  17. Mar 28, 2008
    • Andy Whitcroft's avatar
      update checkpatch.pl to version 0.16 · 773647a0
      Andy Whitcroft authored
      
      This version brings proper quote tracking across lines, and brings the
      handling of comments into the same mechanism ensuring nesting is correctly
      handled.  It brings the usual flurry of fixes for false positives.  It also
      brings a number of new checks.  The most contentious change will likely be
      the checks for NR_CPUS as this throws some new warnings in kernel/sched.c.
      
      Of note:
       - all new quote tracking across lines
       - all new comment tracking
       - new more direct, less ambigious wording for some warnings
       - recommends mutexes and completions over semaphores
       - recommends strict_strto* over simple_strto*
       - report on direct use of NR_CPUS
      
      Andy Whitcroft (22):
            Version: 0.16
            string quote tracking should cross line boundaries
            check spacing round -> correctly across newlines
            checks for linux/ against asm/ include files should be warnings
            standardise on 'required' and 'prohibited'
            take the first end of condition when parsing statements
            values: cope with unbalanced brackets
            preprocessor #elif is not a function
            preprocessor #if should not trigger trailing statement checks
            test: allow us to limit output to a single error
            recommend real mutexes over semaphores
            asm checks should mirror those for __asm__
            warn on semaphores being used in place of completions
            trailing ; on control structure should ignore do {} while ();
            recommend strict_strtoX over simple_strtoX
            redo comment handling as a quote type
            use of NR_CPUS is normally wrong
            consistant spacing should only be about spaces
            if brace check suppression should only apply to the top-levels
            use tr/// to align spacing for operators
            move to using four parameter form of substr
            check and report modifications to include/asm
      
      Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      773647a0
  18. Mar 23, 2008
  19. Mar 13, 2008
  20. Mar 04, 2008
    • Andy Whitcroft's avatar
      update checkpatch.pl to version 0.15 · cf655043
      Andy Whitcroft authored
      
      This version brings a number of minor fixes updating the type detector and
      the unary tracker.  It also brings a few small fixes for false positives.
      It also reverts the --file warning.  Of note:
      
       - limit CVS checks to added lines
       - improved type detections
       - fixes to the unary tracker
      
      Andy Whitcroft (13):
            Version: 0.15
            EXPORT_SYMBOL checks need to accept array variables
            export checks must match DECLARE_foo and LIST_HEAD
            possible types: cleanup debugging missing line
            values: track values through preprocessor conditional paths
            typeof is actually a type
            possible types: detect definitions which cross lines
            values: include line numbers on value debug information
            values: ensure we find correctly record pending brackets
            values: simplify the brace history stack
            CVS keyword checks should only apply to added lines
            loosen spacing for comments
            allow braces for single statement blocks with multiline conditionals
      
      Harvey Harrison (1):
            checkpatch: remove fastcall
      
      Ingo Molnar (1):
            checkpatch.pl: revert wrong --file message
      
      Uwe Kleine-Koenig (1):
            fix typo "goot" -> "good"
      
      Signed-off-by: default avatarAndy Whitcroft <apw@shadowen.org>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Joel Schopp <jschopp@austin.ibm.com>
      Cc: Ingo Molnar <mingo@elte.hu>
      Cc: Andi Kleen <ak@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cf655043
  21. Feb 23, 2008
    • Richard Kennedy's avatar
      kernel-doc: fix function-pointer-parameter parsing · 00d62961
      Richard Kennedy authored
      
      When running "make htmldocs" I'm seeing some non-fatal perl errors caused
      by trying to parse the callback function definitions in blk-core.c.
      
      The errors are "Use of uninitialized value in concatenation (.)..."
      in combination with:
      Warning(linux-2.6.25-rc2/block/blk-core.c:1877): No description found for parameter ''
      
      The function pointers are defined without a * i.e.
      int (drv_callback)(struct request *)
      
      The compiler is happy with them, but kernel-doc isn't.
      
      This patch teaches create_parameterlist in kernel-doc to parse this type of
      function pointer definition, but is it the right way to fix the problem ?
      The problem only seems to occur in blk-core.c.
      
      However with the patch applied, kernel-doc finds the correct parameter
      description for the callback in blk_end_request_callback, which is doesn't
      normally.
      
      I thought it would be a bit odd to change to code to use the more normal
      form of function pointers just to get the documentation to work, so I fixed
      kernel-doc instead - even though this is teaching it to understand code
      that might go away (The comment for blk_end_request_callback says that it
      should not be used and will removed at some point).
      
      Signed-off-by: default avatarRichard Kennedy <richard@rsk.demon.co.uk>
      Signed-off-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      00d62961
  22. Feb 19, 2008
    • Geert Uytterhoeven's avatar
      kbuild: fix reversed symbol name order in modpost · b1d2675a
      Geert Uytterhoeven authored
      
      XXXINIT_TO_INIT and XXXEXIT_TO_EXIT warnings use the reversed symbol name order
      in the suggestion, e.g.:
      
          WARNING: vmlinux.o(.meminit.text+0x36c): Section mismatch in reference from the function free_area_init_core() to the function .init.text:setup_usemap()
          The function __meminit free_area_init_core() references
          a function __init setup_usemap().
          If free_area_init_core is only used by setup_usemap then
          annotate free_area_init_core with a matching annotation.
      
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      b1d2675a
  23. Feb 14, 2008
  24. Feb 13, 2008
    • Mathieu Desnoyers's avatar
      Linux Kernel Markers: create modpost file · b2e3e658
      Mathieu Desnoyers authored
      
      This adds some new magic in the MODPOST phase for CONFIG_MARKERS.  Analogous
      to the Module.symvers file, the build will now write a Module.markers file
      when CONFIG_MARKERS=y is set.  This file lists the name, defining module, and
      format string of each marker, separated by \t characters.  This simple text
      file can be used by offline build procedures for instrumentation code,
      analogous to how System.map and Module.symvers can be useful to have for
      kernels other than the one you are running right now.
      
      The strings are made easy to extract by having the __trace_mark macro define
      the name and format together in a single array called __mstrtab_* in the
      __markers_strings section.  This is straightforward and reliable as long as
      the marker structs are always defined by this macro.  It is an unreasonable
      amount of hairy work to extract the string pointers from the __markers section
      structs, which entails handling a relocation type for every machine under the
      sun.
      
      Mathieu :
      - Ran through checkpatch.pl
      
      Signed-off-by: default avatarRoland McGrath <roland@redhat.com>
      Signed-off-by: default avatarMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
      Cc: David Smith <dsmith@redhat.com>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      b2e3e658
Loading