1. 23 12月, 2011 12 次提交
    • S
      ktest: Detect typos in option names · 9cc9e091
      Steven Rostedt 提交于
      It becomes quite annoying when you go to run a test and then
      realize that you typed an option name wrong, and the test starts
      doing the default action and not what you expected it to do.
      
      It is even more annoying when you wake up the next day after
      running the test over night when you discover this.
      
      By testing if all options specified in a config file are
      used by either ktest or were used in one of the option's values
      we can see if there are any dangling options that were not used.
      In such a case, show the user the options that were not used
      and ask them if they want to continue or not.
      
      The option IGNORE_UNUSED was also added to allow the user to
      override this feature.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      9cc9e091
    • S
      ktest: Have all values be set by defaults · b5f4aea6
      Steven Rostedt 提交于
      Currently the patchcheck, bisect, and config_bisect variables
      are only able to be set per test. You can not set a default
      value for them.
      
      By letting default values be set, it makes some config files
      a bit easier, and also makes it easier to find typos in the
      option names.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      b5f4aea6
    • S
      ktest: Change initialization of defaults hash to perl format · 4f43e0dc
      Steven Rostedt 提交于
      Initializing each default value by specifying the hash name is
      ugly. This is one of the rare cases that the "perl way" is actually
      much cleaner and easier to read.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      4f43e0dc
    • S
      ktest: Add options SWITCH_TO_GOOD and SWITCH_TO_TEST · bc7c5803
      Steven Rostedt 提交于
      For machines that do no use grub, it may be needed to update an
      external image (tftp) before doing a reboot into either the
      test image or the known good image.
      
      The option SWITCH_TO_GOOD is added, where if it is defined, the
      command that is specified as its value will be executed before
      doing a reboot into a known good image.
      
      The option SWITCH_TO_TEST is added, where if it is defined, the
      command that is specified as its value will be executed before
      doing a reboot into the test image.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      bc7c5803
    • S
      ktest: Allow overriding bisect test results · c5dacb88
      Steven Rostedt 提交于
      When running the ktest git bisect test, if the BISECT_TYPE is "test",
      the bisect is determined to be good or bad based off of the error
      code of the test that is run. Currently, if the test returns 0,
      it is considered a pass (good), a non-zero is considered a fail (bad).
      
      But it has been requested to add more options, and also change
      the meanings of the error codes of the test. For example, one may
      want the test to detect if the commit is not good or bad,
      (maybe the bisect came to a point where the code in question
      does not exist). The test could report an error code that should tell
      ktest to skip the commit.
      
      Also, a test could detect that something is horribly wrong and the
      biscet should just be aborted.
      
      The new options:
      
       BISECT_RET_GOOD
       BISECT_RET_BAD
       BISECT_RET_SKIP
       BISECT_RET_ABORT
       BISECT_RET_DEFAULT
      
      have been added. The first 4 take an integer value that will
      represent if the test should be considered a pass, fail, neither
      good nor bad, or abort respectively.
      
      The BISECT_RET_DEFAULT will bo whatever is not defined by the
      above codes. If only BISECT_RET_DEFAULT is defined, then all tests
      will do the default.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      c5dacb88
    • S
      ktest: Evaluate options before processing them · cad96669
      Steven Rostedt 提交于
      All options can take variables "${var}". Before doing any processing
      or decision making on the content of an option, evaluate it incase
      there are variables that may change the outcome.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      cad96669
    • S
      ktest: Evaluate $KERNEL_VERSION in both install and post install · 2b29b2f8
      Steven Rostedt 提交于
      The install process may also need to know what the kernel version
      is, to add it to the name. Evaluate it for both install and
      post install.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      2b29b2f8
    • S
      ktest: Only ask options needed for install · 165708b2
      Steven Rostedt 提交于
      If all the tests are only for build or install, do not ask
      for options not needed to do the install, if the options do
      not exist.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      165708b2
    • S
      ktest: When creating a new config, ask for BUILD_OPTIONS · dbd3783b
      Steven Rostedt 提交于
      When creating a new config, ask for the BUILD_OPTIONS variable
      that lets users add things like -j20 to the make.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      dbd3783b
    • S
      ktest: Do not ask for some options if the only test is build · bb8474b1
      Steven Rostedt 提交于
      When creating a ktest config or if te config only has build only
      tests, some of the manditory config options are not needed.
      
      Do not ask for them if all tests in the config file are just build
      tests.
      Suggested-by: NDarren Hart <dvhart@linux.intel.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      bb8474b1
    • S
      ktest: Ask for type of test when creating a new config · c4261d0f
      Steven Rostedt 提交于
      When no argument is supplied to ktest, or the config applied does
      not exist and a new config is being created, instead of just using
      the default test type, give the user an option to pick the test type
      of either 'build, install, or boot'. Other options may be added later
      but then those would require more questions as they require more
      fields. But that's for another release of ktest to add that feature.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      c4261d0f
    • S
      ktest: Allow bisect test to restart where it left off · dad98754
      Steven Rostedt 提交于
      If a bisect is killed for some reason, have ktest detect that a bisect
      is in progress and if so, allow the user to start the bisect where
      it left off.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      dad98754
  2. 24 11月, 2011 1 次提交
    • S
      ktest: When creating new config, allow the use of ${THIS_DIR} · 0e7a22de
      Steven Rostedt 提交于
      Typing in a full path when you know that the path exists within
      the directory your are running is tedious and unnecessary.
      
      Allow the user to use ${PWD} if they want a dynamic path name
      which will be the path that ktest.pl is executed from
      or use ${THIS_DIR} which is a variable assigned `pwd` and
      the the variable will exist within the config, allowing the user
      to change it and affect all other paths using this variable as well
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      0e7a22de
  3. 22 11月, 2011 1 次提交
    • S
      ktest: Add default for ssh-user, build-target and target-image · 600bbf0a
      Steven Rostedt 提交于
      When a user runs ktest without an argument, or the argument given
      is not a config file that exists, ktest will ask the user a few
      questions to create a simple ktest config file.
      
      A few of the questions should have a default value set, that if anything
      it will make it easier for the user to know what is suppose to
      be in that value.
      
      These new values are:
      
        SSH_USER, BUILD_TARGET and TARGET_IMAGE
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      600bbf0a
  4. 19 11月, 2011 3 次提交
  5. 16 11月, 2011 7 次提交
  6. 15 11月, 2011 1 次提交
    • L
      fsl-rio: fix compile error · e0ce42e1
      Liu Gang 提交于
      The "#include <linux/module.h>" was replaced by "#include <linux/export.h>"
      in the patch "powerpc: various straight conversions from module.h --> export.h".
      This will cause the following compile problem:
      arch/powerpc/sysdev/fsl_rio.c: In function 'fsl_rio_mcheck_exception':
      arch/powerpc/sysdev/fsl_rio.c:296: error: implicit declaration of function 'search_exception_tables'.
      
      The file fsl_rio.c needs the declaration of function "search_exception_tables"
      in the header file "linux/module.h".
      Signed-off-by: NLiu Gang <Gang.Liu@freescale.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      e0ce42e1
  7. 14 11月, 2011 7 次提交
  8. 13 11月, 2011 2 次提交
  9. 12 11月, 2011 6 次提交
    • L
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc · 5b34b089
      Linus Torvalds 提交于
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
        arm/imx: fix imx6q mmc error when mounting rootfs
        arm/imx: fix AUTO_ZRELADDR selection
        arm/imx: fix the references to ARCH_MX3
        ARM: mx51/53: set pwm clock parent to ipg_perclk
        arm/tegra: enable headphone detection gpio on seaboard
        arm/dt: Fix ventana SDHCI power-gpios
        arm/tegra: Don't create duplicate gpio and pinmux devices
        ARM: at91: Fix USBA gadget registration
        atmel/spi: fix missing probe
        at91/yl-9200: Fix section mismatch
        at91: vmalloc fix missing AT91_VIRT_BASE define
        ARM: at91: usart: drop static map regs for dbgu
        ARM: picoxcell: add extra temp register to addruart
        ARM: msm: fix compilation flags for MSM_SCM
        arm/mxs: fix mmc device adding for mach-mx28evk
        ARM: mxc: Remove test_for_ltirq
        ARM:i.MX: fix build error in clock-mx51-mx53.c
        ARM:i.MX: fix build error in tzic/avic.c
        ARM: mxc: fix local timer interrupt handling
        msm: boards: Fix fallout from removal of machine_desc in fixup
      5b34b089
    • A
      [CPUFREQ] db8500: fix build error due to undeclared i variable · eb0b38a5
      Axel Lin 提交于
      The variable i is removed by commit ded84337
      "[CPUFREQ] db8500: remove unneeded for loop iteration over freq_table",
      but current code to print available frequencies still uses the i variable.
      Thus add the i variable back to fix below buld error:
      
        CC      drivers/cpufreq/db8500-cpufreq.o
      drivers/cpufreq/db8500-cpufreq.c: In function 'db8500_cpufreq_init':
      drivers/cpufreq/db8500-cpufreq.c:123: error: 'i' undeclared (first use in this function)
      drivers/cpufreq/db8500-cpufreq.c:123: error: (Each undeclared identifier is reported only once
      drivers/cpufreq/db8500-cpufreq.c:123: error: for each function it appears in.)
      make[2]: *** [drivers/cpufreq/db8500-cpufreq.o] Error 1
      make[1]: *** [drivers/cpufreq] Error 2
      make: *** [drivers] Error 2
      
      This patch also fixes using uninitialized i variable as array index.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      Signed-off-by: NDave Jones <davej@redhat.com>
      eb0b38a5
    • L
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · 8f042aa7
      Linus Torvalds 提交于
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k: (29 commits)
        m68k/mac: Remove mac_irq_{en,dis}able() wrappers
        m68k/irq: Remove obsolete support for user vector interrupt fixups
        m68k/irq: Remove obsolete m68k irq framework
        m68k/q40: Convert Q40/Q60 to genirq
        m68k/sun3: Convert Sun3/3x to genirq
        m68k/sun3: Use the kstat_irqs_cpu() wrapper
        m68k/apollo: Convert Apollo to genirq
        m68k/vme: Convert VME to genirq
        m68k/hp300: Convert HP9000/300 and HP9000/400 to genirq
        m68k/mac: Optimize interrupts using chain handlers
        m68k/mac: Convert Mac to genirq
        m68k/amiga: Optimize interrupts using chain handlers
        m68k/amiga: Convert Amiga to genirq
        m68k/amiga: Refactor amiints.c
        m68k/atari: Remove code and comments about different irq types
        m68k/atari: Convert Atari to genirq
        m68k/irq: Add genirq support
        m68k/irq: Remove obsolete IRQ_FLG_* users
        m68k/irq: Rename {,__}m68k_handle_int()
        m68k/irq: Add m68k_setup_irq_controller()
        ...
      8f042aa7
    • L
      Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · e6f1227e
      Linus Torvalds 提交于
      * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
        [media] v4l2-ctrl: Send change events to all fh for auto cluster slave controls
        [media] v4l2-event: Don't set sev->fh to NULL on unsubscribe
        [media] v4l2-event: Remove pending events from fh event queue when unsubscribing
        [media] v4l2-event: Deny subscribing with a type of V4L2_EVENT_ALL
        [media] MAINTAINERS: add a maintainer for s5p-mfc driver
        [media] v4l: s5p-mfc: fix reported capabilities
        [media] media: vb2: reset queued list on REQBUFS(0) call
        [media] media: vb2: set buffer length correctly for all buffer types
        [media] media: vb2: add a check for uninitialized buffer
        [media] mxl111sf: fix build warning
        [media] mxl111sf: remove pointless if condition in mxl111sf_config_spi
        [media] mxl111sf: check for errors after mxl111sf_write_reg in mxl111sf_idac_config
        [media] mxl111sf: fix return value of mxl111sf_idac_config
        [media] uvcvideo: GET_RES should only be checked for BITMAP type menu controls
      e6f1227e
    • L
      Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc · 3455229f
      Linus Torvalds 提交于
      * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
        powerpc/kvm: Fix build failure with HV KVM and CBE
        powerpc/ps3: Fix lv1_gpu_attribute hcall
        powerpc/ps3: Fix PS3 repository build warnings
        powerpc/ps3: irq: Remove IRQF_DISABLED
        powerpc/irq: Remove IRQF_DISABLED
        powerpc/numa: NUMA topology support for PowerNV
        powerpc: Add System RAM to /proc/iomem
        powerpc: Add KVM as module to defconfigs
        powerpc/kvm: Fix build with older toolchains
        powerpc, tqm5200: update tqm5200_defconfig to fit for charon board.
        powerpc/5200: add support for charon board
      3455229f
    • L
      Merge branch 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild · 732783fe
      Linus Torvalds 提交于
      * 'rc-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
        kbuild: Fix missing system calls check on mips.
      732783fe