Re: [PATCH 2/9] lib: crypt: Avoid redefining static_assert

2022-03-16 Thread Steffen Jaeckel



On 3/16/22 20:23, Simon Glass wrote:

On Wed, 16 Mar 2022 at 09:40, Pierre-Clément Tosi  wrote:


Use the macro introduced by commit ef0f4e834c66 ("build_bug.h: add
wrapper for _Static_assert") by importing .

Signed-off-by: Pierre-Clément Tosi 
Cc: Simon Glass 
Cc: Steffen Jaeckel 
---
  lib/crypt/crypt-port.h | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)


Reviewed-by: Simon Glass 


Reviewed-by: Steffen Jaeckel 


Re: [PATCH 2/9] lib: crypt: Avoid redefining static_assert

2022-03-16 Thread Simon Glass
On Wed, 16 Mar 2022 at 09:40, Pierre-Clément Tosi  wrote:
>
> Use the macro introduced by commit ef0f4e834c66 ("build_bug.h: add
> wrapper for _Static_assert") by importing .
>
> Signed-off-by: Pierre-Clément Tosi 
> Cc: Simon Glass 
> Cc: Steffen Jaeckel 
> ---
>  lib/crypt/crypt-port.h | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Reviewed-by: Simon Glass 


[PATCH 2/9] lib: crypt: Avoid redefining static_assert

2022-03-16 Thread Pierre-Clément Tosi
Use the macro introduced by commit ef0f4e834c66 ("build_bug.h: add
wrapper for _Static_assert") by importing .

Signed-off-by: Pierre-Clément Tosi 
Cc: Simon Glass 
Cc: Steffen Jaeckel 
---
 lib/crypt/crypt-port.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/crypt/crypt-port.h b/lib/crypt/crypt-port.h
index 6b9542d75b..e85d3c132c 100644
--- a/lib/crypt/crypt-port.h
+++ b/lib/crypt/crypt-port.h
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /* Copyright (C) 2020 Steffen Jaeckel  */
 
+#include 
 #include 
 #include 
 
@@ -10,8 +11,6 @@
 
 #define ARG_UNUSED(x) (x)
 
-#define static_assert(a, b) _Static_assert(a, b)
-
 #define strtoul(cp, endp, base) simple_strtoul(cp, endp, base)
 
 extern const unsigned char ascii64[65];
-- 
2.35.1.723.g4982287a31-goog