Hi,
I'm trying to backport an updated lm85 driver on RHEL5 to provide
support for an EMC6D103 hardware monitoring chip.
Backporting from more recent kernels fails around the patch "Convert to
a new-style i2c driver" from 2008-10-17 on RHEL5 and I'm unsure how to
fix that.
Then I remembered Jean's stand alone drivers:
http://khali.linux-fr.org/devel/lm-sensors/drivers/lm85/
which appear to potentially support RHEL5 but unfortunately I'm still
experiencing problems compiling that code on RHEL5 (see below).
I'd really appreciate any assistance getting a more updated driver
available for RHEL5.
Thanks,
Phil
[phil@Quad lm85]$ make modules
CC [M] /home/phil/Desktop/tmp/lm85/lm85.o
In file included from /home/phil/Desktop/tmp/lm85/lm85.c:42:
/home/phil/Desktop/tmp/lm85/i2c-compat.h:29: warning: initialization
discards qualifiers from pointer target type
/home/phil/Desktop/tmp/lm85/lm85.c:371: error: unknown field ‘probe’
specified in initializer
/home/phil/Desktop/tmp/lm85/lm85.c:371: warning: missing braces around
initializer
/home/phil/Desktop/tmp/lm85/lm85.c:371: warning: (near initialization
for ‘lm85_driver.list’)
/home/phil/Desktop/tmp/lm85/lm85.c:371: warning: initialization from
incompatible pointer type
/home/phil/Desktop/tmp/lm85/lm85.c:372: error: unknown field ‘remove’
specified in initializer
/home/phil/Desktop/tmp/lm85/lm85.c:372: warning: excess elements in
struct initializer
/home/phil/Desktop/tmp/lm85/lm85.c:372: warning: (near initialization
for ‘lm85_driver’)
/home/phil/Desktop/tmp/lm85/lm85.c:373: error: unknown field ‘id_table’
specified in initializer
/home/phil/Desktop/tmp/lm85/lm85.c:373: warning: excess elements in
struct initializer
/home/phil/Desktop/tmp/lm85/lm85.c:373: warning: (near initialization
for ‘lm85_driver’)
/home/phil/Desktop/tmp/lm85/lm85.c:374: error: unknown field ‘detect’
specified in initializer
/home/phil/Desktop/tmp/lm85/lm85.c:374: warning: excess elements in
struct initializer
/home/phil/Desktop/tmp/lm85/lm85.c:374: warning: (near initialization
for ‘lm85_driver’)
/home/phil/Desktop/tmp/lm85/lm85.c:376: error: unknown field
‘address_data’ specified in initializer
/home/phil/Desktop/tmp/lm85/lm85.c:376: warning: excess elements in
struct initializer
/home/phil/Desktop/tmp/lm85/lm85.c:376: warning: (near initialization
for ‘lm85_driver’)
/home/phil/Desktop/tmp/lm85/lm85.c: In function ‘lm85_detect’:
/home/phil/Desktop/tmp/lm85/lm85.c:1206: warning: unused variable ‘address’
/home/phil/Desktop/tmp/lm85/lm85.c: In function ‘lm85_probe’:
/home/phil/Desktop/tmp/lm85/lm85.c:1377: warning: assignment from
incompatible pointer type
/home/phil/Desktop/tmp/lm85/lm85.c: In function ‘lm85_remove’:
/home/phil/Desktop/tmp/lm85/lm85.c:1396: warning: passing argument 1 of
‘hwmon_device_unregister’ from incompatible pointer type
make[2]: *** [/home/phil/Desktop/tmp/lm85/lm85.o] Error 1
make[1]: *** [_module_/home/phil/Desktop/tmp/lm85] Error 2
make: *** [modules] Error 2
[phil@Quad lm85]$
_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors