1. 05 May, 2008 12 commits
    • Harvey Harrison's avatar
      kgdb: fix signedness mixmatches, add statics, add declaration to header · 688b744d
      Harvey Harrison authored
      Noticed by sparse:
      arch/x86/kernel/kgdb.c:556:15: warning: symbol 'kgdb_arch_pc' was not declared. Should it be static?
      kernel/kgdb.c:149:8: warning: symbol 'kgdb_do_roundup' was not declared. Should it be static?
      kernel/kgdb.c:193:22: warning: symbol 'kgdb_arch_pc' was not declared. Should it be static?
      kernel/kgdb.c:712:5: warning: symbol 'remove_all_break' was not declared. Should it be static?
      
      Related to kgdb_hex2long:
      arch/x86/kernel/kgdb.c:371:28: warning: incorrect type in argument 2 (different signedness)
      arch/x86/kernel/kgdb.c:371:28:    expected long *long_val
      arch/x86/kernel/kgdb.c:371:28:    got unsigned long *<noident>
      kernel/kgdb.c:469:27: warning: incorrect type in argument 2 (different signedness)
      kernel/kgdb.c:469:27:    expected long *long_val
      kernel/kgdb.c:469:27:    got unsigned long *<noident>
      kernel/kgdb.c:470:27: warning: incorrect type in argument 2 (different signedness)
      kernel/kgdb.c:470:27:    expected long *long_val
      kernel/kgdb.c:470:27:    got unsigned long *<noident>
      kernel/kgdb.c:894:27: warning: incorrect type in argument 2 (different signedness)
      kernel/kgdb.c:894:27:    expected long *long_val
      kernel/kgdb.c:894:27:    got unsigned long *<noident>
      kernel/kgdb.c:895:27: warning: incorrect type in argument 2 (different signedness)
      kernel/kgdb.c:895:27:    expected long *long_val
      kernel/kgdb.c:895:27:    got unsigned long *<noident>
      kernel/kgdb.c:1127:28: warning: incorrect type in argument 2 (different signedness)
      kernel/kgdb.c:1127:28:    expected long *long_val
      kernel/kgdb.c:1127:28:    got unsigned long *<noident>
      kernel/kgdb.c:1132:25: warning: incorrect type in argument 2 (different signedness)
      kernel/kgdb.c:1132:25:    expected long *long_val
      kernel/kgdb.c:1132:25:    got unsigned long *<noident>
      Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
      688b744d
    • Jason Wessel's avatar
      kgdb: 1000 loops for the single step test in kgdbts · 7cfcd985
      Jason Wessel authored
      The single step test is not terribly costly and it should be able to
      pass at 1000 loops successfully in under 1 second.  A non-kgdb timing
      regression was found using this test, but it did not occur frequently
      because by default the test was only executed a single time.
      
      This patch changes the default for the single step test to 1000
      iterations and allows for individual configuration of the single step
      test to further exercise the kgdb subsystem when needed.
      Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
      7cfcd985
    • Harvey Harrison's avatar
      kgdb: trivial sparse fixes in kgdb test-suite · 001fddf5
      Harvey Harrison authored
      Shadowed variable and integer as NULL pointer fixes:
      drivers/misc/kgdbts.c:877:6: warning: symbol 'sys_open_test' shadows an earlier one
      drivers/misc/kgdbts.c:537:27: originally declared here
      drivers/misc/kgdbts.c:378:22: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:386:22: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:468:30: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:472:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:502:30: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:506:30: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:509:30: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:523:20: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:527:20: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:530:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:541:21: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:545:21: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:548:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:559:30: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:563:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:573:16: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:574:19: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:578:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:588:16: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:589:19: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:593:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:602:16: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:604:15: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:925:3: warning: Using plain integer as NULL pointer
      drivers/misc/kgdbts.c:938:3: warning: Using plain integer as NULL pointer
      Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
      Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
      001fddf5
    • grzegorz.chwesewicz@chilan.com's avatar
      kgdb: minor documentation fixes · f9250937
      grzegorz.chwesewicz@chilan.com authored
      Two minor fixes to the kgdb documentation.
      Signed-off-by: default avatarGrzegorz Chwesewicz, Chilan <grzegorz.chwesewicz@chilan.com>
      Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
      f9250937
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-inttypes · f74d505b
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/hpa/linux-2.6-inttypes:
        fix asm-mips/types.h syntax error
        fix asm-alpha/types.h breakage
      f74d505b
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes · 45ea2103
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes:
        x86: fix setup printk format warning
        x86: olpc build fix
        x86: video/fbdev.c: add MODULE_LICENSE
        x86: fix up bootparam.h for userspace inclusion
        x86: relocs ELF handling - use SELFMAG instead of numeric constant
        x86: vdso ELF handling - use SELFMAG instead of numeric constant
        x86: remove dell reboot dmi quirk board name match
        x86: es7000 build fix
        x86: make additional_cpus static
        x86: make start_secondary() static
        kbuild, suspend, x86: fix rebuild of wakeup.bin
        uml: fix gcc problem
        x86: undo visws/numaq build changes
      45ea2103
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes · 10ea18f0
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/sam/kbuild-fixes:
        kconfig-language.txt: remove bogus hint
        kconfig: fix MAC OS X warnings in menuconfig
        modpost: i2c aliases need no trailing wildcard
      10ea18f0
    • Bryan Wu's avatar
      task_nommu: fix compile failing bug because of spilt file.h · eb28062f
      Bryan Wu authored
        CC      fs/proc/task_nommu.o
      fs/proc/task_nommu.c: In function ‘task_mem’:
      fs/proc/task_nommu.c:55: error: dereferencing pointer to incomplete type
      make[2]: *** [fs/proc/task_nommu.o] Error 1
      make[1]: *** [fs/proc] Error 2
      make: *** [fs] Error 2
      Signed-off-by: default avatarBryan Wu <cooloney@kernel.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      eb28062f
    • Linus Torvalds's avatar
    • Linus Torvalds's avatar
      Merge branch 'kvm-updates-2.6.26' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm · 8dcf5782
      Linus Torvalds authored
      * 'kvm-updates-2.6.26' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm:
        x86: KVM geust: make setup_secondary_clock definition dependent on local apic
        KVM: MMU: Allow more than PAGES_PER_HPAGE write protections per large page
        KVM: avoid fx_init() schedule in atomic
        KVM: Avoid spurious execeptions after setting registers
        KVM: PIT: support mode 4
        KVM: x86 emulator: disable writeback on lmsw
        KVM: ppc: deliver INTERRUPT_FP_UNAVAIL to the guest
        KVM: ppc: Handle guest idle by emulating MSR[WE] writes
        KVM: x86: task switch: fix wrong bit setting for the busy flag
        KVM: VMX: Enable EPT feature for KVM
        KVM: VMX: Prepare an identity page table for EPT in real mode
        KVM: Export necessary function for EPT
        KVM: MMU: Remove #ifdef CONFIG_X86_64 to support 4 level EPT
        KVM: MMU: Add EPT support
        KVM: Add kvm_x86_ops get_tdp_level()
        KVM: MMU: Move some definitions to a header file
        KVM: VMX: EPT Feature Detection
      8dcf5782
    • Ingo Molnar's avatar
      sysfs: build fix · e73b65f1
      Ingo Molnar authored
      x86.git testing found the following build failure on v2.6.26-rc1:
      
        In file included from include/linux/kobject.h:22,
                         from include/linux/module.h:17,
                         from include/linux/crypto.h:22,
                         from arch/x86/kernel/asm-offsets_32.c:8,
                         from arch/x86/kernel/asm-offsets.c:3:
        include/linux/sysfs.h:201: error: redefinition of 'sysfs_update_group'
        include/linux/sysfs.h:195: error: previous definition of 'sysfs_update_group' was here
        make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
        make: *** [prepare0] Error 2
      
      with the following config:
      
          http://redhat.com/~mingo/misc/config-Sun_May__4_07_09_30_CEST_2008.bad
      
      the reason for the build failure is the duplicate definition of the
      sysfs_update_group() inline function in include/linux/sysfs.h.
      
      The duplication was a merge error: it was added via -mm by commit
      v2.6.25-7262-g2850699c, "sysfs: sysfs_update_group stub for
      CONFIG_SYSFS=n" a day before v2.6.26-rc1, but a day before that the same
      commit was already merged upstream via the sysfs tree, with commit
      v2.6.25-7211-g1cbfb7a5.
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      e73b65f1
    • Linus Torvalds's avatar
      Make forced module loading optional · 826e4506
      Linus Torvalds authored
      The kernel module loader used to be much too happy to allow loading of
      modules for the wrong kernel version by default.  For example, if you
      had MODVERSIONS enabled, but tried to load a module with no version
      info, it would happily load it and taint the kernel - whether it was
      likely to actually work or not!
      
      Generally, such forced module loading should be considered a really
      really bad idea, so make it conditional on a new config option
      (MODULE_FORCE_LOAD), and make it default to off.
      
      If somebody really wants to force module loads, that's their problem,
      but we should not encourage it.  Especially as it happened to me by
      mistake (ie regular unversioned Fedora modules getting loaded) causing
      lots of strange behavior.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      826e4506
  2. 04 May, 2008 28 commits