Re: minor patch to sched.h

From: Greg KH (gregat_private)
Date: Tue Sep 04 2001 - 11:29:36 PDT

  • Next message: Seth Arnold: "Re: minor patch to sched.h"

    On Tue, Sep 04, 2001 at 11:14:18AM -0700, richard offer wrote:
    > 
    > 
    > * frm gregat_private "09/04/01 10:32:50 -0700" | sed '1,$s/^/* /'
    > * 
    > * I don't think this is necessary.  Static variables (like the
    > * init_task_union) are initialized to 0 by the kernel on startup.  So I
    > * don't think we need to explicitly set this (if you notice, not all
    > * fields are set now in the INIT_TASK() macro due to this.)
    > 
    > Right, but some are set to 0, which made me wonder. My suspicion is that
    > you're right, but it may still be worthwhile for documentation purposes.
    
    Not worth it.  The kernel-janitors project is going around the kernel
    getting rid of static initializers that set variables to 0.  This
    reduces the size of the kernel.  It would just get removed by them
    eventually.
    
    And yes, it is documented.  Somewhere.  I don't remember where though :)
    
    greg k-h
    
    _______________________________________________
    linux-security-module mailing list
    linux-security-moduleat_private
    http://mail.wirex.com/mailman/listinfo/linux-security-module
    



    This archive was generated by hypermail 2b30 : Tue Sep 04 2001 - 11:30:34 PDT