Skip to contentSkip to conversation

Build failures in -next in qcom_common.c

DISCUSSION Mark Brown 2 participants 2 messages Jul 13, 2020 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Since Friday -next has been failing to build various arm and arm64 configurations with:

drivers/remoteproc/qcom_common.c:210:9: error: implicit declaration of function 'kzalloc' [-Werror,-Wimplicit-function-declaration]

        info = kzalloc(sizeof(*info), GFP_KERNEL);
               ^
drivers/remoteproc/qcom_common.c:210:7: warning: incompatible integer to pointer conversion assigning to 'struct qcom_ssr_subsystem *' from 'int' [-Wint-conversion]
        info = kzalloc(sizeof(*info), GFP_KERNEL);
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 warning and 1 error generated.

caused by 5abfe5cf0b8358b8ad0 (remoteproc: qcom: Add per subsystem SSR notification) which adds a use of kzalloc() without ensuring that it is prototyped.

#1 lore raw
Quoted 6 lines · Mark Brown

Since Friday -next has been failing to build various arm and arm64 configurations with:

drivers/remoteproc/qcom_common.c:210:9: error: implicit declaration of function 'kzalloc' [-Werror,-Wimplicit-function-declaration]

        info = kzalloc(sizeof(*info), GFP_KERNEL);
               ^

That has a trivial fix. I have contacted Bjorn to find out whether he's going to do it or whether he wants someone else to. Thanks for pointing it out.

-Alex

Quoted 9 lines

drivers/remoteproc/qcom_common.c:210:7: warning: incompatible integer to pointer conversion assigning to 'struct qcom_ssr_subsystem *' from 'int' [-Wint-conversion]

        info = kzalloc(sizeof(*info), GFP_KERNEL);
             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1 warning and 1 error generated.

caused by 5abfe5cf0b8358b8ad0 (remoteproc: qcom: Add per subsystem SSR notification) which adds a use of kzalloc() without ensuring that it is prototyped.