linux-next: build failure after merge of the regulator tree

4 messages, 3 authors, 2021-11-23 · open the first message on its own page

linux-next: build failure after merge of the regulator tree

From: Stephen Rothwell <hidden>
Date: 2021-11-23 07:41:48

Hi all,

After merging the regulator tree, today's linux-next build (s390
allmodconfig) failed like this:

include/linux/mfd/rohm-generic.h:93:12: error: 'rohm_regulator_set_voltage_sel_restricted' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

Caused by commit

  8b6e88555971 ("regulator: rohm-regulator: add helper for restricted voltage setting")

-- 
Cheers,
Stephen Rothwell

Re: linux-next: build failure after merge of the regulator tree

From: Vaittinen, Matti <hidden>
Date: 2021-11-23 08:33:51

Hi dee Ho peeps,

On 11/23/21 09:41, Stephen Rothwell wrote:
Hi all,

After merging the regulator tree, today's linux-next build (s390
allmodconfig) failed like this:

include/Linux/mfd/rohm-generic.h:93:12: error: 'rohm_regulator_set_voltage_sel_restricted' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

Caused by commit

   8b6e88555971 ("regulator: rohm-regulator: add helper for restricted voltage setting")

Ouch. The stub in header should be inlined. Sorry for that. I'll send 
incremental patch to Mark - please let me know if that's not sufficient?

Best Regards
	-- Matti Vaittinen

-- 
The Linux Kernel guy at ROHM Semiconductors

Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~ this year is the year of a signature writers block ~~

Re: linux-next: build failure after merge of the regulator tree

From: Vaittinen, Matti <hidden>
Date: 2021-11-23 09:26:53

Hi again,

On 11/23/21 09:41, Stephen Rothwell wrote:
Hi all,

After merging the regulator tree, today's linux-next build (s390
allmodconfig) failed like this:

include/linux/mfd/rohm-generic.h:93:12: error: 'rohm_regulator_set_voltage_sel_restricted' defined but not used [-Werror=unused-function]
cc1: all warnings being treated as errors

Caused by commit

   8b6e88555971 ("regulator: rohm-regulator: add helper for restricted voltage setting")
As a second thought - do we need such a stub function at all? I guess 
anyone who is actually adding a call to the 
rohm_regulator_set_voltage_sel_restricted()  helper should also have the 
implementation selected. Failing to do so is probably indication of an 
error. Compile testing could perhaps be an exception but this is 
currently not supported.

Should I just drop the stub or make it inline? Am I overlooking something?

Best Regards
	-- Matti Vaittinen

-- 
The Linux Kernel guy at ROHM Semiconductors

Matti Vaittinen, Linux device drivers
ROHM Semiconductors, Finland SWDC
Kiviharjunlenkki 1E
90220 OULU
FINLAND

~~ this year is the year of a signature writers block ~~

Re: linux-next: build failure after merge of the regulator tree

From: Mark Brown <broonie@kernel.org>
Date: 2021-11-23 14:18:06

On Tue, Nov 23, 2021 at 09:26:45AM +0000, Vaittinen, Matti wrote:
As a second thought - do we need such a stub function at all? I guess 
anyone who is actually adding a call to the 
rohm_regulator_set_voltage_sel_restricted()  helper should also have the 
implementation selected. Failing to do so is probably indication of an 
error. Compile testing could perhaps be an exception but this is 
currently not supported.
Should I just drop the stub or make it inline? Am I overlooking something?
Dropping it does seem reasonable, I can't immediately think of a case
where the stub would get used.  I've queued your existing patch to try
to make sure that a fix lands tomorrow so (assuming no test issues)
please send a removal patch on top of that.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help