1. 19 3月, 2013 1 次提交
  2. 05 2月, 2013 1 次提交
  3. 19 1月, 2013 1 次提交
    • J
      tty: Added a CONFIG_TTY option to allow removal of TTY · 4f73bc4d
      Joe Millenbach 提交于
      The option allows you to remove TTY and compile without errors. This
      saves space on systems that won't support TTY interfaces anyway.
      bloat-o-meter output is below.
      
      The bulk of this patch consists of Kconfig changes adding "depends on
      TTY" to various serial devices and similar drivers that require the TTY
      layer.  Ideally, these dependencies would occur on a common intermediate
      symbol such as SERIO, but most drivers "select SERIO" rather than
      "depends on SERIO", and "select" does not respect dependencies.
      
      bloat-o-meter output comparing our previous minimal to new minimal by
      removing TTY.  The list is filtered to not show removed entries with awk
      '$3 != "-"' as the list was very long.
      
      add/remove: 0/226 grow/shrink: 2/14 up/down: 6/-35356 (-35350)
      function                                     old     new   delta
      chr_dev_init                                 166     170      +4
      allow_signal                                  80      82      +2
      static.__warned                              143     142      -1
      disallow_signal                               63      62      -1
      __set_special_pids                            95      94      -1
      unregister_console                           126     121      -5
      start_kernel                                 546     541      -5
      register_console                             593     588      -5
      copy_from_user                                45      40      -5
      sys_setsid                                   128     120      -8
      sys_vhangup                                   32      19     -13
      do_exit                                     1543    1526     -17
      bitmap_zero                                   60      40     -20
      arch_local_irq_save                          137     117     -20
      release_task                                 674     652     -22
      static.spin_unlock_irqrestore                308     260     -48
      Signed-off-by: NJoe Millenbach <jmillenbach@gmail.com>
      Reviewed-by: NJamey Sharp <jamey@minilop.net>
      Reviewed-by: NJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      4f73bc4d
  4. 16 1月, 2013 1 次提交
  5. 25 7月, 2012 1 次提交
  6. 29 6月, 2012 1 次提交
  7. 26 6月, 2012 9 次提交
  8. 22 4月, 2012 1 次提交
    • A
      caif: include linux/io.h · 6e4a7629
      Arnd Bergmann 提交于
      The caif_shmcore requires io.h in order to use ioremap, so include that
      explicitly to compile in all configurations.
      
      Also add a note about the use of ioremap(), which is not a proper way
      to map a DMA buffer into kernel space. It's not completely clear what
      the intention is for using ioremap, but it is clear that the result
      of ioremap must not simply be accessed using kernel pointers but
      should use readl/writel or memcopy_{to,from}io. Assigning the result
      of ioremap to a regular pointer that can also be set to something
      else is not ok.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMathieu Poirier <mathieu.poirier@linaro.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6e4a7629
  9. 13 4月, 2012 5 次提交
  10. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  11. 07 3月, 2012 1 次提交
  12. 05 2月, 2012 1 次提交
  13. 20 12月, 2011 1 次提交
  14. 07 12月, 2011 4 次提交
  15. 19 10月, 2011 8 次提交
  16. 29 8月, 2011 1 次提交
    • J
      caif: Remove OOM messages, use kzalloc · 7ac2ed0c
      Joe Perches 提交于
      Remove per site OOM messages because they duplicate
      the generic mm subsystem OOM message.
      
      Use kzalloc instead of kmalloc/memset
      when next to the OOM message removals.
      
      Reduces object size (allyesconfig ~2%)
      
      $ size -t drivers/net/caif/built-in.o.old net/caif/built-in.o.old
         text	   data	    bss	    dec	    hex	filename
        32297	    700	   8224	  41221	   a105	drivers/net/caif/built-in.o.old
        72159	   1317	  20552	  94028	  16f4c	net/caif/built-in.o.old
       104456	   2017	  28776	 135249	  21051	(TOTALS)
      $ size -t drivers/net/caif/built-in.o.new net/caif/built-in.o.new
         text	   data	    bss	    dec	    hex	filename
        31975	    700	   8184	  40859	   9f9b	drivers/net/caif/built-in.o.new
        70748	   1317	  20152	  92217	  16839	net/caif/built-in.o.new
       102723	   2017	  28336	 133076	  207d4	(TOTALS)
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7ac2ed0c
  17. 07 7月, 2011 1 次提交
  18. 29 6月, 2011 1 次提交