[PATCH] audit: fix whitespace alignment in include/uapi/linux/audit.h

Ricardo Robaina posted 1 patch 1 month, 1 week ago
include/uapi/linux/audit.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
[PATCH] audit: fix whitespace alignment in include/uapi/linux/audit.h
Posted by Ricardo Robaina 1 month, 1 week ago
Fixed minor indentation inconsistencies in the audit macros
to align with standard kernel coding style using 8-character
hard tabs.

Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
---
 include/uapi/linux/audit.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h
index 14a1c1fe013a..410dfb41b810 100644
--- a/include/uapi/linux/audit.h
+++ b/include/uapi/linux/audit.h
@@ -350,7 +350,7 @@ enum {
 #define AUDIT_STATUS_ENABLED			0x0001
 #define AUDIT_STATUS_FAILURE			0x0002
 #define AUDIT_STATUS_PID			0x0004
-#define AUDIT_STATUS_RATE_LIMIT		0x0008
+#define AUDIT_STATUS_RATE_LIMIT 		0x0008
 #define AUDIT_STATUS_BACKLOG_LIMIT		0x0010
 #define AUDIT_STATUS_BACKLOG_WAIT_TIME		0x0020
 #define AUDIT_STATUS_LOST			0x0040
@@ -386,8 +386,8 @@ enum {
  * These bits disambiguate different calling conventions that share an
  * ELF machine type, bitness, and endianness
  */
-#define __AUDIT_ARCH_CONVENTION_MASK 0x30000000
-#define __AUDIT_ARCH_CONVENTION_MIPS64_N32 0x20000000
+#define __AUDIT_ARCH_CONVENTION_MASK		0x30000000
+#define __AUDIT_ARCH_CONVENTION_MIPS64_N32	0x20000000
 
 /* distinguish syscall tables */
 #define __AUDIT_ARCH_64BIT 0x80000000
-- 
2.53.0
Re: [PATCH] audit: fix whitespace alignment in include/uapi/linux/audit.h
Posted by Paul Moore 1 month ago
On Feb 26, 2026 Ricardo Robaina <rrobaina@redhat.com> wrote:
> 
> Fixed minor indentation inconsistencies in the audit macros
> to align with standard kernel coding style using 8-character
> hard tabs.
> 
> Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
> ---
>  include/uapi/linux/audit.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h
> index 14a1c1fe013a..410dfb41b810 100644
> --- a/include/uapi/linux/audit.h
> +++ b/include/uapi/linux/audit.h
> @@ -350,7 +350,7 @@ enum {
>  #define AUDIT_STATUS_ENABLED			0x0001
>  #define AUDIT_STATUS_FAILURE			0x0002
>  #define AUDIT_STATUS_PID			0x0004
> -#define AUDIT_STATUS_RATE_LIMIT		0x0008
> +#define AUDIT_STATUS_RATE_LIMIT 		0x0008

I had to fix a space-before-tab issue in this line, but otherwise this
looked fine to me.  It is worth mentioning that checkpatch.pl would
have caught the space-before-tab problem; please get in the habit of
running checkpatch.pl before posting patches.

Merged into audit/dev, thanks.

--
paul-moore.com
Re: [PATCH] audit: fix whitespace alignment in include/uapi/linux/audit.h
Posted by Ricardo Robaina 1 month ago
On Mon, Mar 2, 2026 at 6:31 PM Paul Moore <paul@paul-moore.com> wrote:
>
> On Feb 26, 2026 Ricardo Robaina <rrobaina@redhat.com> wrote:
> >
> > Fixed minor indentation inconsistencies in the audit macros
> > to align with standard kernel coding style using 8-character
> > hard tabs.
> >
> > Signed-off-by: Ricardo Robaina <rrobaina@redhat.com>
> > ---
> >  include/uapi/linux/audit.h | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h
> > index 14a1c1fe013a..410dfb41b810 100644
> > --- a/include/uapi/linux/audit.h
> > +++ b/include/uapi/linux/audit.h
> > @@ -350,7 +350,7 @@ enum {
> >  #define AUDIT_STATUS_ENABLED                 0x0001
> >  #define AUDIT_STATUS_FAILURE                 0x0002
> >  #define AUDIT_STATUS_PID                     0x0004
> > -#define AUDIT_STATUS_RATE_LIMIT              0x0008
> > +#define AUDIT_STATUS_RATE_LIMIT              0x0008
>
> I had to fix a space-before-tab issue in this line, but otherwise this
> looked fine to me.  It is worth mentioning that checkpatch.pl would
> have caught the space-before-tab problem; please get in the habit of
> running checkpatch.pl before posting patches.
>
> Merged into audit/dev, thanks.
>
> --
> paul-moore.com
>

Sure thing. Thanks, Paul!