Staging: Use sizeof type *pointer instead of sizeof type.
cover Staging: Use sizeof type *pointer instead of sizeof type.
Use sizeof type *pointer instead of sizeof type.
Sandhya Bankar (3):
Staging: rtl8188eu: rtw_efuse: Use sizeof type *pointer instead of sizeof type.
Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
Staging: lustre: o2iblnd: Use sizeof type *pointer instead of sizeof type.
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 4 ++-- drivers/staging/lustre/lnet/selftest/rpc.c | 2 +- drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
1.8.3.4
PATCH 1/3 Staging: rtl8188eu: rtw_efuse: Use sizeof type *pointer instead of sizeof type.
Use sizeof type *pointer instead of sizeof type.
--- drivers/staging/rtl8188eu/core/rtw_efuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8188eu/core/rtw_efuse.c +1 -1
@@ -107,7 +107,7 @@ efuse_phymap_to_logical(u8 *phymap, u16 _offset, u16 _size_byte, u8 *pbuf)if (!efuseTbl)return ; - eFuseWord = (u16 **)rtw_malloc2d (EFUSE_MAX_SECTION_88E ,EFUSE_MAX_WORD_UNIT ,sizeof (u16)); + eFuseWord = (u16 **)rtw_malloc2d (EFUSE_MAX_SECTION_88E ,EFUSE_MAX_WORD_UNIT ,sizeof (*eFuseWord));if (!eFuseWord) {DBG_88E ("%s: alloc eFuseWord fail!\n" , __func__); goto eFuseWord_failed;
Signature · 1 line
1.8.3.4
PATCH 2/3 Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
In reply to Sandhya BankarUse sizeof type *pointer instead of sizeof type.
--- drivers/staging/lustre/lnet/selftest/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lnet/selftest/rpc.c +1 -1
@@ -256,7 +256,7 @@ srpc_service_init(struct srpc_service *svc) svc->sv_shuttingdown =0 ; svc->sv_cpt_data =cfs_percpt_alloc (lnet_cpt_table (), -sizeof (struct srpc_service_cd )); +sizeof (*svc->sv_cpt_data));if (!svc->sv_cpt_data)return -ENOMEM ;
Signature · 1 line
1.8.3.4
Greg KH
maintainerRe: [Outreachy kernel] [PATCH 2/3] Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
Quoted 6 lines · Sandhya Bankar
Use sizeof type *pointer instead of sizeof type.
Signed-off-by Sandhya Bankar <[email protected]>--- drivers/staging/lustre/lnet/selftest/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
You already sent this patch. Or you sent this again with changes, yet did not provide a 'v2' marking and description of what changed.
I'm going to drop both series, please resend in a format that explains what changed.
thanks,
greg k-h
Re: [Outreachy kernel] [PATCH 2/3] Staging: lustre: rpc: Use sizeof type *pointer instead of sizeof type.
Hello,
Actually as per mentor suggestion i had made changes in commit massage.
So i have not send patch v2. I will send patch v2.
Thanks,
Sandhya
Quoted 18 lines · Greg KH
Quoted 6 lines · Sandhya Bankar
Use sizeof type *pointer instead of sizeof type.
Signed-off-by Sandhya Bankar <[email protected]>--- drivers/staging/lustre/lnet/selftest/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)You already sent this patch. Or you sent this again with changes, yet did not provide a 'v2' marking and description of what changed.
I'm going to drop both series, please resend in a format that explains what changed.
thanks,
greg k-h
PATCH 3/3 Staging: lustre: o2iblnd: Use sizeof type *pointer instead of sizeof type.
In reply to Sandhya BankarUse sizeof type *pointer instead of sizeof type.
--- drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd.c +2 -2
@@ -1968,7 +1968,7 @@ static int kiblnd_net_init_pools(kib_net_t *net, __u32 *cpts, int ncpts)*/ net->ibn_fmr_ps =cfs_percpt_alloc (lnet_cpt_table (), -sizeof (kib_fmr_poolset_t)); +sizeof (*net->ibn_fmr_ps));if (!net->ibn_fmr_ps) {CERROR ("Failed to allocate FMR pool array\n" ); rc = -ENOMEM ;
@@ -1992,7 +1992,7 @@ static int kiblnd_net_init_pools(kib_net_t *net, __u32 *cpts, int ncpts) create_tx_pool: net->ibn_tx_ps =cfs_percpt_alloc (lnet_cpt_table (), -sizeof (kib_tx_poolset_t)); +sizeof (*net->ibn_tx_ps));if (!net->ibn_tx_ps) {CERROR ("Failed to allocate tx pool array\n" ); rc = -ENOMEM ;
Signature · 1 line
1.8.3.4