[PATCH] Staging: slicoss: Fix smatch warning in slicoss.c

2014-03-27 Thread Monam Agarwal
This patch fixes following smatch warning: slicoss/slicoss.c:1429 slic_cmdq_addcmdpage() error: we previously assumed 'pslic_handle' could be null Signed-off-by: Monam Agarwal --- drivers/staging/slicoss/slicoss.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH] drivers/crypto: Use RCU_INIT_POINTER(x, NULL) in nx/nx-842.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/crypto/nx/nx-842.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 1e5481d..c4fcbf4

[PATCH] drivers/crypto: Use RCU_INIT_POINTER(x, NULL) in nx/nx-842.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/crypto/nx/nx-842.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 1e5481d..c4fcbf4

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in scan.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/scan.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 836f500..f9f078b 100644 --- a/net

[PATCH] net/openvswitch: Use with RCU_INIT_POINTER(x, NULL) in vport-gre.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/openvswitch/vport-gre.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/openvswitch/vport-gre.c b/net/openvswitch/vport-gre.c index a3d6951..a0da2dd

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in util.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/util.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 275c94f..7601657 100644 --- a/net/mac80211

[PATCH] virt/kvm: Use RCU_INIT_POINTER(x, NULL) in eventfd.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- virt/kvm/eventfd.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index abe4d60..354a2af 100644 --- a/virt/kvm

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in mesh.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/mesh.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index f70e9cd..387f61c 100644 --- a/net

[PATCH] net/wireless: Use RCU_INIT_POINTER(x, NULL) in reg.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/wireless/reg.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 90b82e0..4dc08cc 100644 --- a/net/wireless

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in ibss.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/ibss.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index e458ca0..cb262c4 100644 --- a/net/mac80211

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in iface.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/iface.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index b8d331e..4826c8f 100644 --- a

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in cfg.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/cfg.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 1acb291..e92aeea 100644 --- a/net/mac80211

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in chan.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/chan.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/chan.c b/net/mac80211/chan.c index bd1fd8e..b297bd3 100644 --- a/net/mac80211

[PATCH] net/mac80211: Use RCU_INIT_POINTER(x, NULL) in debugfs.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/mac80211/debugfs.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index fa16e54..0e963bc 100644 --- a/net

[PATCH] net/core: Use RCU_INIT_POINTER(x, NULL) in netpoll.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/core/netpoll.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 7291dde..41c4e9c 100644 --- a/net/core

[PATCH] lib: Use RCU_INIT_POINTER(x, NULL) in idr.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- lib/idr.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/idr.c b/lib/idr.c index bfe4db4..f804fbe 100644 --- a/lib/idr.c +++ b/lib/idr.c @@ -548,7

[PATCH] net/bridge: Use RCU_INIT_POINTER(x, NULL) in br_vlan.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- net/bridge/br_vlan.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/bridge/br_vlan.c b/net/bridge/br_vlan.c index 8249ca7..5d5b101 100644 --- a

[PATCH] kernel: Use RCU_INIT_POINTER(x, NULL) in tracepoint.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/tracepoint.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c index 031cc56..72dfa96 100644 --- a/kernel

[PATCH] kernel/trace: Use RCU_INIT_POINTER(x, NULL) in trace_syscalls.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/trace/trace_syscalls.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 759d5e0

[PATCH] kernel/sched: Use RCU_INIT_POINTER(x, NULL) in fair.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/sched/fair.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 9b4c4f3..13b66aa 100644 --- a/kernel/sched

[PATCH 30/47] kernel: Use RCU_INIT_POINTER(x, NULL) in events/core.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/events/core.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/events/core.c b/kernel/events/core.c index fa0b2d4..8c22758 100644 --- a

[PATCH] kernel/events: Use RCU_INIT_POINTER(x, NULL) in callchain.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/events/callchain.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/events/callchain.c b/kernel/events/callchain.c index 97b67df..f2a88de 100644

[PATCH] kernel: Use RCU_INIT_POINTER(x, NULL) in cgroup.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/cgroup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 105f273..3462f62 100644 --- a/kernel/cgroup.c +++ b

