Re: [PATCH] ASoC: simple-card: Dereference pointer for memcpy sizeof in asoc_simple_card_probe

2018-12-12 Thread Nathan Chancellor
On Thu, Dec 13, 2018 at 02:07:42PM +0900, Kuninori Morimoto wrote: > > Hi Nathan > > > sound/soc/generic/simple-card.c:462:6: warning: argument to 'sizeof' in > > 'memcpy' call is the same pointer type 'struct asoc_simple_dai *' as the > > source; expected 'struct asoc_simple_dai' or an explicit

Re: [PATCH] ASoC: simple-card: Dereference pointer for memcpy sizeof in asoc_simple_card_probe

2018-12-12 Thread Kuninori Morimoto

[PATCH] ASoC: simple-card: Dereference pointer for memcpy sizeof in asoc_simple_card_probe

2018-12-12 Thread Nathan Chancellor
Clang warns: sound/soc/generic/simple-card.c:462:6: warning: argument to 'sizeof' in 'memcpy' call is the same pointer type 'struct asoc_simple_dai *' as the source; expected 'struct asoc_simple_dai' or an explicit length [-Wsizeof-pointer-memaccess] sizeof(