linux-next: build failure after merge of the modules tree
Subsystems (2)
Hi Rusty,
After merging the modules tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
arch/powerpc/platforms/powernv/opal-elog.c:85:28: error: macro "__ATTR_RO" passed 2 arguments, but takes just 1
__ATTR_RO(id, elog_id_show);
^arch/powerpc/platforms/powernv/opal-elog.c:85:2: error: '__ATTR_RO' undeclared here (not in a function)
__ATTR_RO(id, elog_id_show);
^arch/powerpc/platforms/powernv/opal-elog.c:87:32: error: macro "__ATTR_RO" passed 2 arguments, but takes just 1
__ATTR_RO(type, elog_type_show);
^And it went down hill from there ...
Caused by commit ba987e9b8ab1 ("arch/powerpc/platforms/powernv/opal-elog.c: fix world-writable sysfs files").
I have used the modules tree from next-20140725 again for today.
There is still the error inarch/powerpc/platforms/powernv/opal-dump.c ...
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Rusty Russell
Acked-by Stewart SmithQuoted 7 lines · Stephen Rothwell
Hi Rusty,
After merging the modules tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
arch/powerpc/platforms/powernv/opal-elog.c:85:28: error: macro "__ATTR_RO" passed 2 arguments, but takes just 1
__ATTR_RO(id, elog_id_show);
Ah, crap. I really hate that macro magic :(
I amended to the minimal fix, so we can pretend that never happened.
Cheers,
Rusty.
commit 6656c21ca10e54a84673d0ec2f0cf5f676e66a40
Author: Rusty Russell <[email protected]> Date: Wed Aug 6 10:15:36 2014 +0930
arch/powerpc/platforms/powernv/opal-elog.c: fix world-writable sysfs files
If you don't have a store function, you're not writable anyway!
arch/powerpc/platforms/powernv/opal-elog.c +2 -2
@@ -82,9 +82,9 @@ static ssize_t elog_ack_store(struct elog_obj *elog_obj, }static struct elog_attribute id_attribute = -__ATTR (id,0666 , elog_id_show,NULL ); +__ATTR (id,S_IRUGO , elog_id_show,NULL );static struct elog_attribute type_attribute = -__ATTR (type,0666 , elog_type_show,NULL ); +__ATTR (type,S_IRUGO , elog_type_show,NULL );static struct elog_attribute ack_attribute =__ATTR (acknowledge,0660 , elog_ack_show, elog_ack_store);
Hi Rusty,
Quoted 4 lines · On Thu, 07 Aug 2014 21:07:20 +0930 Rusty Russell <[email protected]> wrote:
Ah, crap. I really hate that macro magic :(
I amended to the minimal fix, so we can pretend that never happened.
How about arch/powerpc/platforms/powernv/opal-dump.c as well?
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 9 lines · Stephen Rothwell
Hi Rusty,
Quoted 4 lines · On Thu, 07 Aug 2014 21:07:20 +0930 Rusty Russell <[email protected]> wrote:
Ah, crap. I really hate that macro magic :(
I amended to the minimal fix, so we can pretend that never happened.
How about
arch/powerpc/platforms/powernv/opal-dump.cas well?
Hmm, I didn't see that one.
I've done that as a separate patch.
Thanks,
Rusty.
Hi Rusty,
Quoted 6 lines · On Thu, 07 Aug 2014 22:37:50 +0930 Rusty Russell <[email protected]> wrote:
Quoted 4 lines · Stephen Rothwell
Hi Rusty,
Quoted 1 line · On Thu, 07 Aug 2014 21:07:20 +0930 Rusty Russell <[email protected]> wrote:
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Ah, crap. I really hate that macro magic :(
I amended to the minimal fix, so we can pretend that never happened.
How about
arch/powerpc/platforms/powernv/opal-dump.cas well?Hmm, I didn't see that one.
It was in the original report, but I guess a bit hidden by all the guff the gcc spews out these days.
Quoted 1 line
I've done that as a separate patch.
Thanks.
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]