diff mbox

checkpatch: ignore BIT_MACRO warnings

Message ID 1450458171-21055-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 77923ad368a0e98d93b0b474ed4dfb1c88db2c8c
Headers show

Commit Message

Mike Holmes Dec. 18, 2015, 5:02 p.m. UTC
ODP does not have a BIT MACRO, ignore warnings such as
CHECK: Prefer using the BIT macro
platform/linux-generic/include/odp_packet_io_ring_internal.h:158:
+#define _RING_F_SP_ENQ (1 << 0)

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 .checkpatch.conf | 1 +
 1 file changed, 1 insertion(+)

Comments

Bill Fischofer Dec. 21, 2015, 4:52 p.m. UTC | #1
On Fri, Dec 18, 2015 at 11:02 AM, Mike Holmes <mike.holmes@linaro.org>
wrote:

> ODP does not have a BIT MACRO, ignore warnings such as

> CHECK: Prefer using the BIT macro

> platform/linux-generic/include/odp_packet_io_ring_internal.h:158:

> +#define _RING_F_SP_ENQ (1 << 0)

>

> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>

>


Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>



> ---

>  .checkpatch.conf | 1 +

>  1 file changed, 1 insertion(+)

>

> diff --git a/.checkpatch.conf b/.checkpatch.conf

> index 69af101..e98982e 100644

> --- a/.checkpatch.conf

> +++ b/.checkpatch.conf

> @@ -4,5 +4,6 @@

>  --ignore=NEW_TYPEDEFS

>  --ignore=DEPRECATED_VARIABLE

>  --ignore=COMPARISON_TO_NULL

> +--ignore=BIT_MACRO

>  --codespell

>  --codespellfile=/usr/share/codespell/dictionary.txt

> --

> 2.5.0

>

> _______________________________________________

> lng-odp mailing list

> lng-odp@lists.linaro.org

> https://lists.linaro.org/mailman/listinfo/lng-odp

>
Maxim Uvarov Dec. 22, 2015, 6:11 a.m. UTC | #2
Merged,
Maxim.

On 12/21/2015 19:52, Bill Fischofer wrote:
>
>
> On Fri, Dec 18, 2015 at 11:02 AM, Mike Holmes <mike.holmes@linaro.org 
> <mailto:mike.holmes@linaro.org>> wrote:
>
>     ODP does not have a BIT MACRO, ignore warnings such as
>     CHECK: Prefer using the BIT macro
>     platform/linux-generic/include/odp_packet_io_ring_internal.h:158:
>     +#define _RING_F_SP_ENQ (1 << 0)
>
>     Signed-off-by: Mike Holmes <mike.holmes@linaro.org
>     <mailto:mike.holmes@linaro.org>>
>
>
> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org 
> <mailto:bill.fischofer@linaro.org>>
>
>     ---
>      .checkpatch.conf | 1 +
>      1 file changed, 1 insertion(+)
>
>     diff --git a/.checkpatch.conf b/.checkpatch.conf
>     index 69af101..e98982e 100644
>     --- a/.checkpatch.conf
>     +++ b/.checkpatch.conf
>     @@ -4,5 +4,6 @@
>      --ignore=NEW_TYPEDEFS
>      --ignore=DEPRECATED_VARIABLE
>      --ignore=COMPARISON_TO_NULL
>     +--ignore=BIT_MACRO
>      --codespell
>      --codespellfile=/usr/share/codespell/dictionary.txt
>     --
>     2.5.0
>
>     _______________________________________________
>     lng-odp mailing list
>     lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
>     https://lists.linaro.org/mailman/listinfo/lng-odp
>
>
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/.checkpatch.conf b/.checkpatch.conf
index 69af101..e98982e 100644
--- a/.checkpatch.conf
+++ b/.checkpatch.conf
@@ -4,5 +4,6 @@ 
 --ignore=NEW_TYPEDEFS
 --ignore=DEPRECATED_VARIABLE
 --ignore=COMPARISON_TO_NULL
+--ignore=BIT_MACRO
 --codespell
 --codespellfile=/usr/share/codespell/dictionary.txt