kernel-doc (0f69403d2535ffc7200a8414cf3ca66a49b0d741) kernel-doc (3556108eb40a35836df1ef8228eca7ffa7dab764)
1#!/usr/bin/env perl
2# SPDX-License-Identifier: GPL-2.0
3
4use warnings;
5use strict;
6
7## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
8## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##

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

1078 # strip comments:
1079 $members =~ s/\/\*.*?\*\///gos;
1080 # strip attributes
1081 $members =~ s/\s*__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)/ /gi;
1082 $members =~ s/\s*__aligned\s*\([^;]*\)/ /gos;
1083 $members =~ s/\s*__packed\s*/ /gos;
1084 $members =~ s/\s*CRYPTO_MINALIGN_ATTR/ /gos;
1085 $members =~ s/\s*____cacheline_aligned_in_smp/ /gos;
1#!/usr/bin/env perl
2# SPDX-License-Identifier: GPL-2.0
3
4use warnings;
5use strict;
6
7## Copyright (c) 1998 Michael Zucchi, All Rights Reserved ##
8## Copyright (C) 2000, 1 Tim Waugh <twaugh@redhat.com> ##

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

1078 # strip comments:
1079 $members =~ s/\/\*.*?\*\///gos;
1080 # strip attributes
1081 $members =~ s/\s*__attribute__\s*\(\([a-z0-9,_\*\s\(\)]*\)\)/ /gi;
1082 $members =~ s/\s*__aligned\s*\([^;]*\)/ /gos;
1083 $members =~ s/\s*__packed\s*/ /gos;
1084 $members =~ s/\s*CRYPTO_MINALIGN_ATTR/ /gos;
1085 $members =~ s/\s*____cacheline_aligned_in_smp/ /gos;
1086
1086 # replace DECLARE_BITMAP
1087 # replace DECLARE_BITMAP
1088 $members =~ s/__ETHTOOL_DECLARE_LINK_MODE_MASK\s*\(([^\)]+)\)/DECLARE_BITMAP($1, __ETHTOOL_LINK_MODE_MASK_NBITS)/gos;
1087 $members =~ s/DECLARE_BITMAP\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
1088 # replace DECLARE_HASHTABLE
1089 $members =~ s/DECLARE_HASHTABLE\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[1 << (($2) - 1)\]/gos;
1090 # replace DECLARE_KFIFO
1091 $members =~ s/DECLARE_KFIFO\s*\(([^,)]+),\s*([^,)]+),\s*([^,)]+)\)/$2 \*$1/gos;
1092 # replace DECLARE_KFIFO_PTR
1093 $members =~ s/DECLARE_KFIFO_PTR\s*\(([^,)]+),\s*([^,)]+)\)/$2 \*$1/gos;
1094

--- 1164 unchanged lines hidden ---
1089 $members =~ s/DECLARE_BITMAP\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[BITS_TO_LONGS($2)\]/gos;
1090 # replace DECLARE_HASHTABLE
1091 $members =~ s/DECLARE_HASHTABLE\s*\(([^,)]+),\s*([^,)]+)\)/unsigned long $1\[1 << (($2) - 1)\]/gos;
1092 # replace DECLARE_KFIFO
1093 $members =~ s/DECLARE_KFIFO\s*\(([^,)]+),\s*([^,)]+),\s*([^,)]+)\)/$2 \*$1/gos;
1094 # replace DECLARE_KFIFO_PTR
1095 $members =~ s/DECLARE_KFIFO_PTR\s*\(([^,)]+),\s*([^,)]+)\)/$2 \*$1/gos;
1096

--- 1164 unchanged lines hidden ---