[PATCH] staging: media: lirc: lirc_zilog.c: adjust debug messages

2014-11-01 Thread Aya Mahfouz
This patch removes one debug message and replaces a dev_err call by pr_err. Signed-off-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com --- drivers/staging/media/lirc/lirc_zilog.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_zilog.c b

[no subject]

2014-11-03 Thread Aya Mahfouz
: replace dev_err by pr_err Reply-To: This patch replaces dev_err by pr_err since the value of ir is NULL when the message is displayed. Signed-off-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com --- drivers/staging/media/lirc/lirc_zilog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] staging: media: lirc: replace dev_err by pr_err

2014-11-03 Thread Aya Mahfouz
This patch replaces dev_err by pr_err since the value of ir is NULL when the message is displayed. Signed-off-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com --- drivers/staging/media/lirc/lirc_zilog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc

Re: [PATCH] staging: media: lirc: lirc_zilog.c: adjust debug messages

2014-11-03 Thread Aya Mahfouz
On Sun, Nov 02, 2014 at 12:40:13PM +0100, Konrad Zapalowicz wrote: On 11/01, Aya Mahfouz wrote: This patch removes one debug message and replaces a dev_err call by pr_err. Usually you would like to send this as two separate patches because replacing a debug message is way different than

[PATCH] staging: media: lirc: modify print calls

2014-11-04 Thread Aya Mahfouz
This patches replaces one pr_debug call by dev_dbg and changes the device used by one of the dev_err calls. Signed-off-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com --- drivers/staging/media/lirc/lirc_zilog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

Re: [PATCH] staging: media: lirc: replace dev_err by pr_err

2014-11-05 Thread Aya Mahfouz
On Wed, Nov 05, 2014 at 12:57:38PM +0530, Sudip Mukherjee wrote: On Tue, Nov 04, 2014 at 11:48:26PM +0200, Aya Mahfouz wrote: On Tue, Nov 04, 2014 at 03:06:53PM +0530, Sudip Mukherjee wrote: On Tue, Nov 04, 2014 at 02:13:19AM +0200, Aya Mahfouz wrote: This patch replaces dev_err

Re: [PATCH] staging: media: lirc: modify print calls

2014-11-05 Thread Aya Mahfouz
On Wed, Nov 05, 2014 at 04:59:15PM +0530, Sudip Mukherjee wrote: On Tue, Nov 04, 2014 at 11:43:07PM +0200, Aya Mahfouz wrote: This patches replaces one pr_debug call by dev_dbg and changes the device used by one of the dev_err calls. i think you should mention in the commit message why you

Re: [PATCH] staging: media: lirc: modify print calls

2014-11-05 Thread Aya Mahfouz
On Wed, Nov 05, 2014 at 08:17:11AM -0200, Mauro Carvalho Chehab wrote: Em Tue, 4 Nov 2014 23:43:07 +0200 Aya Mahfouz mahfouz.saif.elya...@gmail.com escreveu: This patches replaces one pr_debug call by dev_dbg and changes the device used by one of the dev_err calls. Also doesn't apply

[PATCH] staging: davinci_vpfe: fix space prohibited before semicolon warning

2015-01-14 Thread Aya Mahfouz
This patch fixes the following checkpatch.pl warning: space prohibited before semicolon Signed-off-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com --- v1: This patch applies to Greg's tree. drivers/staging/media/davinci_vpfe/dm365_ipipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

Re: [PATCH] staging: vt6655: mac.h: fix space prohibited before that ','

2015-01-22 Thread Aya Mahfouz
On Mon, Jan 19, 2015 at 02:30:25PM +0200, Mohamed Lotfy Hammad wrote: This patch fixes the following checkpatch.pl error: fix space prohibited before that ',' Signed-off-by: Mohamed Lotfy Hammad mohamed.lotfy.ham...@gmail.com Reviewed-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com

Re: [PATCH v2] staging: vt6655: fix space prohibited before that ','

2015-01-22 Thread Aya Mahfouz
On Mon, Jan 19, 2015 at 12:16:30PM +0200, Heba Aamer wrote: This patch fixes the following checkpatch.pl error: fix space prohibited before that ',' Signed-off-by: Heba Aamer heba93aa...@gmail.com Reviewed-by: Aya Mahfouz mahfouz.saif.elya...@gmail.com --- v2: added Signed-off line

