Skip to content
  • Greg Kroah-Hartman's avatar
    kobject: remove the static array for the name · ce2c9cb0
    Greg Kroah-Hartman authored
    
    
    Due to historical reasons, struct kobject contained a static array for
    the name, and a dynamic pointer in case the name got bigger than the
    array.  That's just dumb, as people didn't always know which variable to
    reference, even with the accessor for the kobject name.
    
    This patch removes the static array, potentially saving a lot of memory
    as the majority of kobjects do not have a very long name.
    
    Thanks to Kay for the idea to do this.
    
    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    ce2c9cb0