Skip to contentSkip to conversation

please revert: regulator: dbx500: use seq_puts() instead of seq_printf()

PATCH Arnd Bergmann 2 participants 3 messages Mar 20, 2014 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

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
index f111dfb..3dd1096 100644
@@ -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

#1 lore raw
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.

[1] http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=80c48e72f831bbfea4bf58d8e78ff2b18c90ec17)

Best regards,
Jingoo Han

Quoted 40 lines

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
index f111dfb..3dd1096 100644
@@ -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

#2 lore raw
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.

[1] http://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/?id=80c48e72f831bbfea4bf58d8e78ff2b18c90ec17)

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