CONFIG_xxxx inconsistency
Quoted 8 lines · On 20011028 Mark D. Studebaker wrote:
The "new" (like
CONFIG_I2C_PCFISA) and "old" (likeCONFIG_I2C_ELEKTOR) have coexisted in our code since as far back as our CVS records go, mid-1999.I thought something had changed recently in the kernel tree to mess things
up but that's not the case. The kernel has all "old" CONFIG things.
No, the problem (as I saw it) was not related to any kernel in particular. There were zones of code like:
#ifdef CONFIG_I2C_BITVELLE
extern int i2c_bitvelle_init(void);
#endif
...
#ifdef CONFIG_I2C_VELLEMAN
i2c_bitvelle_init();#endif
and the new option did not appear anywhere to be defined/undefined, so building i2c in static mode you din't nad any prototypes...do not know if there could be any more serious problem.
Quoted 2 lines
I'll apply your patch to make them all "new".
Thanks, just cvs_upated.
More to come...
TIA
Signature · 4 lines
J.A. Magallon # Let the source be with you... mailto:[email protected] Mandrake Linux release 8.2 (Cooker) for i586 Linux werewolf 2.4.13-ac3-beo #1 SMP Sun Oct 28 09:44:34 CET 2001 i686
Quoted 9 lines · On 20011031 Mark D. Studebaker wrote:
Now I'm wondering if we changed things in the wrong direction. Rather than going from "old" to "new" should we have gone from "new" to "old".
Since the kernel has "old"
CONFIG_xxxthings,
won't us changing things lead to problems with compiles outside of the kernel (which check for definitions ofCONFIG_xxx) and also unnecessary patches?
Quoted 5 lines
Seems like it would be safer to go back to the "old" and make sure the few places that used "new" were switched to "old".
what do you all think?
I have seen that cvs code for i2c has not changed since time ago. What about submitting an update to Linus/Alan with the remaining changes (version info..) and the new config names ? Even you can call it 2.6.2.
Signature · 4 lines
J.A. Magallon # Let the source be with you... mailto:[email protected] Mandrake Linux release 8.2 (Cooker) for i586 Linux werewolf 2.4.13-ac5-beo #1 SMP Tue Oct 30 00:10:00 CET 2001 i686
Quoted 2 lines · On 20011106 Mark Studebaker wrote:
actually kernel 2.4.13 includes a big i2c update, the first since January.
Yes, I know. I patch 2.4.13 and up with the diff to current CVS and it is a few lines and changes (mainly the versioning) since some time ago. So my point is that the bit that the mainline tree lacks to be up to day is so small, that perhaps it is worthy to send a patch with the versioning and the final CONFIG_xxx variables, whaterver they be (I have no preference, I just spotted that there were uses of both, and in some places the new were used and were not defined anywhere...)
Yes, I have reviewed the patch from 2001-11-02 against 2.4.13-14 and just contains the printk() changes, and the CONFIG_ changes in Config's and Configure.help...
Signature · 4 lines
J.A. Magallon # Let the source be with you... mailto:[email protected] Mandrake Linux release 8.2 (Cooker) for i586 Linux werewolf 2.4.14-beo #1 SMP Tue Nov 6 16:23:01 CET 2001 i686
Now I'm wondering if we changed things in the wrong direction. Rather than going from "old" to "new" should we have gone from "new" to "old".
Since the kernel has "old" CONFIG_xxx things,
won't us changing things lead to problems with compiles outside of the kernel (which check for definitions of CONFIG_xxx) and also unnecessary patches?
Seems like it would be safer to go back to the "old" and make sure the few places that used "new" were switched to "old".
what do you all think?
Quoted 40 lines · J . A . Magallon
Quoted 8 lines · On 20011028 Mark D. Studebaker wrote:
The "new" (like
CONFIG_I2C_PCFISA) and "old" (likeCONFIG_I2C_ELEKTOR) have coexisted in our code since as far back as our CVS records go, mid-1999.I thought something had changed recently in the kernel tree to mess things
up but that's not the case. The kernel has all "old" CONFIG things.No, the problem (as I saw it) was not related to any kernel in particular. There were zones of code like:
#ifdef CONFIG_I2C_BITVELLE extern int i2c_bitvelle_init(void); #endif ... #ifdef CONFIG_I2C_VELLEMAN i2c_bitvelle_init();#endif
and the new option did not appear anywhere to be defined/undefined, so building i2c in static mode you din't nad any prototypes...do not know if there could be any more serious problem.
Quoted 2 lines
I'll apply your patch to make them all "new".
Thanks, just
cvs_upated.More to come...
TIA
--
J.A. Magallon # Let the source be with you...
mailto:[email protected]
Mandrake Linux release 8.2 (Cooker) for i586
Linux werewolf 2.4.13-ac3-beo #1 SMP Sun Oct 28 09:44:34 CET 2001 i686
actually kernel 2.4.13 includes a big i2c update, the first since January.
Quoted 27 lines · J . A . Magallon
Quoted 9 lines · On 20011031 Mark D. Studebaker wrote:
Now I'm wondering if we changed things in the wrong direction. Rather than going from "old" to "new" should we have gone from "new" to "old".
Since the kernel has "old"
CONFIG_xxxthings,
won't us changing things lead to problems with compiles outside of the kernel (which check for definitions ofCONFIG_xxx) and also unnecessary patches?Quoted 5 lines
Seems like it would be safer to go back to the "old" and make sure the few places that used "new" were switched to "old".
what do you all think?
I have seen that cvs code for i2c has not changed since time ago. What about submitting an update to Linus/Alan with the remaining changes (version info..) and the new config names ? Even you can call it 2.6.2.
--
J.A. Magallon # Let the source be with you...
mailto:[email protected]
Mandrake Linux release 8.2 (Cooker) for i586
Linux werewolf 2.4.13-ac5-beo #1 SMP Tue Oct 30 00:10:00 CET 2001 i686