Re: [PATCH] staging: vt6656: fix Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2)

2015-01-22 Thread Aya Mahfouz
seq_ctrl; /*22 2 */ u8 addr4[6]; /*24 6 */ /* size: 30, cachelines: 1, members: 7 */ /* last cacheline: 30 bytes */ }; Signed-off-by: Heba Aamer heba93aa...@gmail.com Reviewed-by: Aya

Re: [PATCH] staging: rtl8712: fix Prefer ether_addr_copy() over memcpy()

2015-01-29 Thread Aya Mahfouz
On Thu, Jan 29, 2015 at 02:51:57PM +0300, Dan Carpenter wrote: On Wed, Jan 28, 2015 at 11:30:11PM +0200, Aya Mahfouz wrote: On Wed, Jan 28, 2015 at 10:48:40AM -0600, Larry Finger wrote: On 01/28/2015 09:53 AM, Heba Aamer wrote: This patch fixes the following checkpatch.pl warning

Re: [PATCH] staging: rtl8712: fix Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...

2015-01-25 Thread Aya Mahfouz
On Sat, Jan 24, 2015 at 10:20:53PM +0200, Heba Aamer wrote: This patch fixes the following checkpatch.pl warning: fix Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ... netdev_info was used since it is a network subsystem

[RESEND PATCH v2 4/5] staging: lustre: selftest.h: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -added new

