All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Staging: Modify argument of sizeof() to pointer variables.
@ 2016-09-16 20:47 Sandhya Bankar
  2016-09-16 20:50 ` [PATCH 1/2] Staging: android: " Sandhya Bankar
  2016-09-16 20:53 ` [PATCH 2/2] Staging: lustre: " Sandhya Bankar
  0 siblings, 2 replies; 6+ messages in thread
From: Sandhya Bankar @ 2016-09-16 20:47 UTC (permalink / raw)
  To: outreachy-kernel
  Cc: gregkh, labbott, sumit.semwal, arve, riandrews, oleg.drokin,
	andreas.dilger, jsimmons

Modify arguments of sizeof() to pointer variables.
The destination of the allocation has type struct **, so the 
elements of the array should have pointer type, not structure type.

These changes are made using below Coccinelle script:
 
@disable sizeof_type_expr@
type T;
T **x;
@@

  x =
  <+...sizeof(
- T
+ *x
  )...+>


Sandhya Bankar (2):
  Staging: android: Modify argument of sizeof() to pointer variables.
  Staging: lustre: Modify argument of sizeof() to pointer variables.

 drivers/staging/android/ion/hisilicon/hi6220_ion.c |    2 +-
 .../staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c    |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-09-19 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-16 20:47 [PATCH 0/2] Staging: Modify argument of sizeof() to pointer variables Sandhya Bankar
2016-09-16 20:50 ` [PATCH 1/2] Staging: android: " Sandhya Bankar
2016-09-17 18:27   ` [Outreachy kernel] " Greg KH
2016-09-16 20:53 ` [PATCH 2/2] Staging: lustre: " Sandhya Bankar
2016-09-17  8:49   ` [Outreachy kernel] " Julia Lawall
     [not found]     ` <6B5E7F24-CAC2-49CB-B717-6D64C40CFE82@intel.com>
     [not found]       ` <alpine.LFD.2.20.1609182113040.31599@casper.infradead.org>
2016-09-19 15:37         ` sandhya bankar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.