kernel-doc (a976c2951d8f376112361830aa7762beff83a205) kernel-doc (1cb566ba5634d7593b8b2a0a5c83f1c9e14b2e09)
1#!/usr/bin/perl -w
2
3use strict;
4
5## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
6## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
7## Copyright (C) 2001 Simon Huggins ##
8## Copyright (C) 2005-2012 Randy Dunlap ##

--- 2175 unchanged lines hidden (view full) ---

2184 # strip kmemcheck_bitfield_{begin,end}.*;
2185 $members =~ s/kmemcheck_bitfield_.*?;//gos;
2186 # strip attributes
2187 $members =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
2188 $members =~ s/__aligned\s*\([^;]*\)//gos;
2189 $members =~ s/\s*CRYPTO_MINALIGN_ATTR//gos;
2190 # replace DECLARE_BITMAP
2191 $members =~ s/DECLARE_BITMAP\s*\(([^,)]+), ([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
1#!/usr/bin/perl -w
2
3use strict;
4
5## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
6## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##
7## Copyright (C) 2001 Simon Huggins ##
8## Copyright (C) 2005-2012 Randy Dunlap ##

--- 2175 unchanged lines hidden (view full) ---

2184 # strip kmemcheck_bitfield_{begin,end}.*;
2185 $members =~ s/kmemcheck_bitfield_.*?;//gos;
2186 # strip attributes
2187 $members =~ s/__attribute__\s*\(\([a-z,_\*\s\(\)]*\)\)//i;
2188 $members =~ s/__aligned\s*\([^;]*\)//gos;
2189 $members =~ s/\s*CRYPTO_MINALIGN_ATTR//gos;
2190 # replace DECLARE_BITMAP
2191 $members =~ s/DECLARE_BITMAP\s*\(([^,)]+), ([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
2192 # replace DECLARE_HASHTABLE
2193 $members =~ s/DECLARE_HASHTABLE\s*\(([^,)]+), ([^,)]+)\)/unsigned long $1\[1 << (($2) - 1)\]/gos;
2192
2193 create_parameterlist($members, ';', $file);
2194 check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
2195
2196 output_declaration($declaration_name,
2197 'struct',
2198 {'struct' => $declaration_name,
2199 'module' => $modulename,

--- 1015 unchanged lines hidden ---
2194
2195 create_parameterlist($members, ';', $file);
2196 check_sections($file, $declaration_name, "struct", $sectcheck, $struct_actual, $nested);
2197
2198 output_declaration($declaration_name,
2199 'struct',
2200 {'struct' => $declaration_name,
2201 'module' => $modulename,

--- 1015 unchanged lines hidden ---