]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: fix incorrect warning for function prototype
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 16 Jan 2018 19:20:52 +0000 (11:20 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 28 Feb 2018 15:22:29 +0000 (07:22 -0800)
commita86a679f6e7a0a8c38c29388d61d33217daab50d
tree2b329a5ecea10604822d602826301ed64f2edc29
parent9de69670eeea662a6a571a24c48196868f1002d5
fm10k: fix incorrect warning for function prototype

Recent kernels now complain about incorrect function prototype comments,
in order to ensure comments are accurate to the function. However, it
incorrectly associates the comment above the fm10k_pci_tbl[] as
a function header comment. Fix this by removing the extra "*" in the
comment. This normally indicates that the function is a doxygen style
function header comment.

Once removed, the logic no longer kicks in and the following warning is
fixed:

  warning: cannot understand function prototype: 'const struct pci_device_id fm10k_pci_tbl[] = '

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c