From: Sandhya Bankar <bankarsandhya512@gmail.com>
To: outreachy-kernel@googlegroups.com
Cc: gregkh@linuxfoundation.org, labbott@redhat.com,
sumit.semwal@linaro.org, arve@android.com, riandrews@android.com,
oleg.drokin@intel.com, andreas.dilger@intel.com,
jsimmons@infradead.org
Subject: [PATCH 0/2] Staging: Modify argument of sizeof() to pointer variables.
Date: Sat, 17 Sep 2016 02:17:56 +0530 [thread overview]
Message-ID: <cover.1474055668.git.bankarsandhya512@gmail.com> (raw)
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(-)
next reply other threads:[~2016-09-17 7:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 20:47 Sandhya Bankar [this message]
2016-09-16 20:50 ` [PATCH 1/2] Staging: android: Modify argument of sizeof() to pointer variables 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1474055668.git.bankarsandhya512@gmail.com \
--to=bankarsandhya512@gmail.com \
--cc=andreas.dilger@intel.com \
--cc=arve@android.com \
--cc=gregkh@linuxfoundation.org \
--cc=jsimmons@infradead.org \
--cc=labbott@redhat.com \
--cc=oleg.drokin@intel.com \
--cc=outreachy-kernel@googlegroups.com \
--cc=riandrews@android.com \
--cc=sumit.semwal@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.