Re: [PATCH-next 3/3] serial/sysrq: Add MAGIC_SYSRQ_SERIAL_SEQUENCE
From: Joe Perches
Date: Sat Jan 11 2020 - 09:09:57 EST
On Fri, 2020-01-10 at 22:10 +0000, Dmitry Safonov wrote:
> Hi Joe,
Hi Dmitry.
> I'm not aware of a way to put the max string length in Kconfig,
Nor am I.
> so I did
> in the patch:
> BUILD_BUG_ON(ARRAY_SIZE(sysrq_toggle_seq) >=
> sizeof(port->sysrq_seq)*U8_MAX);
>
> Do you have something more elegant in your mind?
No, I didn't notice this and think this is fine
so thanks for that.
It's be nice to have something like BUILD_BUG_ON_MSG.