lkml.org 
[lkml]   [2011]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 1/2] mfd: include linux/module.h for ab5500-core
    From
    Date
    Include linux/module.h to fix below build error:

    CC drivers/mfd/ab5500-core.o
    drivers/mfd/ab5500-core.c:1419: error: 'THIS_MODULE' undeclared here (not in a function)
    drivers/mfd/ab5500-core.c:1437: error: expected declaration specifiers or '...' before string constant
    drivers/mfd/ab5500-core.c:1437: warning: data definition has no type or storage class
    drivers/mfd/ab5500-core.c:1437: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
    drivers/mfd/ab5500-core.c:1437: warning: function declaration isn't a prototype
    drivers/mfd/ab5500-core.c:1438: error: expected declaration specifiers or '...' before string constant
    drivers/mfd/ab5500-core.c:1438: warning: data definition has no type or storage class
    drivers/mfd/ab5500-core.c:1438: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
    drivers/mfd/ab5500-core.c:1438: warning: function declaration isn't a prototype
    drivers/mfd/ab5500-core.c:1439: error: expected declaration specifiers or '...' before string constant
    drivers/mfd/ab5500-core.c:1439: warning: data definition has no type or storage class
    drivers/mfd/ab5500-core.c:1439: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
    drivers/mfd/ab5500-core.c:1439: warning: function declaration isn't a prototype
    make[2]: *** [drivers/mfd/ab5500-core.o] Error 1
    make[1]: *** [drivers/mfd] Error 2
    make: *** [drivers] Error 2

    Signed-off-by: Axel Lin <axel.lin@gmail.com>
    ---
    I got the build error on linux-next 20111104.

    drivers/mfd/ab5500-core.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/mfd/ab5500-core.c b/drivers/mfd/ab5500-core.c
    index 4175544..ec10629 100644
    --- a/drivers/mfd/ab5500-core.c
    +++ b/drivers/mfd/ab5500-core.c
    @@ -13,6 +13,7 @@
    * TODO: Event handling with irq_chip. Waiting for PRCMU fw support.
    */

    +#include <linux/module.h>
    #include <linux/mutex.h>
    #include <linux/err.h>
    #include <linux/platform_device.h>
    --
    1.7.5.4




    \
     
     \ /
      Last update: 2011-11-07 04:21    [W:0.025 / U:59.432 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site