[ENBD] Problems compiling 2.4.26a on RH6.2 kernel 2.2.19

Peter T. Breuer enbd@lists.community.tummy.com
Fri, 11 Jan 2002 19:46:20 +0100 (MET)


"A month of sundays ago ptb wrote:"
> Perhaps put
> 
>     #ifndef schedule_task
>       #define schedule_task(x) queue_task(x,&tq_scheduler)
>     #endif
> 
> etc.  ??  Suggestions?  This will foulup when there are real functions

I forgot to say that the __init/__exit business comes about because
2.4 has unified tha handling of initial and final functions in both
modules and kernel, so it is sufficient to use __init/__exit as
a modiffier for init_module and cleanup_module respectively.

The worst that can happen by omitting these modifiers is that you waste
some memory space. But I don't know what to do about it because of the
considerable amount of linker magic flying around here. Let me know
if things seem to go alright in 2.2.19 with

   #ifndef __exit
    #define __exit  __attribute__ ((unused, __section__(".text.exit")))
  #endif
  #ifndef __init
    #define __init          __attribute__ ((__section__ (".text.init")))
  #endif
 
and if there is some horror story that results, tell me that I simply
have to define them away to nothing in 2.2.19.

Peter