Skip to content
Commit 19a33c78 authored by Kai Vehmanen's avatar Kai Vehmanen Committed by Carles Cufí
Browse files

init: adjust the SYS_INIT dev field init to play nice with older compilers



Fix a build error with certain older Cadence XCC toolchains. These
are used e.g. for Intel Tiger Lake products for the audio DSP (thhe oldest
platform supported in Zephyr upstream for the audio DSP).

To keep all compilers happy, use C89 style initializers.

Error:
lib/os/p4wq.c:216: error: unknown field ‘dev’ specified in initializer
lib/os/p4wq.c:216: warning: missing braces around initializer
lib/os/p4wq.c:216: warning: (near initialization for
  ‘__init_static_init.<anonymous>’)

Compiler version XCC RG-2017.8-linux (xt-xcc version 12.0.8)

Fixes: 2438dbb6 ("init: add missing initialization of dev pointer
in SYS_INIT macro")
Signed-off-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
parent 9194a93d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment