From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-42ad.mail.infomaniak.ch (smtp-42ad.mail.infomaniak.ch [84.16.66.173]) (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 1749E3CF210 for ; Wed, 8 Jul 2026 10:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=84.16.66.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783508272; cv=none; b=GZgpMg4w7DUk+jbMKOMqnbaLzbELTpMWfuJOzg/LuKYHUAxQnEIe0ha96S1jZCGbhX1vgkVRj3eq85uMuyCoE/Y8Wfc8QYWBFkCRqRH0RblxbS7/vVJ33YAH5W7fDfBBZXjkAoOAuUK5XoGhb20AFRyztVZYxXwUU+2OnUchuVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783508272; c=relaxed/simple; bh=lyf8PxtgSBI3bDkrOllCKlWZteQ32jqMH1UokIYSP80=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FcWXhJHdm+oG3+cw/4zx1T/VV/DrECnJnWNGJXC2L/Gyg3gcTYvm7eZ7DkIWB3oa3m6OhOmN2Q56xhvAHJibYAdliJTJLjYQgWmerSzFUe+B29UgXluL3wrW3apW0vt3hhx0n0xFhB4xHb7hFgcbiZx9pH48zxlWmnOsxJM/5AQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=GZjmH5jt; arc=none smtp.client-ip=84.16.66.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="GZjmH5jt" Received: from smtp-3-0001.mail.infomaniak.ch (smtp-3-0001.mail.infomaniak.ch [10.4.36.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4gwFRk5hMRzVtS; Wed, 8 Jul 2026 12:57:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1783508258; bh=5Kk3RNJ66/ceRISgbLj9xGoBjY/fyuE+jds9S1Zg1xE=; h=From:To:Cc:Subject:Date:From; b=GZjmH5jtVuiz5iXjesePD3RsWbAPGky+JyYnXbLOV8qOsCt1QcTJowLE6OMuTe2nb pNrr+MHfj6UoGh4rJ1ELUoHWfI5VtPlMdQQMmajpFRNJxPGz8hzCvPjkdLYbwoBAuL 4PypQpNA6gOHWDHD4k25JuemAjd3FWQJdzZLZjEs= Received: from unknown by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4gwFRj2wZnz83Q; Wed, 8 Jul 2026 12:57:37 +0200 (CEST) From: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= To: Miguel Ojeda Cc: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , linux-kernel@vger.kernel.org, Nathan Chancellor , Andrew Morton , Bart Van Assche , =?UTF-8?q?G=C3=BCnther=20Noack?= , Ingo Molnar , Peter Zijlstra Subject: [PATCH v1] clang-format: Fix formatting of guard() Date: Wed, 8 Jul 2026 12:57:10 +0200 Message-ID: <20260708105713.2073335-1-mic@digikod.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Infomaniak-Routing: alpha The previous fix was overzealous and included guard() along with scoped_guard(), but only the later takes curly braces. The original fix introduced this issue: - guard(rcu)(); + guard(rcu) + (); This is especially visible with security/landlock/*.[ch] which is fully formatted with clang-format. Cc: Andrew Morton Cc: Bart Van Assche Cc: Günther Noack Cc: Ingo Molnar Cc: Peter Zijlstra Fixes: 99df2a8eba34 ("clang-format: fix formatting of guard() and scoped_guard() statements") Closes: https://lore.kernel.org/r/20260702.Eibibi4the9j@digikod.net Signed-off-by: Mickaël Salaün --- .clang-format | 1 - 1 file changed, 1 deletion(-) diff --git a/.clang-format b/.clang-format index 6a3de86ab27a..14b44703e0a9 100644 --- a/.clang-format +++ b/.clang-format @@ -481,7 +481,6 @@ ForEachMacros: - 'genradix_for_each' - 'genradix_for_each_from' - 'genradix_for_each_reverse' - - 'guard' - 'hash_for_each' - 'hash_for_each_possible' - 'hash_for_each_possible_rcu' -- 2.54.0