1. 21 Sep, 2015 1 commit
  2. 27 May, 2015 1 commit
    • Luis R. Rodriguez's avatar
      kernel/params: constify struct kernel_param_ops uses · 9c27847d
      Luis R. Rodriguez authored
      Most code already uses consts for the struct kernel_param_ops,
      sweep the kernel for the last offending stragglers. Other than
      include/linux/moduleparam.h and kernel/params.c all other changes
      were generated with the following Coccinelle SmPL patch. Merge
      conflicts between trees can be handled with Coccinelle.
      In the future git could get Coccinelle merge support to deal with
      patch --> fail --> grammar --> Coccinelle --> new patch conflicts
      automatically for us on patches where the grammar is available and
      the patch is of high confidence. Consider this a feature request.
      Test compiled on x86_64 against:
      	* allnoconfig
      	* allmodconfig
      	* allyesconfig
      @ const_found @
      identifier ops;
      const struct kernel_param_ops ops = {
      @ const_not_found depends on !const_found @
      identifier ops;
      -struct kernel_param_ops ops = {
      +const struct kernel_param_ops ops = {
      Generated-by: Coccinelle SmPL
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Junio C Hamano <gitster@pobox.com>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Kees Cook <keescook@chromium.org>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Ingo Molnar <mingo@kernel.org>
      Cc: cocci@systeme.lip6.fr
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: 's avatarLuis R. Rodriguez <mcgrof@suse.com>
      Signed-off-by: 's avatarRusty Russell <rusty@rustcorp.com.au>
  3. 22 Jan, 2015 1 commit
  4. 22 Jan, 2014 3 commits
  5. 28 Oct, 2013 1 commit
  6. 24 Jul, 2013 1 commit
  7. 03 Jun, 2013 1 commit
  8. 31 Mar, 2011 1 commit
  9. 13 Jan, 2011 1 commit
  10. 25 Oct, 2010 1 commit
    • Hendrik Brueckner's avatar
      [S390] hvc_iucv: do not call iucv_unregister if iucv_register failed · c77f7cf7
      Hendrik Brueckner authored
      If the iucv_register() functions fails, the error recovery calls
      iucv_unregister() which might cause the following stack backtrace:
      	(<0000000000100ab2> show_trace+0xee/0x144)
      	<00000000004f1842> panic+0xb6/0x248
      	<00000000001010a6> die+0x15a/0x16c
      	<000000000011d936> do_no_context+0xa6/0xe4
      	<00000000004f84dc> do_protection_exception+0x2e8/0x3a4
      	<0000000000113afc> pgm_exit+0x0/0x14
      	<00000000004e786e> iucv_unregister+0x5a/0x17c
      	(<00000000004e785e> iucv_unregister+0x4a/0x17c)
      	<000000000076de74> hvc_iucv_init+0x228/0x5dc
      	<00000000001000c2> do_one_initcall+0x3e/0x19c
      	<00000000007524a2> kernel_init+0x28e/0x404
      	<0000000000105dd6> kernel_thread_starter+0x6/0xc
      	<0000000000105dd0> kernel_thread_starter+0x0/0xc
      Remove the call to iucv_unregister() and remove the goto label
      as unregistering is the last step in the hvc_iucv initialization.
      If iucv_register() fails, simply clean up hvc terminals and free
      Signed-off-by: 's avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Signed-off-by: 's avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
  11. 11 Aug, 2010 1 commit
  12. 30 Mar, 2010 1 commit
    • Tejun Heo's avatar
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo authored
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      The script does the followings.
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
      The conversion was done in the following steps.
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
      6. percpu.h was updated not to include slab.h.
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: 's avatarTejun Heo <tj@kernel.org>
      Guess-its-ok-by: 's avatarChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
  13. 08 Mar, 2010 1 commit
  14. 23 Feb, 2010 1 commit
  15. 02 Feb, 2010 1 commit
  16. 15 Dec, 2009 1 commit
  17. 23 Sep, 2009 1 commit
  18. 11 Sep, 2009 1 commit
  19. 16 Jun, 2009 1 commit
    • Hendrik Brueckner's avatar
      [S390] pm: hvc_iucv power management callbacks · 0259162e
      Hendrik Brueckner authored
      The patch adds supporting for suspending and resuming IUCV HVC terminal
      devices from disk. The obligatory Linux device driver interfaces has
      been added by registering a device driver on the IUCV bus.
      For each IUCV HVC terminal device the driver creates a respective device
      on the IUCV bus.
      To support suspend and resume, the PM freeze callback severs any established
      IUCV communication path and triggers a HVC tty hang-up when the system image
      is restored.
      IUCV communication path are no longer valid when the z/VM guest is halted.
      The device driver initialization has been updated to register devices and
      the a new routine has been extracted to facilitate the hang-up of IUCV HVC
      terminal devices.
      Signed-off-by: 's avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Signed-off-by: 's avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
  20. 26 Mar, 2009 2 commits
  21. 09 Jan, 2009 5 commits
  22. 25 Dec, 2008 1 commit
    • Hendrik Brueckner's avatar
      [S390] s390/hvc_console: z/VM IUCV hypervisor console support · 44a01d5b
      Hendrik Brueckner authored
      This patch introduces a new hypervisor console (HVC) back-end that provides
      terminal access over the z/VM inter-user communication vehicle (IUCV).
      The z/VM IUCV communication is independent of the regular tcp/ip network
      and allows access even if there is no network connection between two
      z/VM guest virtual machines.
      The z/VM IUCV hypervisor console back-end helps the user to access a
      z/VM guest virtual machine that lacks of network connectivity; and thus,
      provides a "full-screen" terminal alternative to 3215/3270 terminal sessions.
      Use the hvc_iucv=[0..8] kernel boot parameter to specify the number of
      HVC terminals using a z/VM IUCV back-end.
      A recent version of the s390-tools package is required to establish a
      terminal connection to a z/VM IUCV hypervisor console back-end.
      Signed-off-by: 's avatarHendrik Brueckner <brueckner@linux.vnet.ibm.com>
      Signed-off-by: 's avatarMartin Schwidefsky <schwidefsky@de.ibm.com>