[PATCH] kernel: Use RCU_INIT_POINTER(x, NULL) in audit.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- kernel/audit.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/audit.c b/kernel/audit.c index 3392d3e..bc240ba 100644 --- a/kernel/audit.c +++ b/kernel

[PATCH] fs: Use RCU_INIT_POINTER(x, NULL) in proc/inode.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- fs/proc/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 124fc43..28c21d9 100644 --- a/fs/proc/inode.c +++ b/fs

[PATCH] fs: Use RCU_INIT_POINTER(x, NULL) in file.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- fs/file.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/file.c b/fs/file.c index 60a45e9..f87f265 100644 --- a/fs/file.c +++ b/fs/file.c @@ -499,7

[PATCH] fs: Use RCU_INIT_POINTER(x, NULL) in nfs/delegation.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- fs/nfs/delegation.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/delegation.c b/fs/nfs/delegation.c index 5d8ccec..349e63b 100644 --- a/fs/nfs

[PATCH] fs: Use RCU_INIT_POINTER(x, NULL) in aio.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- fs/aio.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/aio.c b/fs/aio.c index 062a5f6..c3d3eb6 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -775,7 +775,7

[PATCH] fs: Use RCU_INIT_POINTER(x, NULL) in afs/security.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- fs/afs/security.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/security.c b/fs/afs/security.c index 8d01042..42f7cf3 100644 --- a/fs/afs/security.c

[PATCH] fs: Use RCU_INIT_POINTER(x, NULL) in afs/inode.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- fs/afs/inode.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/afs/inode.c b/fs/afs/inode.c index ce25d75..7c09dfe 100644 --- a/fs/afs/inode.c +++ b/fs/afs

[PATCH] drivers/target: Use RCU_INIT_POINTER(x, NULL) in tcm_fc/tfc_sess.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/target/tcm_fc/tfc_sess.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index

[PATCH] drivers/staging: Use RCU_INIT_POINTER(x, NULL) in fwserial/fwserial.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/staging/fwserial/fwserial.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fwserial/fwserial.c b/drivers/staging/fwserial

[PATCH] drivers/scsi: Use RCU_INIT_POINTER(x, NULL) in libfc/fc_libfc.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/scsi/libfc/fc_libfc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/libfc/fc_libfc.c b/drivers/scsi/libfc/fc_libfc.c index 8d65a51a

[PATCH] drivers/net/wireless: Use RCU_INIT_POINTER(x, NULL) in iwlwifi/mvm/sta.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/net/wireless/iwlwifi/mvm/sta.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/mvm/sta.c b/drivers/net/wireless

[PATCH] drivers/net: Use RCU_INIT_POINTER(x, NULL) in tun.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/net/tun.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 26f8635..ee328ba 100644 --- a/drivers/net

[PATCH] drivers/net: Use RCU_INIT_POINTER(x, NULL) in bonding/bond_options.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/net/bonding/bond_options.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/bond_options.c b/drivers/net/bonding/bond_options.c

[PATCH] drivers/md: Use RCU_INIT_POINTER(x, NULL) in dm.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/md/dm.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 8c53b09..804412a 100644 --- a/drivers/md/dm.c +++ b

[PATCH] drivers/input: Use RCU_INIT_POINTER(x, NULL) in input.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/input/input.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index 1c4c0db..f9db5ea 100644 --- a/drivers

[PATCH] drivers/input: Use RCU_INIT_POINTER(x, NULL) in evdev.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/input/evdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index a06e125..fffa107 100644 --- a/drivers

[PATCH] drivers/infiniband: Use RCU_INIT_POINTER(x, NULL) in ulp/ipoib/ipoib_main.c

2014-03-23 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/infiniband/ulp/ipoib/ipoib_main.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp

[PATCH] drivers/crypto: Use RCU_INIT_POINTER(x, NULL) in nx/nx-842.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/crypto/nx/nx-842.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 1e5481d..c4fcbf4

[PATCH] drivers/infiniband: Use RCU_INIT_POINTER(x, NULL) in hw/qib/qib_qp.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/infiniband/hw/qib/qib_qp.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_qp.c b/drivers/infiniband/hw/qib

