Re: [PATCH] pinctrl: s32cc: fix !CONFIG_PM_SLEEP build error

From: Arnd Bergmann
Date: Fri Mar 10 2023 - 12:04:25 EST


On Fri, Mar 10, 2023, at 17:51, Chester Lin wrote:
>
> Thanks for your patch and hope you don't mind if I ask a stupid question.
>
> To reproduce this issue, I tried disabling the CONFIG_PM_SLEEP and then
> compile
> linux-pinctrl's latest for-next branch [ef455e9e8f76] but I still can't
> see this
> compilation failure. May I know details such as your configs, compiler
> and kernel-tree?
>
> Here are my steps:
>
> 1. make defconfig
> 2. Set CONFIG_PINCTRL_S32G2=y and unset both CONFIG_SUSPEND & CONFIG_HIBERNATION
> so that CONFIG_PM_SLEEP vanished.
> 3. make oldconfig; make
> 4. Ensure that both s32_pinctrl_suspend and s32_pinctrl_resume are disappeared
> from System.map
>
> I tried the following two gcc versions on both arm64 and x86_64 machines:

I only see the problem on arm64 on yesterday's and today's linux-next.
See my attached .config from a 'make randconfig build'

Arnd

Attachment: 0x8F1A58C0-config
Description: Binary data