kernel-doc (b77fdd6a48e60a0ed1865edbe6d9bf0538551f85) | kernel-doc (0c3ebff535956d2718594dc90aa9cc87521ec9fd) |
---|---|
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> ## --- 1587 unchanged lines hidden (view full) --- 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 1603 if (show_warnings($type, $declaration_name) && $param !~ /\./) { | 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> ## --- 1587 unchanged lines hidden (view full) --- 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 1603 if (show_warnings($type, $declaration_name) && $param !~ /\./) { |
1604 emit_warning("${file}:$.", "Function parameter or member '$param' not described in '$declaration_name'\n"); | 1604 emit_warning("${file}:$.", "Function parameter or struct member '$param' not described in '$declaration_name'\n"); |
1605 } 1606 } 1607 1608 # strip spaces from $param so that it is one continuous string 1609 # on @parameterlist; 1610 # this fixes a problem where check_sections() cannot find 1611 # a parameter like "addr[6 + 2]" because it actually appears 1612 # as "addr[6", "+", "2]" on the parameter list; --- 921 unchanged lines hidden --- | 1605 } 1606 } 1607 1608 # strip spaces from $param so that it is one continuous string 1609 # on @parameterlist; 1610 # this fixes a problem where check_sections() cannot find 1611 # a parameter like "addr[6 + 2]" because it actually appears 1612 # as "addr[6", "+", "2]" on the parameter list; --- 921 unchanged lines hidden --- |