linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] staging: vchiq_core: remove superfluous static_assert statement
@ 2021-11-22 13:09 Gaston Gonzalez
  2021-11-22 13:50 ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Gaston Gonzalez @ 2021-11-22 13:09 UTC (permalink / raw)
  To: linux-staging
  Cc: gregkh, nsaenz, stefan.wahren, arnd, dan.carpenter, ojaswin98,
	amarjargal16, linux-rpi-kernel, linux-arm-kernel,
	bcm-kernel-feedback-list, linux-kernel, gascoar

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.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
---
 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
index 53a98949b294..55abaf02a196 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h
@@ -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))
-- 
2.34.0.rc0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH RESEND] staging: vchiq_core: remove superfluous static_assert statement
  2021-11-22 13:09 [PATCH RESEND] staging: vchiq_core: remove superfluous static_assert statement Gaston Gonzalez
@ 2021-11-22 13:50 ` Dan Carpenter
  2021-11-22 15:00   ` Gaston Gonzalez
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2021-11-22 13:50 UTC (permalink / raw)
  To: Gaston Gonzalez
  Cc: linux-staging, gregkh, nsaenz, stefan.wahren, arnd, ojaswin98,
	amarjargal16, linux-rpi-kernel, linux-arm-kernel,
	bcm-kernel-feedback-list, linux-kernel

On Mon, Nov 22, 2021 at 10:09:26AM -0300, Gaston Gonzalez wrote:
> 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.
> 
> Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
> Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
> ---

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH RESEND] staging: vchiq_core: remove superfluous static_assert statement
  2021-11-22 13:50 ` Dan Carpenter
@ 2021-11-22 15:00   ` Gaston Gonzalez
  0 siblings, 0 replies; 3+ messages in thread
From: Gaston Gonzalez @ 2021-11-22 15:00 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: linux-staging, gregkh, nsaenz, stefan.wahren, arnd, ojaswin98,
	amarjargal16, linux-rpi-kernel, linux-arm-kernel,
	bcm-kernel-feedback-list, linux-kernel

On Mon, Nov 22, 2021 at 04:50:31PM +0300, Dan Carpenter wrote:
> On Mon, Nov 22, 2021 at 10:09:26AM -0300, Gaston Gonzalez wrote:
> > 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.
> > 
> > Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
> > Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
> > ---
> 
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-22 15:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 13:09 [PATCH RESEND] staging: vchiq_core: remove superfluous static_assert statement Gaston Gonzalez
2021-11-22 13:50 ` Dan Carpenter
2021-11-22 15:00   ` Gaston Gonzalez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).