* [PATCH] ath11k: fix noderef.cocci warnings
@ 2019-03-07 21:36 Julia Lawall
2019-03-08 12:47 ` Kalle Valo
0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2019-03-07 21:36 UTC (permalink / raw)
To: Kalle Valo; +Cc: kbuild-all, ath10k
From: kbuild test robot <lkp@intel.com>
sizeof when applied to a pointer typed expression gives the size of
the pointer
Generated by: scripts/coccinelle/misc/noderef.cocci
Fixes: 258bbf525e65 ("ath11k: add driver")
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---
tree: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git ath11k-bringup
head: e7daa3ec639f390e383dae0db9e6b143bcc7b5bc
commit: 258bbf525e652e244aa8b2331f55fda573fbe926 [3/42] ath11k: add driver
:::::: branch date: 5 hours ago
:::::: commit date: 4 weeks ago
dp_rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/net/wireless/ath/ath11k/dp_rx.c
+++ b/drivers/net/wireless/ath/ath11k/dp_rx.c
@@ -275,7 +275,7 @@ static void ath11k_dp_rx_tid_del_func(st
if (status == HAL_REO_CMD_DRAIN)
goto free_desc;
- elem = kzalloc(sizeof(elem), GFP_ATOMIC);
+ elem = kzalloc(sizeof(*elem), GFP_ATOMIC);
if (!elem) {
ath11k_warn(ab, "failed to allocate memory for cache flush element\n");
goto free_desc;
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ath11k: fix noderef.cocci warnings
2019-03-07 21:36 [PATCH] ath11k: fix noderef.cocci warnings Julia Lawall
@ 2019-03-08 12:47 ` Kalle Valo
2019-03-08 12:51 ` Julia Lawall
0 siblings, 1 reply; 3+ messages in thread
From: Kalle Valo @ 2019-03-08 12:47 UTC (permalink / raw)
To: Julia Lawall; +Cc: kbuild-all, ath10k
Julia Lawall <julia.lawall@lip6.fr> writes:
> From: kbuild test robot <lkp@intel.com>
>
> sizeof when applied to a pointer typed expression gives the size of
> the pointer
>
> Generated by: scripts/coccinelle/misc/noderef.cocci
>
> Fixes: 258bbf525e65 ("ath11k: add driver")
> Signed-off-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
Doesn't apply for some reason.
--
Kalle Valo
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] ath11k: fix noderef.cocci warnings
2019-03-08 12:47 ` Kalle Valo
@ 2019-03-08 12:51 ` Julia Lawall
0 siblings, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2019-03-08 12:51 UTC (permalink / raw)
To: Kalle Valo; +Cc: Julia Lawall, kbuild-all, ath10k
On Fri, 8 Mar 2019, Kalle Valo wrote:
> Julia Lawall <julia.lawall@lip6.fr> writes:
>
> > From: kbuild test robot <lkp@intel.com>
> >
> > sizeof when applied to a pointer typed expression gives the size of
> > the pointer
> >
> > Generated by: scripts/coccinelle/misc/noderef.cocci
> >
> > Fixes: 258bbf525e65 ("ath11k: add driver")
> > Signed-off-by: kbuild test robot <lkp@intel.com>
> > Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
>
> Doesn't apply for some reason.
OK, I'll check on these. Thanks.
julia
_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-03-08 12:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-07 21:36 [PATCH] ath11k: fix noderef.cocci warnings Julia Lawall
2019-03-08 12:47 ` Kalle Valo
2019-03-08 12:51 ` Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox