Re: [PATCH] selinux: avoid extra semicolon

From: Paul Moore
Date: Tue May 03 2022 - 14:09:06 EST


On Mon, May 2, 2022 at 10:10 AM Christian Göttsche
<cgzones@xxxxxxxxxxxxxx> wrote:
>
> Wrap macro into `do { } while (0)` to avoid Clang emitting warnings
> about extra semicolons.
> Similar to userspace commit
> https://github.com/SELinuxProject/selinux/commit/9d85aa60d12e468e7fd510c2b5475b5299b71622
>
> Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx>
> ---
> security/selinux/ss/avtab.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)

Merged into selinux/next with some whitespace tweaks.

--
paul-moore.com