Hi,
On 08/08/2013 01:24 PM, Holger Bürger wrote:
Hi,
Yes you can simply remove the line in question, and the 2 lines remove
it, so remove the following lines:
But I have more errors then.
Yes, it now passes building sch56xx-common.c, and moves on to another
file which has other issues.
make -C /lib/modules/2.6.18-348.el5/build M=/root/test modules
make[1]: Entering directory `/usr/src/kernels/2.6.18-348.12.1.el5-i686'
CC [M] /root/test/sch56xx-common.o
CC [M] /root/test/sch5636.o
/root/test/sch5636.c: In function »show_in_value«:
/root/test/sch5636.c:189: Fehler: Implizite Deklaration der Funktion
»DIV_ROUND_CLOSEST«
To fix this replace (at line 189):
val = DIV_ROUND_CLOSEST(
data->in[attr->index] * SCH5636_REG_IN_FACTORS[attr->index],
255);
With:
val = data->in[attr->index] * SCH5636_REG_IN_FACTORS[attr->index] / 255;
/root/test/sch5636.c: In function »sch5636_remove«:
/root/test/sch5636.c:392: Warnung: Übergabe des Arguments 1 von
»hwmon_device_unregister« von inkompatiblem Zeigertyp
/root/test/sch5636.c: In function »sch5636_probe«:
/root/test/sch5636.c:505: Warnung: Zuweisung von inkompatiblem Zeigertyp
These 2 warnings can be ignored.
You likely need to make the same change in sch5627.c
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors