summaryrefslogtreecommitdiff
path: root/.checkpatch.conf
AgeCommit message (Collapse)Author
2022-12-05global: Move remaining CONFIG_SYS_* to CFG_SYS_*Tom Rini
The rest of the unmigrated CONFIG symbols in the CONFIG_SYS namespace do not easily transition to Kconfig. In many cases they likely should come from the device tree instead. Move these out of CONFIG namespace and in to CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2021-04-22checkpatch: Ignore ENOSYS warningsSean Anderson
There are no system calls in U-Boot, but ENOSYS is still allowed (and preferred since 42a2668743 ("dm: core: Document the common error codes")). Silence this warning. Signed-off-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
2020-06-04checkpatch.pl: Add a U-Boot optionSimon Glass
Add an option to indicate that U-Boot-specific checks should be enabled. Add a function to house the code that will be added. Signed-off-by: Simon Glass <sjg@chromium.org>
2018-01-19checkpatch: Ignore 'short' Kconfig help entriesTom Rini
A 2 line help entry for a new Kconfig entry is, at this time, sufficient in some cases, so lets drop that warning for now. Signed-off-by: Tom Rini <trini@konsulko.com>
2016-01-25checkpatch: ignore request to use ether_addr_copy()Stephen Warren
The Linux kernel, from which checkpatch originates, contains function ether_addr_copy() to copy Ethernet MAC addresses, and checkpatch warns that it should be used in preference to memcpy() where appropriate. U-Boot doesn't contain ether_addr_copy(), so tell checkpatch not to issue this warning. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Tested-by: Anand Moon <linux.amoon@gmail.com> Reviewed-by: Anand Moon <linux.amoon@gmail.com>
2013-06-24checkpatch: add ignore for network block comment style checkingBo Shen
When use checkpatch.pl to check network related patch, it will report --->8--- WARNING: networking block comments don't use an empty /* line, use /* Comment... ---<8--- So, add --ignore NETWORKING_BLOCK_COMMENT_STYLE into .checkpatch.conf This will help to keep all driver include network related driver use the same comment style Signed-off-by: Bo Shen <voice.shen@atmel.com>
2013-03-27.checkpatch.conf: ignore udelay->usleep_range warningsMatt Porter
usleep_range() is a Linux facility, ignore it when udelay() is encountered. Signed-off-by: Matt Porter <mporter@ti.com>
2013-03-11tools: enable more checkpatch tests by defaultKim Phillips
without this, patches don't get checked for proper alignment, and e.g., for spaces after a cast and/or before a semicolon. Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
2011-11-17tools: checkpatch.pl from Linux added to toolsJoe Hershberger
Added from Linux - commit 30ecad51849ae132dc6ef6ddb62d499c7257515b Include config file to ignore common false-positives Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Wolfgang Denk <wd@denx.de>