<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/net/9p/trans_rdma.c, branch v3.0.7</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband</title>
<updated>2011-05-26T19:13:57+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2011-05-26T19:13:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=4c171acc20794af16a27da25e11ec4e9cad5d9fa'/>
<id>4c171acc20794af16a27da25e11ec4e9cad5d9fa</id>
<content type='text'>
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
  RDMA/cma: Save PID of ID's owner
  RDMA/cma: Add support for netlink statistics export
  RDMA/cma: Pass QP type into rdma_create_id()
  RDMA: Update exported headers list
  RDMA/cma: Export enum cma_state in &lt;rdma/rdma_cm.h&gt;
  RDMA/nes: Add a check for strict_strtoul()
  RDMA/cxgb3: Don't post zero-byte read if endpoint is going away
  RDMA/cxgb4: Use completion objects for event blocking
  IB/srp: Fix integer -&gt; pointer cast warnings
  IB: Add devnode methods to cm_class and umad_class
  IB/mad: Return EPROTONOSUPPORT when an RDMA device lacks the QP required
  IB/uverbs: Add devnode method to set path/mode
  RDMA/ucma: Add .nodename/.mode to tell userspace where to create device node
  RDMA: Add netlink infrastructure
  RDMA: Add error handling to ib_core_init()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
  RDMA/cma: Save PID of ID's owner
  RDMA/cma: Add support for netlink statistics export
  RDMA/cma: Pass QP type into rdma_create_id()
  RDMA: Update exported headers list
  RDMA/cma: Export enum cma_state in &lt;rdma/rdma_cm.h&gt;
  RDMA/nes: Add a check for strict_strtoul()
  RDMA/cxgb3: Don't post zero-byte read if endpoint is going away
  RDMA/cxgb4: Use completion objects for event blocking
  IB/srp: Fix integer -&gt; pointer cast warnings
  IB: Add devnode methods to cm_class and umad_class
  IB/mad: Return EPROTONOSUPPORT when an RDMA device lacks the QP required
  IB/uverbs: Add devnode method to set path/mode
  RDMA/ucma: Add .nodename/.mode to tell userspace where to create device node
  RDMA: Add netlink infrastructure
  RDMA: Add error handling to ib_core_init()
</pre>
</div>
</content>
</entry>
<entry>
<title>RDMA/cma: Pass QP type into rdma_create_id()</title>
<updated>2011-05-25T20:46:23+00:00</updated>
<author>
<name>Sean Hefty</name>
<email>sean.hefty@intel.com</email>
</author>
<published>2010-04-01T17:08:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=b26f9b9949013fec31b23c426fc463164ae08891'/>
<id>b26f9b9949013fec31b23c426fc463164ae08891</id>
<content type='text'>
The RDMA CM currently infers the QP type from the port space selected
by the user.  In the future (eg with RDMA_PS_IB or XRC), there may not
be a 1-1 correspondence between port space and QP type.  For netlink
export of RDMA CM state, we want to export the QP type to userspace,
so it is cleaner to explicitly associate a QP type to an ID.

Modify rdma_create_id() to allow the user to specify the QP type, and
use it to make our selections of datagram versus connected mode.

Signed-off-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The RDMA CM currently infers the QP type from the port space selected
by the user.  In the future (eg with RDMA_PS_IB or XRC), there may not
be a 1-1 correspondence between port space and QP type.  For netlink
export of RDMA CM state, we want to export the QP type to userspace,
so it is cleaner to explicitly associate a QP type to an ID.

Modify rdma_create_id() to allow the user to specify the QP type, and
use it to make our selections of datagram versus connected mode.

Signed-off-by: Sean Hefty &lt;sean.hefty@intel.com&gt;
Signed-off-by: Roland Dreier &lt;roland@purestorage.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>9p: Kill unused variable 'ret' in trans_rdma.c:parse_opts()</title>
<updated>2011-05-19T21:45:29+00:00</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2011-05-19T21:45:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5b5ed8afe48ca6916daabf9822e7a19fc19fdab4'/>
<id>5b5ed8afe48ca6916daabf9822e7a19fc19fdab4</id>
<content type='text'>
Probably just cut and pasted from the other parse_opts() implementations
in the 9p sources.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Probably just cut and pasted from the other parse_opts() implementations
in the 9p sources.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/9p: Convert the in the 9p rpc call path to GFP_NOFS</title>
<updated>2011-03-22T20:43:35+00:00</updated>
<author>
<name>Aneesh Kumar K.V</name>
<email>aneesh.kumar@linux.vnet.ibm.com</email>
</author>
<published>2011-03-08T11:09:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=eeff66ef6e33925f615d49e6c846263e342ab60e'/>
<id>eeff66ef6e33925f615d49e6c846263e342ab60e</id>
<content type='text'>
Without this we can cause reclaim allocation in writepage.

