1. 08 Feb, 2013 8 commits
    • Aaro Koskinen's avatar
      staging: xgifb: XGI_GetVCLK2Ptr(): delete IF_DEF_LVDS check · 7ac54d03
      Aaro Koskinen authored
      Delete IF_DEF_LVDS check, this function is never called when it's true.
      Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7ac54d03
    • Fengguang Wu's avatar
      staging: zram: __zram_reset_device() can be static · 1e927711
      Fengguang Wu authored
      Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
      Cc: Minchan Kim <minchan@kernel.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      1e927711
    • Tommi Rantala's avatar
      staging: dgrp: prefix function names with dgrp_ in dgrp_specproc.c · 900a72a6
      Tommi Rantala authored
      Prefix the functions in dgrp_specproc.c to avoid ambiguity in backtraces, such
      as the "info_proc_open" in this one:
      
      unreferenced object 0xffff88003b6696e0 (size 32):
        comm "cat", pid 2321, jiffies 4294705179 (age 29.434s)
        hex dump (first 32 bytes):
          40 79 1c 81 ff ff ff ff 60 79 1c 81 ff ff ff ff  @y......`y......
          50 79 1c 81 ff ff ff ff b0 62 89 81 ff ff ff ff  Py.......b......
        backtrace:
          [<ffffffff81c7e3b1>] kmemleak_alloc+0x21/0x50
          [<ffffffff811955cb>] kmem_cache_alloc_trace+0x11b/0x190
          [<ffffffff811c87dc>] single_open+0x3c/0xc0
          [<ffffffff81896495>] info_proc_open+0x15/0x20
          [<ffffffff8120c6d7>] proc_reg_open+0xb7/0x160
          [<ffffffff811a1a5c>] do_dentry_open+0x1cc/0x280
          [<ffffffff811a296a>] finish_open+0x4a/0x60
          [<ffffffff811b14d7>] do_last+0xb07/0xdb0
          [<ffffffff811b1842>] path_openat+0xc2/0x4f0
          [<ffffffff811b1cac>] do_filp_open+0x3c/0xa0
          [<ffffffff811a2dcc>] do_sys_open+0x11c/0x1c0
          [<ffffffff811a2e8c>] sys_open+0x1c/0x20
          [<ffffffff81ca3d69>] system_call_fastpath+0x16/0x1b
          [<ffffffffffffffff>] 0xffffffffffffffff
      Signed-off-by: default avatarTommi Rantala <tt.rantala@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      900a72a6
    • Tommi Rantala's avatar
      staging: dgrp: use correct release op for /proc/dgrp/info · 69a7c503
      Tommi Rantala authored
      Trinity (the syscall fuzzer) discovered that reading /proc/dgrp/info was
      leaking some memory. Fix by using the correct release op in info_proc_file_ops.
      
      unreferenced object 0xffff88003b6696e0 (size 32):
        comm "cat", pid 2321, jiffies 4294705179 (age 29.434s)
        hex dump (first 32 bytes):
          40 79 1c 81 ff ff ff ff 60 79 1c 81 ff ff ff ff  @y......`y......
          50 79 1c 81 ff ff ff ff b0 62 89 81 ff ff ff ff  Py.......b......
        backtrace:
          [<ffffffff81c7e3b1>] kmemleak_alloc+0x21/0x50
          [<ffffffff811955cb>] kmem_cache_alloc_trace+0x11b/0x190
          [<ffffffff811c87dc>] single_open+0x3c/0xc0
          [<ffffffff81896495>] info_proc_open+0x15/0x20
          [<ffffffff8120c6d7>] proc_reg_open+0xb7/0x160
          [<ffffffff811a1a5c>] do_dentry_open+0x1cc/0x280
          [<ffffffff811a296a>] finish_open+0x4a/0x60
          [<ffffffff811b14d7>] do_last+0xb07/0xdb0
          [<ffffffff811b1842>] path_openat+0xc2/0x4f0
          [<ffffffff811b1cac>] do_filp_open+0x3c/0xa0
          [<ffffffff811a2dcc>] do_sys_open+0x11c/0x1c0
          [<ffffffff811a2e8c>] sys_open+0x1c/0x20
          [<ffffffff81ca3d69>] system_call_fastpath+0x16/0x1b
          [<ffffffffffffffff>] 0xffffffffffffffff
      Signed-off-by: default avatarTommi Rantala <tt.rantala@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      69a7c503
    • Ian Abbott's avatar
      staging: comedi: correct error message in comedi_alloc_subdevice_minor() · b12da2e4
      Ian Abbott authored
      `comedi_alloc_subdevice_minors()` currently prints a message about
      running out of minor numbers board device files if it runs out of minor
      device numbers.  Change it to complain about running out of minor device
      numbers for subdevice files as these are in a different range, not
      shared with those for board device files.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b12da2e4
    • Ian Abbott's avatar
      staging: comedi: don't return minor from comedi_alloc_subdevice_minor() · da718546
      Ian Abbott authored
      `comedi_alloc_subdevice_minor()` currently returns the allocated minor
      device number on success.  This is not really of any interest to the
      caller (in fact the return value is not even checked), so just return 0
      on success.  If the caller really needs to know the allocated minor
      device number it can look in `s->minor`.
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      da718546
    • Peter Huewe's avatar
      staging/goldfish: Add MTD dependency to KCONFIG · f6fcf7f7
      Peter Huewe authored
      If CONFIG_MTD is not set goldfish_nand fails to compile with the
      following linker warnings:
      
      drivers/built-in.o: In function `goldfish_nand_remove':
      goldfish_nand.c:(.text+0x6e7d0e): undefined reference to
      `mtd_device_unregister'
      drivers/built-in.o: In function `goldfish_nand_erase':
      goldfish_nand.c:(.text+0x6e8ba2): undefined reference to
      `mtd_erase_callback'
      drivers/built-in.o: In function `goldfish_nand_init_device':
      goldfish_nand.c:(.text+0x6e8eba): undefined reference to
      `mtd_device_parse_register'
      Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      f6fcf7f7
    • Peter Huewe's avatar
      staging/goldfish: Use %zx for printing size_t variables · b4fcf48a
      Peter Huewe authored
      When building the driver, gcc emits the following warnings:
      .../drivers/staging/goldfish/goldfish_nand.c:
      In function 'goldfish_nand_read_oob':
      goldfish_nand.c:159:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      goldfish_nand.c:159:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 4 has type 'size_t' [-Wformat]
      
      In function 'goldfish_nand_write_oob':
      goldfish_nand.c:191:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      goldfish_nand.c:191:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 4 has type 'size_t' [-Wformat]
      
      In function 'goldfish_nand_read':
      goldfish_nand.c:215:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      
      In function 'goldfish_nand_write':
      goldfish_nand.c:239:2:
      warning: format '%x' expects argument of type 'unsigned int', but
      argument 3 has type 'size_t' [-Wformat]
      
      -> As defined in the printk-formats use %zx for size_t variables
      Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b4fcf48a
  2. 07 Feb, 2013 2 commits
  3. 06 Feb, 2013 30 commits