Skip to content

Instantly share code, notes, and snippets.

@gmacario
Last active December 6, 2017 13:47
Show Gist options
  • Save gmacario/1863c1b78554785907ab475cf1e6baf4 to your computer and use it in GitHub Desktop.
Save gmacario/1863c1b78554785907ab475cf1e6baf4 to your computer and use it in GitHub Desktop.
gmacario@ies-safelin01-ub16:~/linux-stable (master)*$ git log -1
commit bebc6082da0a9f5d47a1ea2edc099bf671058bd4
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Nov 12 10:46:13 2017 -0800
Linux 4.14
gmacario@ies-safelin01-ub16:~/linux-stable (master)*$ make coccicheck MODE=report COCCI=scripts/coccinelle/misc/array_size.cocci
Please check for false positives in the output before submitting a patch.
When using "patch" mode, carefully review the patch before submitting it.
./drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_n.c:16052:42-43: WARNING: Use ARRAY_SIZE
./arch/powerpc/xmon/ppc-opc.c:969:67-68: WARNING: Use ARRAY_SIZE
./arch/powerpc/xmon/ppc-opc.c:7292:24-25: WARNING: Use ARRAY_SIZE
./arch/powerpc/xmon/ppc-opc.c:6984:25-26: WARNING: Use ARRAY_SIZE
./arch/powerpc/xmon/ppc-opc.c:7223:21-22: WARNING: Use ARRAY_SIZE
./tools/perf/tests/bpf.c:312:22-23: WARNING: Use ARRAY_SIZE
./arch/x86/platform/intel-mid/device_libs/platform_gpio_keys.c:67:25-26: WARNING: Use ARRAY_SIZE
./arch/ia64/kernel/perfmon.c:4656:41-42: WARNING: Use ARRAY_SIZE
./tools/perf/arch/x86/util/dwarf-regs.c:106:46-47: WARNING: Use ARRAY_SIZE
gmacario@ies-safelin01-ub16:~/linux-stable (master)*$
Checking report output with source code of v4.14
Under gcc_output/
* filename.stmt ==> Statements - Line numbers being compiled (only for .c files)
* filename.fl ==> Function Length from '{' to '}'
* filename.us ==> Used Structures - Line information and which structure has been used
* filename.decl ==> Variable Declarations???
* filename.st_def ==> Structure definitions - Start to end
* filename.gl ==> Globals (not used at the moment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment