Skip to contentSkip to conversation

i2c-philips-par

DISCUSSION Jean Delvare 1 participant 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

For the problem where i2c-philips-par doesn't compile, try adding:
#include <asm/param.h> /* for HZ */
after the other includes in kernel/i2c-philips-par.c.

Strange why most people don't need that and you both would... Please report successes or failures.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#1 lore raw
Quoted 9 lines
Quoted 3 lines

Try replacing the line I told you to add by this one:
#define HZ 100
(...)

Okay, this line seams to be work. After adding it to the i2c-philips-par.c "make all" also exits by parsing the files i2c-velleman.c, i2c-elv.c and i2c-pport.c. I added the line on each file and it works - except i2c-pport.c. On this file I will get the same error.

This is strange. Could you double-check that the error is strictly identical?

BTW I have another idea. I think that the "right" fix is to add this line:
#include <linux/sched.h>
instead of the others I suggested so far. Could you please verify that it works for you? If it does I'll apply it to our CVS repository.

Quoted 3 lines

So far I commented the line for this file out in the Module.mk and make all runs with no errors. I think the pport isn't so important for using ml_sensors, is it?!

Correct, you most likely won't need it. Still I wonder why the fix doesn't work for these.

Quoted 3 lines

Hm, don't know why I will get these errors. My CPU is an AMD Athlon XP 2600+. My "uname -a" output is "Linux igge 2.4.21-166-athlon #1 Thu Dec 18 18:24:05 UTC 2003 i686 athlon i386 GNU/Linux".

So it is an i386 architecture. Do you have anything else particular on this machine? The other person who has the same problem as you reports he is using win4lin.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/