[PATCH] drivers/infiniband: Use RCU_INIT_POINTER(x, NULL) in hw/qib/qib_keys.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/infiniband/hw/qib/qib_keys.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_keys.c b/drivers/infiniband/hw/qib

[PATCH] drivers/crypto: Use RCU_INIT_POINTER(x, NULL) in nx/nx-842.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/crypto/nx/nx-842.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/nx/nx-842.c b/drivers/crypto/nx/nx-842.c index 1e5481d..c4fcbf4

[PATCH] drivers/block: Use RCU_INIT_POINTER(x, NULL) in drbd/drbd_state.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- drivers/block/drbd/drbd_state.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/drbd/drbd_state.c b/drivers/block/drbd/drbd_state.c index 216d47b

[PATCH] block: Use RCU_INIT_POINTER(x, NULL) in partition-generic.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- block/partition-generic.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/partition-generic.c b/block/partition-generic.c index 789cdea..f1ef057

[PATCH] block: Use RCU_INIT_POINTER(x, NULL) in genhd.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- block/genhd.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/genhd.c b/block/genhd.c index 791f419..3aec057 100644 --- a/block/genhd.c +++ b/block

[PATCH] block: Use RCU_INIT_POINTER(x, NULL) in blk-ioc.c

2014-03-22 Thread Monam Agarwal
, rcu_assign_pointer(p, NULL) can be safely converted to RCU_INIT_POINTER(p, NULL) Signed-off-by: Monam Agarwal --- block/blk-ioc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-ioc.c b/block/blk-ioc.c index 242df01..6585186 100644 --- a/block/blk-ioc.c +++ b/block/blk

[PATCH] block: Use RCU_INIT_POINTER(x, NULL) in blk-cgroup.c

2014-03-22 Thread Monam Agarwal
, NULL). Signed-off-by: Monam Agarwal --- block/blk-cgroup.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-cgroup.c b/block/blk-cgroup.c index 4e491d9..fc62c47 100644 --- a/block/blk-cgroup.c +++ b/block/blk-cgroup.c @@ -337,7 +337,7 @@ static void blkg_destroy

[PATCH] arch/x86: Use RCU_INIT_POINTER(x, NULL) in kvm/vmx.c

2014-03-21 Thread Monam Agarwal
Here rcu_assign_pointer() is ensuring that the initialization of a structure is carried out before storing a pointer to that structure. So, rcu_assign_pointer(p, NULL) can always safely be converted to RCU_INIT_POINTER(p, NULL). Signed-off-by: Monam Agarwal --- arch/x86/kvm/vmx.c |2

[PATCH] arch/powerpc: Use RCU_INIT_POINTER(x, NULL) in platforms/cell/spu_syscalls.c

2014-03-21 Thread Monam Agarwal
Here rcu_assign_pointer() is ensuring that the initialization of a structure is carried out before storing a pointer to that structure. So, rcu_assign_pointer(p, NULL) can always safely be converted to RCU_INIT_POINTER(p, NULL). Signed-off-by: Monam Agarwal --- arch/powerpc/platforms/cell

[PATCH 9/9] vhost: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in test.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/vhost/test.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index fc9a1d7..82b3744 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c @@ -128,7 +128,7 @@ static void

[PATCH 6/9] scsi: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/scsi/libfc/fc_libfc.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/scsi/libfc/fc_libfc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/libfc/fc_libfc.c b/drivers/scsi/libfc/fc_libfc.c index b773512..ee74eec 100644 --- a/drivers/scsi/libfc/fc_libfc.c +++ b/drivers/scsi/libfc

[PATCH 8/9] vhost: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/vhost/net.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/vhost/net.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 882a51f..b243e06 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -556,7 +556,7 @@ static struct socket

[PATCH 7/9] target: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/target/tcm_fc/tfc_sess.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/target/tcm_fc/tfc_sess.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 3269213..95fb826 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target

[PATCH 5/9] net/wireless: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/wireless/ath/carl9170/main.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/wireless/ath/carl9170/main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index f06e069..5518592 100644 --- a/drivers/net

[PATCH 3/9] net: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/macvtap.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/macvtap.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 1b7082d..7c88d13 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -145,8 +145,8 @@ static

[PATCH 4/9] net: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/ppp/pptp.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/ppp/pptp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c index 89f829f..ede899c 100644 --- a/drivers/net/ppp/pptp.c +++ b/drivers/net/ppp/pptp.c @@ -162,7 +162,7 @@ static void

[PATCH 2/9] net/ethernet: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c index da5a5d9..a7ec886 100644

[PATCH 1/9] net/ethernet: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/ethernet/broadcom/bnx2.c

2014-03-20 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/ethernet/broadcom/bnx2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index 965c723..5eab730 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b

[PATCH 0/9] Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x,NULL)

2014-03-20 Thread Monam Agarwal
This patchset uses following coccinelle script to replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x,NULL) @@ expression E; @@ - rcu_assign_pointer( + RCU_INIT_POINTER( E, NULL) Monam Agarwal (9): net/ethernet: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in

[PATCH 9/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/vhost/test.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index fc9a1d7..82b3744 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c @@ -128,7 +128,7 @@ static void

[PATCH 8/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/vhost/net.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 882a51f..b243e06 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -556,7 +556,7 @@ static struct socket

[PATCH 7/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/target/tcm_fc/tfc_sess.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 3269213..95fb826 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target

[PATCH 6/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/scsi/libfc/fc_libfc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/libfc/fc_libfc.c b/drivers/scsi/libfc/fc_libfc.c index b773512..ee74eec 100644 --- a/drivers/scsi/libfc/fc_libfc.c +++ b/drivers/scsi/libfc

[PATCH 5/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/wireless/ath/carl9170/main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index f06e069..5518592 100644 --- a/drivers/net

[PATCH 4/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/ppp/pptp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c index 89f829f..ede899c 100644 --- a/drivers/net/ppp/pptp.c +++ b/drivers/net/ppp/pptp.c @@ -162,7 +162,7 @@ static void

[PATCH 3/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/macvtap.c

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/macvtap.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c index 1b7082d..7c88d13 100644 --- a/drivers/net/macvtap.c +++ b/drivers/net/macvtap.c @@ -145,8 +145,8 @@ static

[PATCH 2/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c b/drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c index da5a5d9..a7ec886 100644

[PATCH 1/9] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/net/ethernet/broadcom/bnx2.c

2014-03-18 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/net/ethernet/broadcom/bnx2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index 965c723..5eab730 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b

[PATCH 0/9] Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x,NULL)

2014-03-18 Thread Monam Agarwal
This patchset uses following coccinelle script to replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x,NULL) @@ expression E; @@ - rcu_assign_pointer( + RCU_INIT_POINTER( E, NULL) Monam Agarwal (9): rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in

[PATCH] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/input.c

2014-03-18 Thread Monam Agarwal
This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/input.c Signed-off-by: Monam Agarwal --- drivers/input/input.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/input.c b/drivers/input/input.c index da38d97

[PATCH] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL)

2014-03-18 Thread Monam Agarwal
This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/infiniband/hw/qib/qib_qp.c Signed-off-by: Monam Agarwal --- drivers/infiniband/hw/qib/qib_qp.c |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/qib

[PATCH] rcu: Replace rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/endev.c

2014-03-18 Thread Monam Agarwal
This patch replaces rcu_assign_pointer(x, NULL) with RCU_INIT_POINTER(x, NULL) in drivers/input/endev.c Signed-off-by: Monam Agarwal --- drivers/input/evdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 4cf2534

[PATCH] rcu: Convert rcu_dereference to rcu_access_pointer in drivers/net/ethernet/broadcom/cnic.c

2014-03-18 Thread Monam Agarwal
This patch converts rcu_dereference to rcu_access_pointer if its returned value is not used Signed-off-by: Monam Agarwal Reviewed-by: Paul E. McKenney --- drivers/net/ethernet/broadcom/cnic.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet

Reg: Staging Driver: lustre/lustre/lov

2014-03-08 Thread Monam Agarwal
eck above but i that case what will be the allocation pattern? Regards, Monam Agarwal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please re

Re: Staging driver: drivers/staging/vt6656/

2014-03-03 Thread Monam Agarwal
On Sat, Mar 1, 2014 at 5:37 PM, Dan Carpenter wrote: > On Sat, Mar 01, 2014 at 03:37:17PM +0530, Monam Agarwal wrote: >> Hello all, >> >> I have a confusion regarding functions in aes_ccmp.c. It seems none of >> these functions are currently being used. So Is fine if we

Staging driver: drivers/staging/vt6656/

2014-03-01 Thread Monam Agarwal
Hello all, I have a confusion regarding functions in aes_ccmp.c. It seems none of these functions are currently being used. So Is fine if we can remove this file or should we keep it. Regards, Monam Agarwal -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in t

[PATCH] Staging: comedi: Fix line length exceeding 80 characters

2014-02-24 Thread Monam Agarwal
Signed-off-by: Monam Agarwal --- drivers/staging/comedi/comedi_fops.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c index ac1edd9..7da8566 100644 --- a/drivers/staging/comedi/comedi_fops.c

[PATCH] Staging: media: Fix line length exceeding 80 characters in as102_drv.c

2014-01-14 Thread Monam Agarwal
This patch fixes the following checkpatch.pl warning in as102/as102_drv.c WARNING: line over 80 characters in the file Signed-off-by: Monam Agarwal --- drivers/staging/media/as102/as102_drv.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/as102

[PATCH 2/2] Staging: media: Fix line length exceeding 80 characters in as102_fe.c

2014-01-14 Thread Monam Agarwal
This patch fixes the following checkpatch.pl issues in as102/as102_fe.c WARNING: line over 80 characters Signed-off-by: Monam Agarwal --- drivers/staging/media/as102/as102_fe.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/as102/as102_fe.c b

[PATCH 1/2] Staging: media: Fix quoted string split across line in as102_fe.c

2014-01-14 Thread Monam Agarwal
This patch fixes the following checkpatch.pl issues in as102/as102_fe.c WARNING: quoted string split across lines Signed-off-by: Monam Agarwal --- drivers/staging/media/as102/as102_fe.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/as102

Re: [PATCH v3 1/2] Staging: lustre: Refactor the function interval_erase_color() in /lustre/ldlm/interval_tree.c

2014-01-14 Thread Monam Agarwal
e function >>> interval_erase_color() in /lustre/ldlm/interval_tree.c >>> Date: January 11, 2014 at 1:33:58 PM MST >>> To: Monam Agarwal >>> Cc: Dan Carpenter , , >>> , , >>> , Rashika Kheria >>> >>> On Sat, Jan 11, 2014 at 05:14:35

[PATCH v3] Staging: lustre: Use of fls to find last set bit

2014-01-11 Thread Monam Agarwal
This introduces fls in lustre/ldlm/ldlm_extent.c to find the last set bit. Signed-off-by: Monam Agarwal --- Changes since v1: * Incorrect commit message * Use of fls function Changes since v2: * Removal of extra variable drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |2 +- 1 file

[PATCH v2 3/3] Staging: lustre: Fix warning on quoted string on multiple lines

2014-01-11 Thread Monam Agarwal
This patch fixes the following checkpatch.pl warning in lustre/ldlm/ldlm_flock.c WARNING: quoted string split across lines Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging

[PATCH v2 2/3] Staging: lustre: :Fix line over 80 character warning

2014-01-11 Thread Monam Agarwal
The patch fixes the following checkpatch.pl error in lustre/ldlm/ldlm_flock.c WARNING: line over 80 characters in the file Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH v2 1/3] Staging: lustre: Fix return does not need parantheses

2014-01-11 Thread Monam Agarwal
The patch fixes the following checkpatch.pl error in lustre/ldlm/ldlm_flock.c ERROR: return is not a function, parentheses are not required Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH v2] Staging: lustre: Use of fls to find last set bit

2014-01-11 Thread Monam Agarwal
: trailing statements should be on next line Signed-off-by: Monam Agarwal --- Changes since v1: *Incorrect commit message *Use of fls function drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ldlm

[PATCH 3/3] Staging: lustre: Fix warning on quoted string on multiple lines

2014-01-11 Thread Monam Agarwal
his patch fixes the following type of checkpatch.pl errors in lustre/ldlm/ldlm_flock.c ERROR: trailing statements should be on next line Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a

[PATCH 2/3] Staging: lustre: :Fix line over 80 character warning

2014-01-11 Thread Monam Agarwal
This patch fixes the following checkpatch.pl warning in lustre/ldlm/ldlm_flock.c WARNING: line over 80 characters in the file Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging

[PATCH 1/3] Staging: lustre: Fix return does not need parantheses

2014-01-11 Thread Monam Agarwal
This fixes the following checkpatch error in lustre/ldlm/ldlm_flock.c ERROR: return is not a function, parentheses are not required Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_flock.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH 2/2] Staging: lustre : Fix trailing statements should be on next line

2014-01-11 Thread Monam Agarwal
The patch fixes the following checkpatch.pl error in lustre/ldlm/ldlm_extent.c ERROR: trailing statements should be on next line Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/2] Staging: lustre: Removal of Unnecessary white spaces

2014-01-11 Thread Monam Agarwal
This fixes the following checkpatch.pl warning in lustre/ldlm/ldlm_extent.c WARNING: unnecessary whitespace before a quoted newline Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

Re: [PATCH v3 1/2] Staging: lustre: Refactor the function interval_erase_color() in /lustre/ldlm/interval_tree.c

2014-01-11 Thread Monam Agarwal
On Sat, Jan 11, 2014 at 5:09 PM, Dan Carpenter wrote: > On Sat, Jan 11, 2014 at 04:56:44PM +0530, Monam Agarwal wrote: >> I took n as a flag to decide whether parent->in_left == node is true >> or not in the called function. > > So "n" stands for "node"

Re: [PATCH v3 1/2] Staging: lustre: Refactor the function interval_erase_color() in /lustre/ldlm/interval_tree.c

2014-01-11 Thread Monam Agarwal
I took n as a flag to decide whether parent->in_left == node is true or not in the called function. Should I use some other name for the flag. On Sat, Jan 11, 2014 at 4:49 PM, Dan Carpenter wrote: > On Sat, Jan 11, 2014 at 04:30:33PM +0530, Monam Agarwal wrote: >>

[PATCH v3 2/2] Staging: lustre: Fix return does not need parantheses

2014-01-11 Thread Monam Agarwal
This patch fixes the following checkpatch.pl warning in lustre/ldlm/interval_tree.c ERROR: return is not a function, parentheses are not required Signed-off-by: Monam Agarwal --- Changes since version 1: * Incoorect signed-off-by line Changes since version 2: * Forgot change log drivers

[PATCH v3 1/2] Staging: lustre: Refactor the function interval_erase_color() in /lustre/ldlm/interval_tree.c

2014-01-11 Thread Monam Agarwal
/ldlm/interval_tree.c WARNING: line over 80 characters in the file Signed-off-by: Monam Agarwal --- Changes since version 1: * Incorrect fixing * Incorrect Signed-off-by line Changes since version 2: * Removed new line character drivers/staging/lustre/lustre/ldlm/interval_tree.c | 128

[PATCH v2 2/2] Staging: lustre: Fix return does not need parantheses

2014-01-11 Thread Monam Agarwal
This patch fixes the following checkpatch.pl warning in lustre/ldlm/interval_tree.c ERROR: return is not a function, parentheses are not required Signed-off-by: Monam Agarwal --- drivers/staging/lustre/lustre/ldlm/interval_tree.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 1/2] Staging: lustre: Refactor the function interval_erase_color() in /lustre/ldlm/interval_tree.c

2014-01-11 Thread Monam Agarwal
/ldlm/interval_tree.c WARNING: line over 80 characters in the file Signed-off-by: Monam Agarwal --- Changes since version 1: * Incorrect fixing * Incorrect Signed-off-by line --- drivers/staging/lustre/lustre/ldlm/interval_tree.c | 128 +++- 1 file changed, 69 insertions(+), 59