From nobody Thu Apr 9 16:33:44 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A3A81DE8BB for ; Tue, 3 Mar 2026 13:35:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772544939; cv=none; b=SIvwtg2qdDOr8JZ/VFzLzMm2huDQz9aknX0e1341EMxPqZrFrpI3BIbd18R6KYW8bKoHzb4HauJ4HHta2V1wPaLW0ozMEqpXk+bboCuCHxD8wiZVCViYpRLuWqvmSk04VlHE09R24pC+6wyN7F2omcEvKY3bpvxEehvtNjWz+6g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772544939; c=relaxed/simple; bh=SKyjPdrhJ2g9n09UmeaLZl1eBt3MGgfyHjhInAHr7dY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EUSRy0aSASWBhXcnZoziucYNCCPg7/jJa8Lm2EZqo1IyMM0Y6Fnurd1dLh3ERaNbAfhEXc/mbB7EJ4T4o7et62xw6XlcSNsYX9ZriqF+VI3RU6CK3DB0Tju0/qpdiBEyKorxQfrK4ELlWS+wsoGagZvogzO6CEILMY9FyfDMOY0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=U/RxuPNw; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="U/RxuPNw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772544937; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=6hvJOaz7zfwU+QvAYqSk0UN1ZhdUHk1TmYJOg0XU6xU=; b=U/RxuPNw+DER7pEd+KvSJ4ZjfPvhyFAmV3WrFNrNoxqiFLFSFf9b+58tr3qZCEenKRhH5I /5SD0r1S71S/2aOaRkawu1z/jEYrrOwHXu3Q3k60uHIOcE4Xt8iJ3UAzRIcoTMk2k05cxH FJST+Xa5qeQ9Id6sEqIegnRU4jhPJXY= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-298-BOgLP0d_NNGRsGsSO5bpKQ-1; Tue, 03 Mar 2026 08:35:36 -0500 X-MC-Unique: BOgLP0d_NNGRsGsSO5bpKQ-1 X-Mimecast-MFC-AGG-ID: BOgLP0d_NNGRsGsSO5bpKQ_1772544935 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C4BB81956088; Tue, 3 Mar 2026 13:35:34 +0000 (UTC) Received: from wsxc.redhat.com (unknown [10.96.134.55]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 460121800349; Tue, 3 Mar 2026 13:35:32 +0000 (UTC) From: Ricardo Robaina To: audit@vger.kernel.org, linux-kernel@vger.kernel.org Cc: paul@paul-moore.com, eparis@redhat.com, akpm@linux-foundation.org, Ricardo Robaina Subject: [PATCH] audit: fix coding style issues Date: Tue, 3 Mar 2026 10:35:28 -0300 Message-ID: <20260303133528.704135-1-rrobaina@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 Content-Type: text/plain; charset="utf-8" Fix various coding style issues across the audit subsystem flagged by checkpatch.pl script to adhere to kernel coding standards. Specific changes include: - kernel/auditfilter.c: Move the open brace '{' to the previous line for the audit_ops array declaration. - lib/audit.c: Add a required space before the open parenthesis '('. - include/uapi/linux/audit.h: Enclose the complex macro value for AUDIT_UID_UNSET in parentheses. Signed-off-by: Ricardo Robaina --- include/uapi/linux/audit.h | 2 +- kernel/auditfilter.c | 3 +-- lib/audit.c | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/uapi/linux/audit.h b/include/uapi/linux/audit.h index 14a1c1fe013a..de4015430476 100644 --- a/include/uapi/linux/audit.h +++ b/include/uapi/linux/audit.h @@ -508,7 +508,7 @@ struct audit_tty_status { __u32 log_passwd; /* 1 =3D enabled, 0 =3D disabled */ }; =20 -#define AUDIT_UID_UNSET (unsigned int)-1 +#define AUDIT_UID_UNSET ((unsigned int)-1) #define AUDIT_SID_UNSET ((unsigned int)-1) =20 /* audit_rule_data supports filter rules with both integer and string diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 6e3abbf08e3d..093425123f6c 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c @@ -303,8 +303,7 @@ static inline struct audit_entry *audit_to_entry_common= (struct audit_rule_data * return ERR_PTR(err); } =20 -static u32 audit_ops[] =3D -{ +static u32 audit_ops[] =3D { [Audit_equal] =3D AUDIT_EQUAL, [Audit_not_equal] =3D AUDIT_NOT_EQUAL, [Audit_bitmask] =3D AUDIT_BIT_MASK, diff --git a/lib/audit.c b/lib/audit.c index 738bda22dd39..bc07fbd3a698 100644 --- a/lib/audit.c +++ b/lib/audit.c @@ -42,7 +42,7 @@ int audit_classify_syscall(int abi, unsigned syscall) if (audit_is_compat(abi)) return audit_classify_compat_syscall(abi, syscall); =20 - switch(syscall) { + switch (syscall) { #ifdef __NR_open case __NR_open: return AUDITSC_OPEN; --=20 2.53.0