[alsa-devel] [PATCH] ASoC: max98373: usleep_range() needs include/delay.h

Benson Leung bleung at google.com
Fri Sep 7 05:15:25 CEST 2018


Hi Grant,

On Thu, Sep 06, 2018 at 05:27:28PM -0700, Grant Grundler wrote:
> Commit ca917f9fe1a0fab added use of usleep_range() but not
> the corresponding "include <linux/delay.h>". The result is
> with Chrome OS won't build because warnings are forced
> to be errors:
> mnt/host/source/src/third_party/kernel/v4.4/sound/soc/codecs/max98373.c:734:2: error: implicit declaration of function 'usleep_range' [-Werror,-Wimplicit-function-declaration]
>         usleep_range(10000, 11000);
>         ^
> 
> Including delay.h "fixes" this.
> 
> Signed-off-by: Grant Grundler <grundler at chromium.org>

Reviewed-by: Benson Leung <bleung at chromium.org>

Thanks!

-- 
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
bleung at google.com
Chromium OS Project
bleung at chromium.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20180907/e684c223/attachment.sig>


More information about the Alsa-devel mailing list