[ 3433.448430] =================================
[ 3433.449117] [ INFO: inconsistent lock state ]
[ 3433.449117] 2.6.38-rc5+ #84
[ 3433.449117] ---------------------------------
[ 3433.449117] inconsistent {RECLAIM_FS-ON-W} -&gt; {IN-RECLAIM_FS-R} usage.
[ 3433.449117] kswapd0/505 [HC0[0]:SC0[0]:HE1:SE1] takes:
[ 3433.449117]  (iprune_sem){+++++-}, at: [&lt;ffffffff810ebbab&gt;] shrink_icache_memory+0x45/0x2b1
[ 3433.449117] {RECLAIM_FS-ON-W} state was registered at:
[ 3433.449117]   [&lt;ffffffff8107fe5f&gt;] mark_held_locks+0x52/0x70
[ 3433.449117]   [&lt;ffffffff8107ff02&gt;] lockdep_trace_alloc+0x85/0x9f
[ 3433.449117]   [&lt;ffffffff810d353d&gt;] slab_pre_alloc_hook+0x18/0x3c
[ 3433.449117]   [&lt;ffffffff810d3fd5&gt;] kmem_cache_alloc+0x23/0xa2
[ 3433.449117]   [&lt;ffffffff8127be77&gt;] idr_pre_get+0x2d/0x6f
[ 3433.449117]   [&lt;ffffffff815434eb&gt;] p9_idpool_get+0x30/0xae
[ 3433.449117]   [&lt;ffffffff81540123&gt;] p9_client_rpc+0xd7/0x9b0
[ 3433.449117]   [&lt;ffffffff815427b0&gt;] p9_client_clunk+0x88/0xdb
[ 3433.449117]   [&lt;ffffffff811d56e5&gt;] v9fs_evict_inode+0x3c/0x48
[ 3433.449117]   [&lt;ffffffff810eb511&gt;] evict+0x1f/0x87
[ 3433.449117]   [&lt;ffffffff810eb5c0&gt;] dispose_list+0x47/0xe3
[ 3433.449117]   [&lt;ffffffff810eb8da&gt;] evict_inodes+0x138/0x14f
[ 3433.449117]   [&lt;ffffffff810d90e2&gt;] generic_shutdown_super+0x57/0xe8
[ 3433.449117]   [&lt;ffffffff810d91e8&gt;] kill_anon_super+0x11/0x50
[ 3433.449117]   [&lt;ffffffff811d4951&gt;] v9fs_kill_super+0x49/0xab
[ 3433.449117]   [&lt;ffffffff810d926e&gt;] deactivate_locked_super+0x21/0x46
[ 3433.449117]   [&lt;ffffffff810d9e84&gt;] deactivate_super+0x40/0x44
[ 3433.449117]   [&lt;ffffffff810ef848&gt;] mntput_no_expire+0x100/0x109
[ 3433.449117]   [&lt;ffffffff810f0aeb&gt;] sys_umount+0x2f1/0x31c
[ 3433.449117]   [&lt;ffffffff8102c87b&gt;] system_call_fastpath+0x16/0x1b
[ 3433.449117] irq event stamp: 192941
[ 3433.449117] hardirqs last  enabled at (192941): [&lt;ffffffff81568dcf&gt;] _raw_spin_unlock_irq+0x2b/0x30
[ 3433.449117] hardirqs last disabled at (192940): [&lt;ffffffff810b5f97&gt;] shrink_inactive_list+0x290/0x2f5
[ 3433.449117] softirqs last  enabled at (188470): [&lt;ffffffff8105fd65&gt;] __do_softirq+0x133/0x152
[ 3433.449117] softirqs last disabled at (188455): [&lt;ffffffff8102d7cc&gt;] call_softirq+0x1c/0x28
[ 3433.449117]
[ 3433.449117] other info that might help us debug this:
[ 3433.449117] 1 lock held by kswapd0/505:
[ 3433.449117]  #0:  (shrinker_rwsem){++++..}, at: [&lt;ffffffff810b52e2&gt;] shrink_slab+0x38/0x15f
[ 3433.449117]
[ 3433.449117] stack backtrace:
[ 3433.449117] Pid: 505, comm: kswapd0 Not tainted 2.6.38-rc5+ #84
[ 3433.449117] Call Trace:
[ 3433.449117]  [&lt;ffffffff8107fbce&gt;] ? valid_state+0x17e/0x191
[ 3433.449117]  [&lt;ffffffff81036896&gt;] ? save_stack_trace+0x28/0x45
[ 3433.449117]  [&lt;ffffffff81080426&gt;] ? check_usage_forwards+0x0/0x87
[ 3433.449117]  [&lt;ffffffff8107fcf4&gt;] ? mark_lock+0x113/0x22c
[ 3433.449117]  [&lt;ffffffff8108105f&gt;] ? __lock_acquire+0x37a/0xcf7
[ 3433.449117]  [&lt;ffffffff8107fc0e&gt;] ? mark_lock+0x2d/0x22c
[ 3433.449117]  [&lt;ffffffff81081077&gt;] ? __lock_acquire+0x392/0xcf7
[ 3433.449117]  [&lt;ffffffff810b14d2&gt;] ? determine_dirtyable_memory+0x15/0x28
[ 3433.449117]  [&lt;ffffffff81081a33&gt;] ? lock_acquire+0x57/0x6d
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff81567d85&gt;] ? down_read+0x47/0x5c
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff810b5385&gt;] ? shrink_slab+0xdb/0x15f
[ 3433.449117]  [&lt;ffffffff810b69bc&gt;] ? kswapd+0x574/0x96a
[ 3433.449117]  [&lt;ffffffff810b6448&gt;] ? kswapd+0x0/0x96a
[ 3433.449117]  [&lt;ffffffff810714e2&gt;] ? kthread+0x7d/0x85
[ 3433.449117]  [&lt;ffffffff8102d6d4&gt;] ? kernel_thread_helper+0x4/0x10
[ 3433.449117]  [&lt;ffffffff81569200&gt;] ? restore_args+0x0/0x30
[ 3433.449117]  [&lt;ffffffff81071465&gt;] ? kthread+0x0/0x85
[ 3433.449117]  [&lt;ffffffff8102d6d0&gt;] ? kernel_thread_helper+0x0/0x10

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without this we can cause reclaim allocation in writepage.

