staging: ccree: resolve checkpatch issues.
cover staging: ccree: resolve checkpatch issues.
Included is a set of small fixes to resolve all outstanding checkpatch warnings issues for drivers/staging/ccree/cc_hal.h. Two are cosmetic (training whitespace and 80+ character comment), and the other is functional (macro argument previously not wrapped in parentheses).
PATCH 1/3 staging: ccree: resolve training whitespace in cc_hal.h
Removing trailing newlines reported by checkpatch.pl. ie:
ERROR: trailing whitespace (lines 3, 7, 12).
Warnings no longer present after change.
--- drivers/staging/ccree/cc_hal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/ccree/cc_hal.h +3 -3
@@ -1,15 +1,15 @@/* * Copyright (C) 2012-2017 ARM Limited or its affiliates. -* +* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. -* +* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. -* +* * You should have received a copy of the GNU General Public License * along with this program; if not, see <http://www.gnu.org/licenses/>. */
Signature · 1 line
2.7.4
PATCH 2/3 staging: ccree: resolve columns over 80 chars in cc_hal.h
In reply to Matthew GiassaModified comment to resolve 80+ characters warning from checkpatch. ie:
WARNING: line over 80 characters
Warnings no longer present after change.
--- drivers/staging/ccree/cc_hal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/staging/ccree/cc_hal.h +3 -1
@@ -14,7 +14,9 @@* along with this program; if not, see <http://www.gnu.org/licenses/>. */ -/* pseudo cc_hal.h for cc7x_perf_test_driver (to be able to include code from CC drivers) */ +/* pseudo cc_hal.h for cc7x_perf_test_driver (to be able to include code from +* CC drivers). +*/ #ifndef __CC_HAL_H__#define __CC_HAL_H__
Signature · 1 line
2.7.4
PATCH 3/3 staging: ccree: resolve possible macro issue in cc_hal.h
In reply to Matthew GiassaWrapping "offset" in macro definition to resolve checkpatch issue, ie:
CHECK: Macro argument 'offset' may be better as '(offset)' to avoid precedence issues
--- drivers/staging/ccree/cc_hal.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/staging/ccree/cc_hal.h +3 -2
@@ -26,7 +26,8 @@#define READ_REGISTER (_addr) ioread32((_addr))#define WRITE_REGISTER (_addr, _data) iowrite32((_data), (_addr)) -#define CC_HAL_WRITE_REGISTER (offset, val) WRITE_REGISTER(cc_base + offset, val) -#define CC_HAL_READ_REGISTER (offset) READ_REGISTER(cc_base + offset) +#define CC_HAL_WRITE_REGISTER (offset, val) \ + WRITE_REGISTER(cc_base + (offset), val) +#define CC_HAL_READ_REGISTER (offset) READ_REGISTER(cc_base + (offset))#endif
Signature · 1 line
2.7.4
Quoted 5 lines · Matthew Giassa
Included is a set of small fixes to resolve all outstanding checkpatch warnings issues for
drivers/staging/ccree/cc_hal.h. Two are cosmetic (training whitespace and 80+ character comment), and the other is functional (macro argument previously not wrapped in parentheses).
Forgot to mention, applies cleanly against staging-next (3ef2bc099d1cce09e2844467e2ced98e1a44609d).
Signature · 1 line
-Matthew
Gilad Ben-Yossef
Acked-byQuoted 12 lines · Matthew Giassa
Quoted 5 lines · Matthew Giassa
Included is a set of small fixes to resolve all outstanding checkpatch warnings issues for
drivers/staging/ccree/cc_hal.h. Two are cosmetic (training whitespace and 80+ character comment), and the other is functional (macro argument previously not wrapped in parentheses).Forgot to mention, applies cleanly against staging-next (
3ef2bc099d1cce09e2844467e2ced98e1a44609d).
For 2-3:
I saw GregKH already carries them in the staging-testing
About 1 - I never saw it and there isn't one in staging-testing either so I'm assuming
I'm not the only only one that missed it. Can you please resend?
Thanks,
Gilad
Signature · 6 lines
Gilad Ben-Yossef Chief Coffee Drinker "If you take a class in large-scale robotics, can you end up in a situation where the homework eats your dog?" -- Jean-Baptiste Queru