1. 12 6月, 2007 1 次提交
    • S
      kbuild: fix sh64 section mismatch problems · 2648a53a
      Sam Ravnborg 提交于
      There's a special .cranges section that is almost always generated,
      with data being moved to the appropriate section by the linker at a later
      stage.
      
      To give a bit of background, sh64 has both a native SHmedia instruction
      set (32-bit instructions) and SHcompact (which is compatability with
      normal SH -- 16-bit, a massively reduced register set, etc.). code ranges
      are emitted when we're using the 32-bit ABI, but not the 64-bit one.
      
      It is a special staging section used solely by binutils where code with
      different flags get placed (more specifically differing flags for input
      and output sections), before being lazily merged by the linker.
      
      The closest I've been able to find to documentation is:
        http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/emultempl/sh64elf.em?rev=1.10&content-type=text/x-cvsweb-markup&cvsroot=src
      
      It's an array of 8-byte Elf32_CRange structure given in
        http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf32-sh64.h?rev=1.4&content-type=text/x-cvsweb-markup&cvsroot=src
      that describes for which ISA a range is used.
      
      Silence the warnings by allowing references from .init.text to .cranges.
      
      The following warnings are fixed:
      
      WARNING: init/built-in.o(.cranges+0x0): Section mismatch: reference to .init.text:
      WARNING: init/built-in.o(.cranges+0xa): Section mismatch: reference to .init.text:
      WARNING: init/built-in.o(.cranges+0x14): Section mismatch: reference to .init.text:
      WARNING: init/built-in.o(.cranges+0x1e): Section mismatch: reference to .init.text:
      WARNING: init/built-in.o(.cranges+0x28): Section mismatch: reference to .init.text:
      WARNING: init/built-in.o(.cranges+0x32): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x50): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x5a): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x64): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0xfa): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x104): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x10e): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x14a): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x154): Section mismatch: reference to .init.text:
      WARNING: kernel/built-in.o(.cranges+0x15e): Section mismatch: reference to .init.text:
      WARNING: mm/built-in.o(.cranges+0x6e): Section mismatch: reference to .init.text:
      WARNING: mm/built-in.o(.cranges+0x78): Section mismatch: reference to .init.text:
      WARNING: mm/built-in.o(.cranges+0x82): Section mismatch: reference to .init.text:
      WARNING: mm/built-in.o(.cranges+0xaa): Section mismatch: reference to .init.text:
      WARNING: fs/built-in.o(.cranges+0x136): Section mismatch: reference to .init.text:
      WARNING: fs/built-in.o(.cranges+0x140): Section mismatch: reference to .init.text:
      WARNING: fs/built-in.o(.cranges+0x14a): Section mismatch: reference to .init.text:
      WARNING: fs/built-in.o(.cranges+0x168): Section mismatch: reference to .init.text:
      WARNING: fs/built-in.o(.cranges+0x1f4): Section mismatch: reference to .init.text:
      WARNING: fs/built-in.o(.cranges+0x1fe): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x302): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x30c): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x316): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x3a2): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x3ac): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x4ce): Section mismatch: reference to .init.text:
      WARNING: net/built-in.o(.cranges+0x4d8): Section mismatch: reference to .init.text:
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      Cc: Kaz Kojima <kkojima@rr.iij4u.or.jp>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      2648a53a
  2. 09 6月, 2007 3 次提交
    • A
      update checkpatch.pl to version 0.04 · 00df344f
      Andy Whitcroft 提交于
      This version brings a some new tests, and a host of changes to fix
      false positives, of particular note:
      
        - check for and report #if 0
        - extend checking of line lengths and spacing for .pl, .sh etc
        - extends the pointer type checks to multiple levels
        - updates printk handling to track newlines
        - adds a wrapped patch detector
        - drops the leading component of the filenames
        - extends switch indent handling to switch statmentes rooted in
          the context
        - adds foo * bar single pointer checks
      
      This version of checkpatch.pl can be found at the following URL:
      
            http://www.shadowen.org/~apw/public/checkpatch/checkpatch.pl-0.04
      
      Full Changelog:
      
      Andy Whitcroft (16):
            allow checking line lengths and spacing on other source files
            clean up that whitespace
            sanitise the input line standardising the content of quotes
            clean up pointer type * and space checks
            fix up the sanitiser so it maintains the line length
            apply the printk facility checks only to the first printk in a set
            switch/case indent checks may anchor in the context
            add a wrapped patch detector
            put the #ifdef in C file checks on ice
            asm volatile is acceptable
            check for and report #if 0
            drop the leading component of the filename as patches are -p1
            use the original line when reporting operator errors
            correct spelling of Joel's name
            Version: 0.04
            add support for struct foo * bar checks
      
      Geert Uytterhoeven (1):
            Fix checkpatch.pl name in usage template
      
      Randy Dunlap (1):
            checkpatch: produce fewer lines of output
      Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
      Cc: Randy Dunlap <rdunlap@xenotime.net>
      Cc: Joel Schopp <jschopp@austin.ibm.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      00df344f
    • R
      checkpatch: produce fewer lines of output · 389834b6
      Randy Dunlap 提交于
      Produce one less line of output per flagged incident.
      
      Change this:
      
      use tabs not spaces
      PATCH: /home/rddunlap/arcmsr1200014.patch4:756:
      FILE: b/drivers/scsi/arcmsr/arcmsr_hba.c:1843:
      +                     return PCI_ERS_RESULT_NEED_RESET;$
      
      to this:
      
      use tabs not spaces
      #756: FILE: b/drivers/scsi/arcmsr/arcmsr_hba.c:1843:
      +                     return PCI_ERS_RESULT_NEED_RESET;$
      
      Cc: Andy Whitcroft <apw@shadowen.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      389834b6
    • A
      update checkpatch.pl to version 0.03 · 4a0df2ef
      Andy Whitcroft 提交于
      This version brings a host of changes to cure false positives and
      bugs detected on patches submitted to lkml and -mm.  It also brings
      a number of new tests in response to reviews, of particular note:
      
        - catch use of volatile
        - allow deprecated functions to be listed in feature-removal-schedule.txt
        - warn about #ifdef's in c files
        - check that spinlock_t and struct mutex use is commented
        - report on architecture specific defines being used
        - report memory barriers without an associated comment
      
      Full changelog:
      
            catch use of volatile
            convert other quoted string checks to common routine
            alloc deprecated functions to be listed in feature-removal-schedule.txt
            split out the line length and indent for each line
            improve switch block handling
            handle GNU diff context lines with no leading space
            warn about #ifdef's in c files
            tidy up tests for signed-off-by using raw mode
            check that spinlock_t and struct mutex use is commented
            syntax checks for open brace placement may drop off the bottom of hunk
            report memory barriers without an associated comment
            when a sign off is present but ugly do not report it missing
            do not mistake bitfield definitions for indented labels
            report on architecture specific defines being used
            major update to the operator checks
            prevent switch/if/while etc matching foo_switch
            generify assignement in condition error message
            introduce an operator context marker
            Version: 0.03
      Signed-off-by: NAndy Whitcroft <apw@shadowen.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4a0df2ef
  3. 07 6月, 2007 1 次提交
  4. 01 6月, 2007 1 次提交
  5. 22 5月, 2007 3 次提交
  6. 19 5月, 2007 9 次提交
  7. 10 5月, 2007 2 次提交
  8. 09 5月, 2007 6 次提交
  9. 08 5月, 2007 1 次提交
  10. 06 5月, 2007 3 次提交
  11. 03 5月, 2007 10 次提交