lkml.org 
[lkml]   [2013]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] sysfs: Fix build when sysfs is disabled
    On Fri, Jan 25, 2013 at 12:13:59PM -0800, David Rientjes wrote:
    > "sysfs: Functions for adding/removing symlinks to/from attribute groups"
    > causes a build failure when CONFIG_SYSFS is disabled:
    >
    > drivers/acpi/power.c: In function 'acpi_power_hide_list':
    > drivers/acpi/power.c:463: error: implicit declaration of function 'sysfs_remove_link_from_group'
    > drivers/acpi/power.c: In function 'acpi_power_expose_list':
    > drivers/acpi/power.c:486: error: implicit declaration of function 'sysfs_add_link_to_group'
    >
    > We need to define empty functions for this config to avoid ifdefs in the
    > code.
    >
    > Signed-off-by: David Rientjes <rientjes@google.com>
    > ---
    > include/linux/sysfs.h | 12 ++++++++++++
    > 1 file changed, 12 insertions(+)

    Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    Rafael has to take this through his tree.



    \
     
     \ /
      Last update: 2013-01-25 22:22    [W:2.831 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site