Skip to contentSkip to conversation

staging: vchiq_core: remove superfluous static_assert statement

PATCH RESEND In review Gaston Gonzalez 2 participants 3 messages Nov 22, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 staging: vchiq_core: remove superfluous static_assert statement

After removing the BITSET_T typedef in commit d8a364820e01 ("staging:
vchiq_core: get rid of typedef") the static_assert statement becomes superfluous as now we are checking if the size of the u32 type is 4 bytes. Hence, just remove the static_assert statement.

---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h +0 -2
index 53a98949b294..55abaf02a196 100644
@@ -74,8 +74,6 @@
 	((fourcc) >>  8) & 0xff, \
 	(fourcc) & 0xff
 
-static_assert((sizeof(u32) * 8) == 32);
-
 #define BITSET_SIZE(b)        ((b + 31) >> 5)
 #define BITSET_WORD(b)        (b >> 5)
 #define BITSET_BIT(b)         (1 << (b & 31))
Signature · 1 line
2.34.0.rc0
#1 lore raw
Quoted 8 lines · Gaston Gonzalez

After removing the BITSET_T typedef in commit d8a364820e01 ("staging:
vchiq_core: get rid of typedef") the static_assert statement becomes superfluous as now we are checking if the size of the u32 type is 4 bytes. Hence, just remove the static_assert statement.

---

You sent the first version after the merge window had just started. It's too early to be resending stuff. Leave it for two weeks after the end of the merge window at least.

regards,
dan carpenter

#2 lore raw
Quoted 10 lines · Dan Carpenter
Quoted 8 lines · Gaston Gonzalez

After removing the BITSET_T typedef in commit d8a364820e01 ("staging:
vchiq_core: get rid of typedef") the static_assert statement becomes superfluous as now we are checking if the size of the u32 type is 4 bytes. Hence, just remove the static_assert statement.

---

Quoted 7 lines

You sent the first version after the merge window had just started. It's too early to be resending stuff. Leave it for two weeks after the end of the merge window at least.

regards,
dan carpenter

Ah, ok. I thought it was ok to resend after one week once the merge window was closed.

Sorry for the noise.

Gaston