please revert: regulator: dbx500: use seq_puts() instead of seq_printf()
This patch has shown up in linux-next yesterday, breaking a randconfig build:
commit d5d2ced88dc2690cf28fd531c83a53f0ba132f27
Author: Jingoo Han <[email protected]> Date: Wed Feb 26 10:21:01 2014 +0900
regulator: dbx500: use seq_puts() instead of seq_printf()
For a constant format without additional arguments, use seq_puts() instead of seq_printf(). Also, it fixes the following checkpatch warning.
WARNING: Prefer seq_puts to seq_printf
drivers/regulator/dbx500-prcmu.c +3 -3
@@ -97,10 +97,10 @@ static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p)int err;/* print power state count */ - err =seq_printf (s,"ux500-regulator power state count: %i\n" , -power_state_active_get ()); + err =seq_puts (s,"ux500-regulator power state count: %i\n" , +power_state_active_get ());if (err <0 ) -dev_err (dev,"seq_printf overflow\n" ); +dev_err (dev,"seq_puts overflow\n" );return 0 ; }
drivers/regulator/dbx500-prcmu.c:103:4: error: too many arguments to function 'seq_puts'
The other half of the patch is ok though.
Arnd
Quoted 3 lines · Arnd Bergmann
This patch has shown up in linux-next yesterday, breaking a randconfig build:
(+cc Fengguang Wu)
Hi Arnd,
I really appreciate your report.
However, it was already reported by Fengguang Wu 2 days ago. And, a modified patch was already merged to the current regulator next tree.
Thus, today's linux-next (20140320) cannot make the problem anymore. As presented above, the modified patch was merged to today's linux-next. [1]
I will be more careful next time. Sorry for annoying you. Thank you.
Best regards,
Jingoo Han
Quoted 40 lines
commit
d5d2ced88dc2690cf28fd531c83a53f0ba132f27Author: Jingoo Han <[email protected]> Date: Wed Feb 26 10:21:01 2014 +0900regulator: dbx500: use
seq_puts()instead ofseq_printf()For a constant format without additional arguments, use
seq_puts()instead ofseq_printf(). Also, it fixes the following checkpatch warning.WARNING: Prefer
seq_putstoseq_printfSigned-off-by Jingoo Han <[email protected]>Signed-off-by Mark Brown <[email protected]>drivers/regulator/dbx500-prcmu.c +3
-3@@ -97,10 +97,10 @@ static int ux500_regulator_power_state_cnt_print(struct seq_file *s, void *p)int err;/* print power state count */ - err =seq_printf (s,"ux500-regulator power state count: %i\n" , -power_state_active_get ()); + err =seq_puts (s,"ux500-regulator power state count: %i\n" , +power_state_active_get ());if (err <0 ) -dev_err (dev,"seq_printf overflow\n" ); +dev_err (dev,"seq_puts overflow\n" );return 0 ; }
drivers/regulator/dbx500-prcmu.c:103:4: error: too many arguments to function 'seq_puts'The other half of the patch is ok though.
Arnd
Quoted 14 lines · On Thursday 20 March 2014 17:22:41 Jingoo Han wrote:
Quoted 3 lines · Arnd Bergmann
This patch has shown up in linux-next yesterday, breaking a randconfig build:
(+cc Fengguang Wu)
Hi Arnd,
I really appreciate your report.
However, it was already reported by Fengguang Wu 2 days ago. And, a modified patch was already merged to the current regulator next tree.
Quoted 9 lines
Thus, today's linux-next (20140320) cannot make the problem anymore. As presented above, the modified patch was merged to today's linux-next. [1]
I will be more careful next time. Sorry for annoying you. Thank you.
Ok, very good. Thanks for the reply. I probably should have rebased on today's linux-next before looking for last night's build errors.
Arnd