All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: Intel: Skylake: fix noderef.cocci warnings
  2016-08-02  1:07 [asoc:topic/intel 19/26] sound/soc/intel/skylake/skl-topology.c:480:24-30: ERROR: application of sizeof to pointer kbuild test robot
@ 2016-08-02  1:07 ` kbuild test robot
  2016-08-02  3:40   ` Vinod Koul
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2016-08-02  1:07 UTC (permalink / raw)
  To: Vinod Koul
  Cc: alsa-devel, Dharageswari R, Hardik T Shah, Takashi Iwai,
	Liam Girdwood, Mark Brown, kbuild-all, Jeeja KP,
	Senthilnathan Veppur, Subhransu S. Prusty

sound/soc/intel/skylake/skl-topology.c:480:24-30: ERROR: application of sizeof to pointer

 sizeof when applied to a pointer typed expression gives the size of
 the pointer

Generated by: scripts/coccinelle/misc/noderef.cocci

CC: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 skl-topology.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -477,7 +477,7 @@ skl_tplg_init_pipe_modules(struct skl *s
 		if (mconfig->id.module_id < 0) {
 			struct skl_dfw_module *dfw_config;
 
-			dfw_config = kzalloc(sizeof(dfw_config), GFP_KERNEL);
+			dfw_config = kzalloc(sizeof(*dfw_config), GFP_KERNEL);
 			if (!dfw_config)
 				return -ENOMEM;
 

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

* [asoc:topic/intel 19/26] sound/soc/intel/skylake/skl-topology.c:480:24-30: ERROR: application of sizeof to pointer
@ 2016-08-02  1:07 kbuild test robot
  2016-08-02  1:07 ` [PATCH] ASoC: Intel: Skylake: fix noderef.cocci warnings kbuild test robot
  0 siblings, 1 reply; 3+ messages in thread
From: kbuild test robot @ 2016-08-02  1:07 UTC (permalink / raw)
  To: Vinod Koul; +Cc: Senthilnathan Veppur, alsa-devel, Mark Brown, kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/intel
head:   b1f89b197b3f7360239fc2120755252cead4e572
commit: 7c617ec3e8f6b614e63ea9c82ce2ea39e7daf579 [19/26] ASoC: Intel: Skylake: Move modules query to runtime


coccinelle warnings: (new ones prefixed by >>)

>> sound/soc/intel/skylake/skl-topology.c:480:24-30: ERROR: application of sizeof to pointer

Please review and possibly fold the followup patch.

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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

* Re: [PATCH] ASoC: Intel: Skylake: fix noderef.cocci warnings
  2016-08-02  1:07 ` [PATCH] ASoC: Intel: Skylake: fix noderef.cocci warnings kbuild test robot
@ 2016-08-02  3:40   ` Vinod Koul
  0 siblings, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2016-08-02  3:40 UTC (permalink / raw)
  To: kbuild test robot
  Cc: alsa-devel, Dharageswari R, Hardik T Shah, Takashi Iwai,
	Liam Girdwood, Mark Brown, kbuild-all, Jeeja KP,
	Senthilnathan Veppur, Subhransu S. Prusty

On Tue, Aug 02, 2016 at 09:07:13AM +0800, kbuild test robot wrote:
> sound/soc/intel/skylake/skl-topology.c:480:24-30: ERROR: application of sizeof to pointer
> 
>  sizeof when applied to a pointer typed expression gives the size of
>  the pointer
> 
> Generated by: scripts/coccinelle/misc/noderef.cocci

Acked-by: Vinod Koul <vinod.koul@intel.com>

-- 
~Vinod

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

end of thread, other threads:[~2016-08-02  3:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-02  1:07 [asoc:topic/intel 19/26] sound/soc/intel/skylake/skl-topology.c:480:24-30: ERROR: application of sizeof to pointer kbuild test robot
2016-08-02  1:07 ` [PATCH] ASoC: Intel: Skylake: fix noderef.cocci warnings kbuild test robot
2016-08-02  3:40   ` Vinod Koul

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.