lkml.org 
[lkml]   [2011]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 3/4] printk: Don't allow direct inclusion
    Date
    printk.h is a subfile of kernel.h, do not allow
    it to be included directly.

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    include/linux/printk.h | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/include/linux/printk.h b/include/linux/printk.h
    index ee048e7..3736545 100644
    --- a/include/linux/printk.h
    +++ b/include/linux/printk.h
    @@ -1,3 +1,7 @@
    +#ifndef _LINUX_KERNEL_H
    +#error "Do not include <linux/printk.h>, use <linux/kernel.h> instead"
    +#endif
    +
    #ifndef __KERNEL_PRINTK__
    #define __KERNEL_PRINTK__

    --
    1.7.4.rc3


    \
     
     \ /
      Last update: 2011-05-25 19:07    [W:0.020 / U:2.436 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site