[ 3433.448430] =================================
[ 3433.449117] [ INFO: inconsistent lock state ]
[ 3433.449117] 2.6.38-rc5+ #84
[ 3433.449117] ---------------------------------
[ 3433.449117] inconsistent {RECLAIM_FS-ON-W} -&gt; {IN-RECLAIM_FS-R} usage.
[ 3433.449117] kswapd0/505 [HC0[0]:SC0[0]:HE1:SE1] takes:
[ 3433.449117]  (iprune_sem){+++++-}, at: [&lt;ffffffff810ebbab&gt;] shrink_icache_memory+0x45/0x2b1
[ 3433.449117] {RECLAIM_FS-ON-W} state was registered at:
[ 3433.449117]   [&lt;ffffffff8107fe5f&gt;] mark_held_locks+0x52/0x70
[ 3433.449117]   [&lt;ffffffff8107ff02&gt;] lockdep_trace_alloc+0x85/0x9f
[ 3433.449117]   [&lt;ffffffff810d353d&gt;] slab_pre_alloc_hook+0x18/0x3c
[ 3433.449117]   [&lt;ffffffff810d3fd5&gt;] kmem_cache_alloc+0x23/0xa2
[ 3433.449117]   [&lt;ffffffff8127be77&gt;] idr_pre_get+0x2d/0x6f
[ 3433.449117]   [&lt;ffffffff815434eb&gt;] p9_idpool_get+0x30/0xae
[ 3433.449117]   [&lt;ffffffff81540123&gt;] p9_client_rpc+0xd7/0x9b0
[ 3433.449117]   [&lt;ffffffff815427b0&gt;] p9_client_clunk+0x88/0xdb
[ 3433.449117]   [&lt;ffffffff811d56e5&gt;] v9fs_evict_inode+0x3c/0x48
[ 3433.449117]   [&lt;ffffffff810eb511&gt;] evict+0x1f/0x87
[ 3433.449117]   [&lt;ffffffff810eb5c0&gt;] dispose_list+0x47/0xe3
[ 3433.449117]   [&lt;ffffffff810eb8da&gt;] evict_inodes+0x138/0x14f
[ 3433.449117]   [&lt;ffffffff810d90e2&gt;] generic_shutdown_super+0x57/0xe8
[ 3433.449117]   [&lt;ffffffff810d91e8&gt;] kill_anon_super+0x11/0x50
[ 3433.449117]   [&lt;ffffffff811d4951&gt;] v9fs_kill_super+0x49/0xab
[ 3433.449117]   [&lt;ffffffff810d926e&gt;] deactivate_locked_super+0x21/0x46
[ 3433.449117]   [&lt;ffffffff810d9e84&gt;] deactivate_super+0x40/0x44
[ 3433.449117]   [&lt;ffffffff810ef848&gt;] mntput_no_expire+0x100/0x109
[ 3433.449117]   [&lt;ffffffff810f0aeb&gt;] sys_umount+0x2f1/0x31c
[ 3433.449117]   [&lt;ffffffff8102c87b&gt;] system_call_fastpath+0x16/0x1b
[ 3433.449117] irq event stamp: 192941
[ 3433.449117] hardirqs last  enabled at (192941): [&lt;ffffffff81568dcf&gt;] _raw_spin_unlock_irq+0x2b/0x30
[ 3433.449117] hardirqs last disabled at (192940): [&lt;ffffffff810b5f97&gt;] shrink_inactive_list+0x290/0x2f5
[ 3433.449117] softirqs last  enabled at (188470): [&lt;ffffffff8105fd65&gt;] __do_softirq+0x133/0x152
[ 3433.449117] softirqs last disabled at (188455): [&lt;ffffffff8102d7cc&gt;] call_softirq+0x1c/0x28
[ 3433.449117]
[ 3433.449117] other info that might help us debug this:
[ 3433.449117] 1 lock held by kswapd0/505:
[ 3433.449117]  #0:  (shrinker_rwsem){++++..}, at: [&lt;ffffffff810b52e2&gt;] shrink_slab+0x38/0x15f
[ 3433.449117]
[ 3433.449117] stack backtrace:
[ 3433.449117] Pid: 505, comm: kswapd0 Not tainted 2.6.38-rc5+ #84
[ 3433.449117] Call Trace:
[ 3433.449117]  [&lt;ffffffff8107fbce&gt;] ? valid_state+0x17e/0x191
[ 3433.449117]  [&lt;ffffffff81036896&gt;] ? save_stack_trace+0x28/0x45
[ 3433.449117]  [&lt;ffffffff81080426&gt;] ? check_usage_forwards+0x0/0x87
[ 3433.449117]  [&lt;ffffffff8107fcf4&gt;] ? mark_lock+0x113/0x22c
[ 3433.449117]  [&lt;ffffffff8108105f&gt;] ? __lock_acquire+0x37a/0xcf7
[ 3433.449117]  [&lt;ffffffff8107fc0e&gt;] ? mark_lock+0x2d/0x22c
[ 3433.449117]  [&lt;ffffffff81081077&gt;] ? __lock_acquire+0x392/0xcf7
[ 3433.449117]  [&lt;ffffffff810b14d2&gt;] ? determine_dirtyable_memory+0x15/0x28
[ 3433.449117]  [&lt;ffffffff81081a33&gt;] ? lock_acquire+0x57/0x6d
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff81567d85&gt;] ? down_read+0x47/0x5c
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff810ebbab&gt;] ? shrink_icache_memory+0x45/0x2b1
[ 3433.449117]  [&lt;ffffffff810b5385&gt;] ? shrink_slab+0xdb/0x15f
[ 3433.449117]  [&lt;ffffffff810b69bc&gt;] ? kswapd+0x574/0x96a
[ 3433.449117]  [&lt;ffffffff810b6448&gt;] ? kswapd+0x0/0x96a
[ 3433.449117]  [&lt;ffffffff810714e2&gt;] ? kthread+0x7d/0x85
[ 3433.449117]  [&lt;ffffffff8102d6d4&gt;] ? kernel_thread_helper+0x4/0x10
[ 3433.449117]  [&lt;ffffffff81569200&gt;] ? restore_args+0x0/0x30
[ 3433.449117]  [&lt;ffffffff81071465&gt;] ? kthread+0x0/0x85
[ 3433.449117]  [&lt;ffffffff8102d6d0&gt;] ? kernel_thread_helper+0x0/0x10

