[asterisk-bugs] [DAHDI-linux 0014965]: xpp fails building with kernel 2.6.30-rc3: error: 'struct device' has no member named 'bus_id'
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Apr 23 19:14:39 CDT 2009
The following issue has been SUBMITTED.
======================================================================
http://bugs.digium.com/view.php?id=14965
======================================================================
Reported By: tzafrir
Assigned To: tzafrir
======================================================================
Project: DAHDI-linux
Issue ID: 14965
Category: Astribank (xpp)
Reproducibility: have not tried
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 2009-04-23 19:14 CDT
Last Modified: 2009-04-23 19:14 CDT
======================================================================
Summary: xpp fails building with kernel 2.6.30-rc3: error:
'struct device' has no member named 'bus_id'
Description:
On kernel 2.6.30 struct device no longer has a member called bus_id. The
information is available through dev_name()
The attached patch provides a compatibility dev_name() macro for older
versions.
However there are still warnings because we write directly to that field.
See:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1fa5ae857bb14f6046205171d98506d8112dd74e
Error encountered:
drivers/dahdi/xpp/card_fxo.c: In function 'fxo_xpd_probe':
drivers/dahdi/xpp/card_fxo.c:1351: error: 'struct device' has no member
named 'bus_id'
make[3]: ***
[/home/tzafrir/Proj/Asterisk/Svn/dahdi-linux/drivers/dahdi/xpp/card_fxo.o]
Error 1
make[2]: ***
[/home/tzafrir/Proj/Asterisk/Svn/dahdi-linux/drivers/dahdi/xpp] Error 2
make[1]: ***
[_module_/home/tzafrir/Proj/Asterisk/Svn/dahdi-linux/drivers/dahdi] Error
2
make[1]: Leaving directory `/home/tzafrir/Proj/Kernel/linux-2.6'
make: *** [modules] Error 2
Warnings with the patch applied:
drivers/dahdi/xpp/xbus-sysfs.c: In function 'xpd_device_register':
drivers/dahdi/xpp/xbus-sysfs.c:705: warning: passing argument 1 of
'snprintf' discards qualifiers from pointer target type
drivers/dahdi/xpp/xbus-sysfs.c: In function 'xbus_sysfs_create':
drivers/dahdi/xpp/xbus-sysfs.c:762: warning: passing argument 1 of
'snprintf' discards qualifiers from pointer target type
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2009-04-23 19:14 tzafrir New Issue
2009-04-23 19:14 tzafrir Status new => assigned
2009-04-23 19:14 tzafrir Assigned To => tzafrir
======================================================================
More information about the asterisk-bugs
mailing list