kernel-doc (5d2d4a9f603a47403395408f64b1261ca61f6d50) | kernel-doc (aeb9ce058d7c6193dc41e06b3a5b29d22c446b14) |
---|---|
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> ## --- 1578 unchanged lines hidden (view full) --- 1587 elsif ($type eq "" && ($param eq "struct" or $param eq "union")) 1588 # handle unnamed (anonymous) union or struct: 1589 { 1590 $type = $param; 1591 $param = "{unnamed_" . $param . "}"; 1592 $parameterdescs{$param} = "anonymous\n"; 1593 $anon_struct_union = 1; 1594 } | 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> ## --- 1578 unchanged lines hidden (view full) --- 1587 elsif ($type eq "" && ($param eq "struct" or $param eq "union")) 1588 # handle unnamed (anonymous) union or struct: 1589 { 1590 $type = $param; 1591 $param = "{unnamed_" . $param . "}"; 1592 $parameterdescs{$param} = "anonymous\n"; 1593 $anon_struct_union = 1; 1594 } |
1595 elsif ($param =~ "__cacheline_group" ) 1596 # handle cache group enforcing variables: they do not need be described in header files 1597 { 1598 return; # ignore __cacheline_group_begin and __cacheline_group_end 1599 } |
|
1595 1596 # warn if parameter has no description 1597 # (but ignore ones starting with # as these are not parameters 1598 # but inline preprocessor statements); 1599 # Note: It will also ignore void params and unnamed structs/unions 1600 if (!defined $parameterdescs{$param} && $param !~ /^#/) { 1601 $parameterdescs{$param} = $undescribed; 1602 --- 924 unchanged lines hidden --- | 1600 1601 # warn if parameter has no description 1602 # (but ignore ones starting with # as these are not parameters 1603 # but inline preprocessor statements); 1604 # Note: It will also ignore void params and unnamed structs/unions 1605 if (!defined $parameterdescs{$param} && $param !~ /^#/) { 1606 $parameterdescs{$param} = $undescribed; 1607 --- 924 unchanged lines hidden --- |