mainline build failure due to ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver")
Subsystems (3)
Hi All,
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static int cs42l43_runtime_resume(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function]
1124 | static int cs42l43_runtime_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function]
1106 | static int cs42l43_resume(struct device *dev)
| ^~~~~~~~~~~~~~
drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function]
1076 | static int cs42l43_suspend(struct device *dev)
| ^~~~~~~~~~~~~~~git bisect pointed to ace6d1448138 ("mfd: cs42l43: Add support for cs42l43 core driver")
I will be happy to test any patch or provide any extra log if needed.
Signature · 2 lines
Regards Sudip
Quoted 19 lines · Sudip Mukherjee (Codethink)
Hi All,
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~
Quoted 3 lines
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")I will be happy to test any patch or provide any extra log if needed.
Adding __maybe_unused for those PM functions should work around it, something like below. Could you check it?
If it's confirmed to work, I'll submit properly.
thanks,
Takashi
-- 8< --
From: Takashi Iwai <[email protected]>
Subject: [PATCH] mfd: cs42l43: Fix unused function errors for PM callbacks
Add __maybe_unused prefix for suppressing the build errors due to defined-but-not-used PM callbacks.
--- drivers/mfd/cs42l43.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/mfd/cs42l43.c +4 -4
@@ -1073,7 +1073,7 @@ void cs42l43_dev_remove(struct cs42l43 *cs42l43) }EXPORT_SYMBOL_NS_GPL (cs42l43_dev_remove,MFD_CS42L43 ); -static int cs42l43_suspend (struct device *dev) +static int __maybe_unused cs42l43_suspend (struct device *dev) {struct cs42l43 *cs42l43 =dev_get_drvdata (dev);int ret;
@@ -1103,7 +1103,7 @@ static int cs42l43_suspend(struct device *dev)return 0 ; } -static int cs42l43_resume (struct device *dev) +static int __maybe_unused cs42l43_resume (struct device *dev) {struct cs42l43 *cs42l43 =dev_get_drvdata (dev);int ret;
@@ -1121,7 +1121,7 @@ static int cs42l43_resume(struct device *dev)return 0 ; } -static int cs42l43_runtime_suspend (struct device *dev) +static int __maybe_unused cs42l43_runtime_suspend (struct device *dev) {struct cs42l43 *cs42l43 =dev_get_drvdata (dev);
@@ -1135,7 +1135,7 @@ static int cs42l43_runtime_suspend(struct device *dev)return 0 ; } -static int cs42l43_runtime_resume (struct device *dev) +static int __maybe_unused cs42l43_runtime_resume (struct device *dev) {struct cs42l43 *cs42l43 =dev_get_drvdata (dev);unsigned int reset_canary;
Signature · 1 line
2.35.3
Quoted 3 lines · Sudip Mukherjee (Codethink)
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
Thx for the report and involving regzbot.
FWIW, 0day bot noticed this earlier and Charles Keepax (now CCed) afaics even submitted a fix a bit more than a week ago, but that didn't get any further it seems:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
Ciao, Thorsten
Quoted 13 lines
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~
Quoted 3 lines
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")I will be happy to test any patch or provide any extra log if needed.
P.S.:
#regzbot monitor:
https://lore.kernel.org/all/[email protected]/
#regzbot monitor:
https://lore.kernel.org/all/[email protected]/
#regzbot fix: mfd: cs42l43: Use correct macro for new-style PM runtime ops
Quoted 21 lines · Takashi Iwai
Quoted 19 lines · Sudip Mukherjee (Codethink)
Hi All,
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~
Quoted 9 lines
Quoted 3 lines
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")I will be happy to test any patch or provide any extra log if needed.
Adding
__maybe_unusedfor those PM functions should work around it, something like below. Could you check it?
If it's confirmed to work, I'll submit properly.
This is probably the correct fix:
https://lore.kernel.org/lkml/[email protected]/
Just waiting on it to be reviewed.
Thanks,
Charles
Quoted 33 lines · Charles Keepax
Quoted 21 lines · Takashi Iwai
Quoted 19 lines · Sudip Mukherjee (Codethink)
Hi All,
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~Quoted 9 lines
Quoted 3 lines
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")I will be happy to test any patch or provide any extra log if needed.
Adding
__maybe_unusedfor those PM functions should work around it, something like below. Could you check it?
If it's confirmed to work, I'll submit properly.
Quoted 5 lines
This is probably the correct fix:
https://lore.kernel.org/lkml/[email protected]/
Just waiting on it to be reviewed.
Thanks, that looks better. Let's wait for the patch acceptance.
Takashi
Hi All,
Quoted 19 lines · Sudip Mukherjee (Codethink)
Hi All,
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~
Quoted 1 line
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")
Since its almost time for v6.6-rc3, so just a quick reminder that this build failure is still not fixed.
Signature · 2 lines
Regards Sudip
Quoted 21 lines · Sudip Mukherjee
Quoted 19 lines · Sudip Mukherjee (Codethink)
Hi All,
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~
Quoted 4 lines
Quoted 1 line
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")Since its almost time for v6.6-rc3, so just a quick reminder that this build failure is still not fixed.
Are you sure? I had expected eb72d5207008db ("mfd: cs42l43: Use correct macro for new-style PM runtime ops")[1] that was merged this week would have fixed this. Or am I mixing different problems up here?
Ciao, Thorsten
Quoted 20 lines · Thorsten Leemhuis
Quoted 19 lines · Sudip Mukherjee
Quoted 17 lines · Sudip Mukherjee (Codethink)
The latest mainline kernel branch fails to build alpha, csky and s390 allmodconfig with the error:
drivers/mfd/cs42l43.c:1138:12: error: 'cs42l43_runtime_resume' defined but not used [-Werror=unused-function]
1138 | static intcs42l43_runtime_resume(struct device *dev)| ^~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1124:12: error: 'cs42l43_runtime_suspend' defined but not used [-Werror=unused-function] 1124 | static int cs42l43_runtime_suspend(struct device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1106:12: error: 'cs42l43_resume' defined but not used [-Werror=unused-function] 1106 | static int cs42l43_resume(struct device *dev) | ^~~~~~~~~~~~~~ drivers/mfd/cs42l43.c:1076:12: error: 'cs42l43_suspend' defined but not used [-Werror=unused-function] 1076 | static int cs42l43_suspend(struct device *dev) | ^~~~~~~~~~~~~~~
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
git bisect pointed to
ace6d1448138("mfd: cs42l43: Add support for cs42l43 core driver")Since its almost time for v6.6-rc3, so just a quick reminder that this build failure is still not fixed.
Are you sure? I had expected
eb72d5207008db("mfd: cs42l43: Use correct macro for new-style PM runtime ops")[1] that was merged this week would have fixed this. Or am I mixing different problems up here?
Ahh, sorry, just noticed Linus merged that fix a few hours after your mail, so I guess everything should be settled now. Ciao, Thorsten