From: Paul Cercueil <paul@crapouillou.net>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Lee Jones <lee.jones@linaro.org>,
linux-kernel@vger.kernel.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH 13/28] mfd: sec: Remove #ifdef guards for PM related functions
Date: Mon, 08 Aug 2022 12:14:15 +0200 [thread overview]
Message-ID: <RFKAGR.U6QGSG9SKKVK3@crapouillou.net> (raw)
In-Reply-To: <e4dbc605-e998-dbca-b9bc-322783578564@linaro.org>
[...]
>>>> ---
>>>> drivers/mfd/sec-core.c | 7 +++----
>>>> 1 file changed, 3 insertions(+), 4 deletions(-)
>>>>
>>>> diff --git a/drivers/mfd/sec-core.c b/drivers/mfd/sec-core.c
>>>> index 1fb29c45f5cf..a467de2b2fea 100644
>>>> --- a/drivers/mfd/sec-core.c
>>>> +++ b/drivers/mfd/sec-core.c
>>>> @@ -455,7 +455,6 @@ static void sec_pmic_shutdown(struct
>>>> i2c_client
>>>> *i2c)
>>>> regmap_update_bits(sec_pmic->regmap_pmic, reg, mask, 0);
>>>> }
>>>>
>>>> -#ifdef CONFIG_PM_SLEEP
>>>> static int sec_pmic_suspend(struct device *dev)
>>>
>>> Did you test W=1 with !CONFIG_PM_SLEEP? No warnings?
>>
>> I tested the PR with !CONFIG_PM_SLEEP, correct. sec-core.o compiles
>> fine. No warnings with W=1.
>
> Ah, I see now. _DEFINE_DEV_PM_OPS uses __maybe_unused for such case.
Actually it doesn't :) Since the (dev_pm_ops) structure is always (and
should always be) referenced through pm_sleep_ptr() or pm_ptr(), the
symbols are never seen as unused by the compiler, but are automatically
dropped by the compiler when the related config option is turned off.
Cheers,
-Paul
next prev parent reply other threads:[~2022-08-08 10:14 UTC|newest]
Thread overview: 56+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-07 14:52 [PATCH 00/28] mfd: Remove #ifdef guards for PM functions Paul Cercueil
2022-08-07 14:52 ` [PATCH 01/28] mfd: 88pm80x: Remove #ifdef guards for PM related functions Paul Cercueil
2022-08-07 14:52 ` [PATCH 02/28] mfd: aat2870: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 03/28] mfd: adp5520: " Paul Cercueil
2022-08-08 7:46 ` Hennerich, Michael
2022-08-07 14:52 ` [PATCH 04/28] mfd: max8925-i2c: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 05/28] mfd: mt6397-irq: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 06/28] mfd: pcf50633: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 07/28] mfd: rc5t583-irq: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 08/28] mfd: stpmic1: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 09/28] mfd: ucb1x00: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 10/28] mfd: 88pm860x: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 11/28] mfd: intel_soc_pmic: " Paul Cercueil
2022-08-07 15:50 ` Andy Shevchenko
2022-08-07 15:58 ` Paul Cercueil
2022-08-08 11:56 ` Andy Shevchenko
2022-08-08 12:13 ` Lee Jones
2022-08-07 14:52 ` [PATCH 12/28] mfd: mcp-sa11x0: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 13/28] mfd: sec: " Paul Cercueil
2022-08-08 9:11 ` Krzysztof Kozlowski
2022-08-08 9:28 ` Paul Cercueil
2022-08-08 10:06 ` Krzysztof Kozlowski
2022-08-08 10:14 ` Paul Cercueil [this message]
2022-08-09 15:33 ` Lee Jones
2022-08-09 15:51 ` Krzysztof Kozlowski
2022-08-09 17:26 ` Lee Jones
2022-08-07 14:52 ` [PATCH 14/28] mfd: sm501: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 15/28] mfd: tc6387xb: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 16/28] mfd: tps6586x: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 17/28] mfd: wm8994: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 18/28] mfd: max77620: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 19/28] mfd: t7l66xb: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 20/28] mfd: arizona: " Paul Cercueil
2022-08-07 17:33 ` kernel test robot
2022-08-08 9:53 ` Richard Fitzgerald
2022-08-08 10:06 ` Paul Cercueil
2022-08-08 10:43 ` Richard Fitzgerald
2022-08-08 11:01 ` Paul Cercueil
2022-08-08 14:00 ` Richard Fitzgerald
2022-08-08 14:47 ` Lee Jones
2022-08-07 14:52 ` [PATCH 21/28] mfd: max14577: " Paul Cercueil
2022-08-08 9:11 ` Krzysztof Kozlowski
2022-08-08 10:06 ` Krzysztof Kozlowski
2022-08-07 14:52 ` [PATCH 22/28] mfd: max77686: " Paul Cercueil
2022-08-08 9:11 ` Krzysztof Kozlowski
2022-08-08 10:06 ` Krzysztof Kozlowski
2022-08-07 14:52 ` [PATCH 23/28] mfd: motorola-cpcap: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 24/28] mfd: sprd-sc27xx: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 25/28] mfd: stmfx: " Paul Cercueil
2022-08-07 16:00 ` kernel test robot
2022-08-07 18:15 ` kernel test robot
2022-08-07 14:52 ` [PATCH 26/28] mfd: stmpe: " Paul Cercueil
2022-08-07 16:42 ` kernel test robot
2022-08-07 17:13 ` kernel test robot
2022-08-07 14:52 ` [PATCH 27/28] mfd: tc3589x: " Paul Cercueil
2022-08-07 14:52 ` [PATCH 28/28] mfd: tc6393xb: " Paul Cercueil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=RFKAGR.U6QGSG9SKKVK3@crapouillou.net \
--to=paul@crapouillou.net \
--cc=b.zolnierkie@samsung.com \
--cc=krzysztof.kozlowski@linaro.org \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®