From: kbuild test robot <fengguang.wu@xxxxxxxxx> drivers/staging/most/sound/sound.c:673:21-27: 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 Fixes: 58bce1efd0e8 ("staging: most: sound: rename variable") CC: Christian Gromm <christian.gromm@xxxxxxxxxxxxx> Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx> --- url: https://github.com/0day-ci/linux/commits/Christian-Gromm/staging-most-sound-change-sound-card-layout/20181213-063731 sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/staging/most/sound/sound.c +++ b/drivers/staging/most/sound/sound.c @@ -670,7 +670,7 @@ skip_adpt_alloc: goto err_free_adpt; pcm->private_data = channel; - snprintf(pcm->name, sizeof(device_name), device_name); + snprintf(pcm->name, sizeof(*device_name), device_name); snd_pcm_set_ops(pcm, direction, &pcm_ops); if (create) { _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel