●NXPの BSPを使用して、linux-imxのカーネルコンフィグレーションを行い、
「bitbake linux-imx」を行うと「do_compile」タスクで、以下のエラーが発生し、解消できない。
…(略)…
| …/kernel-source/drivers/video/fbdev/mxsfb.c: In function 'mxsfb_suspend':
| …/kernel-source/drivers/video/fbdev/mxsfb.c:2452:2:
error: implicit declaration of function 'mxsfb_overlay_suspend'; did you mean 'mxsfb_runtime_suspend'? -Werror=implicit-function-declaration
| mxsfb_overlay_suspend(host);
| ^~~~~~~~~~~~~~~~~~~~~
| mxsfb_runtime_suspend
| …/kernel-source/drivers/video/fbdev/mxsfb.c: In function 'mxsfb_resume':
| …/kernel-source/drivers/video/fbdev/mxsfb.c:2472:2:
error: implicit declaration of function 'mxsfb_overlay_resume'; did you mean 'mxsfb_overlay_exit'? -Werror=implicit-function-declaration
| mxsfb_overlay_resume(host);
| ^~~~~~~~~~~~~~~~~~~~
| mxsfb_overlay_exit
…(略)…
①「mxsfb.c:2452/2472」を見てみると、以下のように関数およびマクロ定義されています。
2142:#ifdef CONFIG_PM_SLEEP
2146:static void mxsfb_overlay_resume()
…(略)…
2168:static void mxsfb_overlay_suspend()
…(略)…
2185:#endif
2411:#ifdef CONFIG_PM
2412:static int mxsfb_runtime_suspend()
…(略)…
2427:static int mxsfb_runtime_resume()
…(略)…
2442:#endif
2444:#ifdef CONFIG_PM_SLEEP
2445:static int mxsfb_suspend()
…(略)…
2452: mxsfb_overlay_suspend(host)
…(略)…
2464:static int mxsfb_resume()
…(略)…
2472: mxsfb_overlay_resume(host)
…(略)…
2479:#endif
2481:static const struct dev_pm_ops mxsfb_pm_ops = {
2482: SET_RUNTIME_PM_OPS(mxsfb_runtime_suspend, mxsfb_runtime_resume, NULL)
2483: SET_SYSTEM_SLEEP_PM_OPS(mxsfb_suspend, mxsfb_resume)
2484:};
②「.config」では、以下のように定義されています。
CONFIG_PM_SLEEP=y
CONFIG_PM=y
特に問題ないように思うのですが、何故「mplicit-function-declaration」エラーが発生するのかわかりません。
何か、知見がございましたらご教授いただけないでしょうか?
なお、開発環境は以下のとおりです。
● 環 境
・i.MX Linux Yocto Project BSP 4.14.98_2.3.3 Release
・BitBake Build Tool Core version 1.38.0
よろしく、お願いします。