Signed-off-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: cleanup unused macros in net directory</title>
<updated>2011-01-20T07:20:04+00:00</updated>
<author>
<name>Shan Wei</name>
<email>shanwei@cn.fujitsu.com</email>
</author>
<published>2011-01-13T22:19:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=441c793a56502638d45d5da2195056d686147370'/>
<id>441c793a56502638d45d5da2195056d686147370</id>
<content type='text'>
Clean up some unused macros in net/*.
1. be left for code change. e.g. PGV_FROM_VMALLOC, PGV_FROM_VMALLOC, KMEM_SAFETYZONE.
2. never be used since introduced to kernel.
   e.g. P9_RDMA_MAX_SGE, UTIL_CTRL_PKT_SIZE.

Signed-off-by: Shan Wei &lt;shanwei@cn.fujitsu.com&gt;
Acked-by: Sjur Braendeland &lt;sjur.brandeland@stericsson.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clean up some unused macros in net/*.
1. be left for code change. e.g. PGV_FROM_VMALLOC, PGV_FROM_VMALLOC, KMEM_SAFETYZONE.
2. never be used since introduced to kernel.
   e.g. P9_RDMA_MAX_SGE, UTIL_CTRL_PKT_SIZE.

Signed-off-by: Shan Wei &lt;shanwei@cn.fujitsu.com&gt;
Acked-by: Sjur Braendeland &lt;sjur.brandeland@stericsson.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net/9p: fix memory handling/allocation in rdma_request()</title>
<updated>2010-09-27T12:52:50+00:00</updated>
<author>
<name>Davidlohr Bueso</name>
<email>dave@gnu.org</email>
</author>
<published>2010-09-13T15:53:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=1d6400c7c9cfd38976b25d55b357200ad3ff1be9'/>
<id>1d6400c7c9cfd38976b25d55b357200ad3ff1be9</id>
<content type='text'>
Return -ENOMEM when erroring on kmalloc and fix memory leaks when returning on error.

Signed-off-by: Davidlohr Bueso &lt;dave@gnu.org&gt;
Reviewed-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Return -ENOMEM when erroring on kmalloc and fix memory leaks when returning on error.

Signed-off-by: Davidlohr Bueso &lt;dave@gnu.org&gt;
Reviewed-by: Aneesh Kumar K.V &lt;aneesh.kumar@linux.vnet.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>net: Remove unnecessary returns from void function()s</title>
<updated>2010-05-18T06:23:14+00:00</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2010-05-18T06:08:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=3fa21e07e6acefa31f974d57fba2b6920a7ebd1a'/>
<id>3fa21e07e6acefa31f974d57fba2b6920a7ebd1a</id>
<content type='text'>
This patch removes from net/ (but not any netfilter files)
all the unnecessary return; statements that precede the
last closing brace of void functions.

It does not remove the returns that are immediately
preceded by a label as gcc doesn't like that.

Done via:
$ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
  xargs perl -i -e 'local $/ ; while (&lt;&gt;) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch removes from net/ (but not any netfilter files)
all the unnecessary return; statements that precede the
last closing brace of void functions.

It does not remove the returns that are immediately
preceded by a label as gcc doesn't like that.

Done via:
$ grep -rP --include=*.[ch] -l "return;\n}" net/ | \
  xargs perl -i -e 'local $/ ; while (&lt;&gt;) { s/\n[ \t\n]+return;\n}/\n}/g; print; }'

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32+00:00</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2010-03-24T08:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
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 -&gt; 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.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

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
  file.

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
   files.

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
   necessary.

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: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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 -&gt; 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.

  http://userweb.kernel.org/~tj/misc/slabh-sweep.py

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
  file.

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
   files.

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
   necessary.

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: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>9p: fix option parsing</title>
<updated>2010-02-08T22:23:23+00:00</updated>
<author>
<name>Eric Van Hensbergen</name>
<email>ericvh@gmail.com</email>
</author>
<published>2010-02-08T22:23:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d8c8a9e36560e9ff4c99279d64ce5dd0e1a33fa6'/>
<id>d8c8a9e36560e9ff4c99279d64ce5dd0e1a33fa6</id>
<content type='text'>
Options pointer is being moved before calling kfree() which seems
to cause problems.  This uses a separate pointer to track and free
original allocation.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;w

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Options pointer is being moved before calling kfree() which seems
to cause problems.  This uses a separate pointer to track and free
original allocation.

Signed-off-by: Venkateswararao Jujjuri &lt;jvrao@us.ibm.com&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;w

</pre>
</div>
</content>
</entry>
<entry>
<title>9p: minor comment fixes</title>
<updated>2009-08-17T21:27:57+00:00</updated>
<author>
<name>Abhishek Kulkarni</name>
<email>adkulkar@umail.iu.edu</email>
</author>
<published>2009-07-19T19:41:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=0e15597ebfe00e28857185f46aba00f400480ffe'/>
<id>0e15597ebfe00e28857185f46aba00f400480ffe</id>
<content type='text'>
Fix the comments -- mostly the improper and/or missing descriptions
of function parameters.

Signed-off-by: Abhishek Kulkarni &lt;adkulkar@umail.iu.edu&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the comments -- mostly the improper and/or missing descriptions
of function parameters.

Signed-off-by: Abhishek Kulkarni &lt;adkulkar@umail.iu.edu&gt;
Signed-off-by: Eric Van Hensbergen &lt;ericvh@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