[RESEND PATCH v2 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: Aya Mahfouz <mahfouz.

[RESEND PATCH v2 3/5] staging: lustre: workitem.c: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: Aya Mahfouz <mahfouz.

[RESEND PATCH v2 0/5] Remove uses and definition of IS_PO2

2015-10-27 Thread Aya Mahfouz
Concerned with the removal of IS_PO2 by replacing its uses with is_power_of_2 and then removing the definition. This is the second version of the patch set. The commit messages were changed and a new patch was added for a use of IS_PO2 indicated by kbuild test robot. Aya Mahfouz (5): staging

[RESEND PATCH v2 5/5] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2

2015-10-27 Thread Aya Mahfouz
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have been replaced by is_power_of_2 Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -became patch number 5 in the series drivers/staging/lustre/include/linux/libcfs/libcfs.h | 7 --- 1 file changed, 7 del

[RESEND PATCH v2 1/5] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

2015-10-27 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -changed commit m

Re: [RESEND PATCH v2 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-10-28 Thread Aya Mahfouz
On Wed, Oct 28, 2015 at 12:11:59PM +0530, Sudip Mukherjee wrote: > On Tue, Oct 27, 2015 at 07:43:34PM +0200, Aya Mahfouz wrote: > > Replaces IS_PO2 by is_power_of_2. It is more accurate to use > > is_power_of_2 since it returns 1 for numbers that are powers > > of 2 only whe

[PATCH v3 0/5] Remove uses and definition of IS_PO2

2015-10-28 Thread Aya Mahfouz
Concerned with the removal of IS_PO2 by replacing its uses with is_power_of_2 and then removing the definition. The second version handled warnings indicated by kbuild test robot. The third version handled checkpatch.pl warnings indicated by Sudip Mukherjee. Aya Mahfouz (5): staging: lustre

[PATCH v3 1/5] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

2015-10-28 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -changed commit m

[PATCH v3 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-10-28 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: Aya Mahfouz <mahfouz.

[PATCH v3 4/5] staging: lustre: selftest.h: replace IS_PO2 by is_power_of_2

2015-10-28 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -added new

[PATCH v3 3/5] staging: lustre: workitem.c: replace IS_PO2 by is_power_of_2

2015-10-28 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: Aya Mahfouz <mahfouz.

[PATCH v3 5/5] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2

2015-10-28 Thread Aya Mahfouz
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have been replaced by is_power_of_2 Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -became patch number 5 in the series v3: -no change drivers/staging/lustre/include/linux/libcfs/libcfs.h | 7

Re: [PATCH v3 5/5] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2

2015-11-07 Thread Aya Mahfouz
On Fri, Nov 06, 2015 at 05:11:09PM -0800, Greg KH wrote: > On Thu, Oct 29, 2015 at 03:00:24AM +0200, Aya Mahfouz wrote: > > Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have > > been replaced by is_power_of_2 > > > > Signed-off-by: Aya Mahfouz <

[PATCH 3/4] staging: lustre: workitem.c: replace IS_PO2 with is_power_of_2

2015-10-16 Thread Aya Mahfouz
and the return type is bool. This, however, has no impact, because the actual argument is always of type int, and the return value is always used as a boolean. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/libcfs/workitem.c | 4 +++- 1 file chan

[PATCH 4/4] staging: lustre: remove IS_PO2 and __is_po2

2015-10-16 Thread Aya Mahfouz
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have been replaced by is_power_of_2 Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/include/linux/libcfs/libcfs.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/lustre/i

[PATCH 1/4] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

2015-10-16 Thread Aya Mahfouz
and the return type is bool. This, however, has no impact, because the actual argument is always of type int, and the return value is always used as a boolean. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/ldlm/ldlm_extent.c | 5 - 1 file chan

[PATCH 2/4] staging: lustre: hash.c: replace IS_PO2 by is_power_of_2

2015-10-16 Thread Aya Mahfouz
and the return type is bool. This, however, has no impact, because the actual argument is always of type int, and the return value is always used as a boolean. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/libcfs/hash.c | 4 +++- 1 file chan

[PATCH 0/4] Remove uses and definition of IS_PO2

2015-10-16 Thread Aya Mahfouz
Concerned with the removal of IS_PO2 by replacing its uses with is_power_of_2 and then removing the definition Aya Mahfouz (4): staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2 staging: lustre: hash.c: replace IS_PO2 by is_power_of_2 staging: lustre: workitem.c: replace

Re: [PATCH 2/4] staging: lustre: hash.c: replace IS_PO2 by is_power_of_2

2015-10-17 Thread Aya Mahfouz
On Fri, Oct 16, 2015 at 10:40:25PM -0700, Greg KH wrote: > On Sat, Oct 17, 2015 at 12:06:28AM +0200, Aya Mahfouz wrote: > > Replaces IS_PO2 by is_power_of_2. IS_PO2 is used with several debug > > macros. In this case, it is CDEBUG. Note that the replacement changes > > the ty

Re: [PATCH 1/4] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

2015-10-17 Thread Aya Mahfouz
On Fri, Oct 16, 2015 at 10:41:09PM -0700, Greg KH wrote: > On Sat, Oct 17, 2015 at 12:05:44AM +0200, Aya Mahfouz wrote: > > Replaces IS_PO2 by is_power_of_2. IS_PO2 is used with several debug > > macros. In this case, it is LASSERT. Note that the replacement changes > > the ty

Re: [PATCH 4/4] staging: lustre: remove IS_PO2 and __is_po2

2015-10-17 Thread Aya Mahfouz
On Fri, Oct 16, 2015 at 10:21:05PM -0700, Greg KH wrote: > On Sat, Oct 17, 2015 at 12:07:28AM +0200, Aya Mahfouz wrote: > > Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have > > been replaced by is_power_of_2 > > > > Signed-off-by: Aya Mahfouz <

[PATCH v2 1/5] staging: lustre: ldlm_extent.c: replace IS_PO2 by is_power_of_2

2015-10-18 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -changed commit m

[PATCH v2 4/5] staging: lustre: selftest.h: replace IS_PO2 by is_power_of_2

2015-10-18 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -added new

[PATCH v2 0/5] Remove uses and definition of IS_PO2

2015-10-18 Thread Aya Mahfouz
Concerned with the removal of IS_PO2 by replacing its uses with is_power_of_2 and then removing the definition. This is the second version of the patch set. The commit messages were changed and a new patch was added for a use of IS_PO2 indicated by kbuild test robot. Aya Mahfouz (5): staging

[PATCH v2 5/5] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2

2015-10-18 Thread Aya Mahfouz
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have been replaced by is_power_of_2 Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- v2: -became patch number 5 in the series drivers/staging/lustre/include/linux/libcfs/libcfs.h | 7 --- 1 file changed, 7 del

Re: [PATCH 4/4] staging: lustre: remove IS_PO2 and __is_po2

2015-10-18 Thread Aya Mahfouz
On Fri, Oct 16, 2015 at 10:21:05PM -0700, Greg KH wrote: > On Sat, Oct 17, 2015 at 12:07:28AM +0200, Aya Mahfouz wrote: > > Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have > > been replaced by is_power_of_2 > > > > Signed-off-by: Aya Mahfouz <

[PATCH v2 2/5] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-10-18 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: Aya Mahfouz <mahfouz.

Re: [PATCH 2/4] staging: lustre: hash.c: replace IS_PO2 by is_power_of_2

2015-10-17 Thread Aya Mahfouz
On Sat, Oct 17, 2015 at 12:47:13PM +0200, Julia Lawall wrote: > On Sat, 17 Oct 2015, Aya Mahfouz wrote: > > > On Fri, Oct 16, 2015 at 10:40:25PM -0700, Greg KH wrote: > > > On Sat, Oct 17, 2015 at 12:06:28AM +0200, Aya Mahfouz wrote: > > > > Replaces IS_PO2

[PATCH 5/7] staging: lustre: osc_io.c: replace container_of0 by container_of

2015-10-13 Thread Aya Mahfouz
Replaces container_of0 by container_of. The only difference between the two implementations is that container_of0 tries to evade type casting if the pointer is erroneous or null. The use of container_of is encouraged to bring lustre one step closer to community standards. Signed-off-by: Aya

[PATCH 4/7] staging: lustre: echo_client.c: replace container_of0 by container_of

2015-10-13 Thread Aya Mahfouz
Replaces container_of0 by container_of. The only difference between the two implementations is that container_of0 tries to evade type casting if the pointer is erroneous or null. The use of container_of is encouraged to bring lustre one step closer to community standards. Signed-off-by: Aya

[PATCH 0/7] staging: lustre: remove uses and definition of container_of0

2015-10-13 Thread Aya Mahfouz
container_of0 can be replaced by the Linux kernel macro container_of. The only difference is that container_of0 tries to evade type casting when the pointer is erroneous or null. All uses of container_of0 have been replaced by container_of and then the macro was removed in the last patch. Aya

[PATCH 1/7] staging: lustre: lcommon_cl.c: replace container_of0 by container_of

2015-10-13 Thread Aya Mahfouz
...@gmail.com Cc: k...@mcmartin.ca Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/lclient/lcommon_cl.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/lclient/lcommon_cl.c b/drivers/staging/

[PATCH 3/7] staging: lustre: lu_object.c: replace container_of0 by container_of

2015-10-13 Thread Aya Mahfouz
Replaces container_of0 by container_of. The only difference between the two implementations is that container_of0 tries to evade type casting if the pointer is erroneous or null. The use of container_of is encouraged to bring lustre one step closer to community standards. Signed-off-by: Aya

[PATCH 2/7] staging: lustre: llite_nfs.c: replace container_of0 by container_of

2015-10-13 Thread Aya Mahfouz
Replaces container_of0 by container_of. The only difference between the two implementations is that container_of0 tries to evade type casting if the pointer is erroneous or null. The use of container_of is encouraged to bring lustre one step closer to community standards. Signed-off-by: Aya

[PATCH 6/7] staging: lustre: osc_object.c: replace container_of0 by container_of

2015-10-13 Thread Aya Mahfouz
Replaces container_of0 by container_of. The only difference between the two implementations is that container_of0 tries to evade type casting if the pointer is erroneous or null. The use of container_of is encouraged to bring lustre one step closer to community standards. Signed-off-by: Aya

[PATCH 7/7] staging: lustre: remove container_of0 and __container_of

2015-10-13 Thread Aya Mahfouz
All uses of container_of0 have been replaced by container_of. container_of0 and __container_of can be safely removed. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/include/linux/libcfs/libcfs.h | 11 --- 1 file changed, 11 deletions(-) diff

[PATCH 0/2] Remove the last use and definition of IS_PO2

2015-11-17 Thread Aya Mahfouz
Concerned with the removal of IS_PO2 by replacing its use with is_power_of_2 and then removing the definition. Aya Mahfouz (2): staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2 staging: lustre: libcfs.h: remove IS_PO2 and __is_po2 drivers/staging/lustre/include/linux/libcfs/libcfs.h

[PATCH] staging: gdm724x: constify tty_port_operations structs

2015-12-14 Thread Aya Mahfouz
Constifies tty_port_operations structure in the tty code of the gdm724x driver since it is not modified after its initialization. Detected and found using Coccinelle. Suggested-by: Julia Lawall <julia.law...@lip6.fr> Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com>

[PATCH v2] staging: lustre: ptlrpc: constify ptlrpc_sec_cops structs

2015-11-27 Thread Aya Mahfouz
Constifies ptlrpc_sec_cops structures in the lustre driver since they are not modified after their initialization. Detected and found using Coccinelle. Suggested-by: Julia Lawall <julia.law...@lip6.fr> Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- Changelog:

[PATCH 1/2] staging: lustre: hash.c: Replace IS_PO2 by is_power_of_2

2015-11-17 Thread Aya Mahfouz
Replaces IS_PO2 by is_power_of_2. It is more accurate to use is_power_of_2 since it returns 1 for numbers that are powers of 2 only whereas IS_PO2 returns 1 for 0 and numbers that are powers of 2. Reviewed-by: Andreas Dilger <andreas.dil...@intel.com> Signed-off-by: Aya Mahfouz <mahfouz.

[PATCH 2/2] staging: lustre: libcfs.h: remove IS_PO2 and __is_po2

2015-11-17 Thread Aya Mahfouz
Removes IS_PO2 and __is_po2 since the uses of IS_PO2 have been replaced by is_power_of_2 Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/include/linux/libcfs/libcfs.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/lustre/i

[PATCH] staging: lustre: ptlrpc: constify ptlrpc_sec_cops structs

2015-11-23 Thread Aya Mahfouz
Constifies ptlrpc_sec_cops structures in the lustre driver since they are not modified after their initialization. Detected and found using Coccinelle. Suggested-by: Julia Lawall <julia.law...@lip6.fr> Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/l

[PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-10-17 Thread Aya Mahfouz
class_devno_max is an inline function that returns MAX_OBD_DEVICES. Replace all calls to the function by MAX_OBD_DEVICES. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/obdclass/class_obd.c | 6 +++--- drivers/staging/lustre/lustre/ob

Re: [PATCH 1/2] staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

2016-10-25 Thread Aya Mahfouz
On Mon, Oct 17, 2016 at 10:38:31PM +, Dilger, Andreas wrote: > On Oct 17, 2016, at 15:46, Aya Mahfouz <mahfouz.saif.elya...@gmail.com> wrote: > > > > class_devno_max is an inline function that returns > > MAX_OBD_DEVICES. Replace all calls to the function > >

[PATCH 2/2] staging: lustre: remove class_devno_max

2016-10-17 Thread Aya Mahfouz
class_devno_max is an inline function that is not used anymore. Hence, it is removed. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/include/obd_class.h | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/lustre/lustre/i

[PATCH 0/2] staging: lustre: replace and remove class_devno_max

2016-10-17 Thread Aya Mahfouz
class_devno_max is an inline function that is written with the sole purpose of returning the value of MAX_OBD_DEVICES. Since no computations are made by the class_devno_max, replace it with MAX_OBD_DEVICES. Aya Mahfouz (2): staging: lustre: replace uses of class_devno_max by MAX_OBD_DEVICES

[PATCH] staging: lustre: remove unused identifier OBD_INIT_CHECK

2016-10-17 Thread Aya Mahfouz
OBD_INIT_CHECK was previously used by a conditional group. This is no longer the case so it can be removed. Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/lustre/lustre/obdclass/class_obd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/

[PATCH] staging: gdm724x: fix checkpatch.pl camelCase warning

2017-03-15 Thread Aya Mahfouz
Fixes the checkpatch.pl warning: Avoid CamelCase Signed-off-by: Aya Mahfouz <mahfouz.saif.elya...@gmail.com> --- drivers/staging/gdm724x/gdm_lte.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_lte.h b/drivers/staging/gdm724x/gdm_lte.h