Skip to contentSkip to conversation

drivers: powercap: 'dev_attrs' has already removed from 'struct class'

Suggestion Chen Gang 2 participants 3 messages Oct 31, 2013 – Nov 1, 2013

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

Hello Maintainers

It is removed by "bcc8edb driver core: remove dev_attrs from struct class" in Oct 5 2013. But "75d2364 PowerCap: Add class driver" still use it in Oct 11 2013.

The related error (for powerpc with allmodconfig):

CC drivers/powercap/powercap_sys.o
drivers/powercap/powercap_sys.c:484:2: error: unknown field ‘dev_attrs’ specified in initializer drivers/powercap/powercap_sys.c:484:2: warning: initialization from incompatible pointer type [enabled by default] drivers/powercap/powercap_sys.c:484:2: warning: (near initialization for ‘powercap_class.suspend’) [enabled by default]

Please give a check thanks.

Thanks.

Signature · 1 line
Chen Gang
#1 lore raw
Quoted 8 lines · Chen Gang

Hello Maintainers

It is removed by "bcc8edb driver core: remove dev_attrs from struct class" in Oct 5 2013. But "75d2364 PowerCap: Add class driver" still use it in Oct 11 2013.

The related error (for powerpc with allmodconfig):

Quoted 7 lines

CC drivers/powercap/powercap_sys.o
drivers/powercap/powercap_sys.c:484:2: error: unknown field ‘dev_attrs’ specified in initializer drivers/powercap/powercap_sys.c:484:2: warning: initialization from incompatible pointer type [enabled by default] drivers/powercap/powercap_sys.c:484:2: warning: (near initialization for ‘powercap_class.suspend’) [enabled by default]

Please give a check thanks.

That should have been fixed in the current linux-next already.

Thanks,
Rafael

author
#2 lore raw
Quoted 18 lines · Rafael J. Wysocki
Quoted 17 lines · Chen Gang

Hello Maintainers

It is removed by "bcc8edb driver core: remove dev_attrs from struct class" in Oct 5 2013. But "75d2364 PowerCap: Add class driver" still use it in Oct 11 2013.

The related error (for powerpc with allmodconfig):

CC drivers/powercap/powercap_sys.o
drivers/powercap/powercap_sys.c:484:2: error: unknown field �dev_attrs� specified in initializer drivers/powercap/powercap_sys.c:484:2: warning: initialization from incompatible pointer type [enabled by default] drivers/powercap/powercap_sys.c:484:2: warning: (near initialization for �powercap_class.suspend�) [enabled by default]

Quoted 4 lines
Quoted 1 line

Please give a check thanks.

That should have been fixed in the current linux-next already.

OK, thanks.

Quoted 5 lines

Thanks,
Rafael

Signature · 1 line
Chen Gang