lkml.org 
[lkml]   [2010]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH] scripts/kernel-doc: handle struct member __aligned
    From: Randy Dunlap <randy.dunlap@oracle.com>

    scripts/kernel-doc erroneously says:

    Warning(include/linux/skbuff.h:410): Excess struct/union/enum/typedef member 'cb' description in 'sk_buff'

    on this line in struct sk_buff:
    char cb[48] __aligned(8);

    due to treating the last field as the struct member name, so
    teach kernel-doc to ignore __aligned(x) in structs.

    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    ---
    scripts/kernel-doc | 2 ++
    1 file changed, 2 insertions(+)

    --- linux-2.6.33-git13.orig/scripts/kernel-doc
    +++ linux-2.6.33-git13/scripts/kernel-doc
    @@ -1424,6 +1424,8 @@ sub dump_struct($$) {
    $nested =~ s/\/\*.*?\*\///gos;
    # strip kmemcheck_bitfield_{begin,end}.*;
    $members =~ s/kmemcheck_bitfield_.*?;//gos;
    + # strip attributes
    + $members =~ s/__aligned\s*\(\d+\)//gos;

    create_parameterlist($members, ';', $file);
    check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);

    \
     
     \ /
      Last update: 2010-03-08 00:45    [W:0.020 / U:4.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site