From nobody Thu Oct 2 02:12:35 2025 Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (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 0AE50309EEC; Wed, 24 Sep 2025 14:21:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758723719; cv=none; b=ogDBGz6PBwI+YFV0mrdost4atJSjQOV2b0yITVFIoc9wiTqz/kW4qWbj4qTlgJwmzAByXQl3nEVxW4cIQks2+B1sYXOsf6ScV+ZvV6G4jKKQGughatnS0W2ZsHkzPfH8RLgF2CROOnABATq7ynQO1zRbbAJdVnycQHP1guEf2Dk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758723719; c=relaxed/simple; bh=8uFM5QahYXW7uNN8id5O/6sxqvaTOGEeRZfPDBxEGMw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ct8HKYqcXHTt6r9ZHfeMq8YR7BsUrsLr9YWsppAsYNPedA3k2HgRhWySKyYpqCROx7zBf5Ux+Ah07UkDpynHEJn3PQiLsg7SOvBFDYNzK3qgI8gmjmiB46P1i+PAiQCsUHXnoC13jw0UXBR4dmhIc0v6nkWDpW5OmKOCEy6EMTM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=OZkCqtTz; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="OZkCqtTz" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=I1cm2is+Xgw+x+T3m8uuoGo4E722CtwyukEZGpVjsa4=; t=1758723718; x=1759933318; b=OZkCqtTztxY7ACUKNQkRyE36R+oafvh63VHuaKeQ3xihxIR ulg8Bi8u+/5uoGJiTnGqT3GSS339iMo4C7obBj3eKqbbA/4B+xtvIbETMYE2qI72pyeXAes+QyWfa /tvfjaXUBMzKmsEveywUeV7mizVASOvPESX4zz7D8L/uheskkykjxW/XMZgWOzOWDi6rZnCsjS9cX 3gEgQE2WdCHmTPpN8mq1I/GpgnhjOePWkB1Nt0lU8ODh5kIL7Ng5r+WAUy/wokmG6dwT7yAMhPcMn R04t2/I/T9sBC+0eXVyuvoOwZaQ216gHZg7g+2qHa2+WBS3XC6nb0To2yJehaNow==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.98.2) (envelope-from ) id 1v1QNW-000000090Bz-3KBY; Wed, 24 Sep 2025 16:21:55 +0200 From: Benjamin Berg To: linux-um@lists.infradead.org, Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kselftest@vger.kernel.org, Arnaldo Carvalho de Melo Cc: linux-kernel@vger.kernel.org, Benjamin Berg Subject: [PATCH v3 06/12] tools/nolibc: use __fallthrough__ rather than fallthrough Date: Wed, 24 Sep 2025 16:20:53 +0200 Message-ID: <20250924142059.527768-7-benjamin@sipsolutions.net> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250924142059.527768-1-benjamin@sipsolutions.net> References: <20250924142059.527768-1-benjamin@sipsolutions.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: quoted-printable X-malware-bazaar: not-scanned From: Benjamin Berg Use the version of the attribute with underscores to avoid issues if fallthrough has been defined by another header file already. Signed-off-by: Benjamin Berg Acked-by: Thomas Wei=C3=9Fschuh --- tools/include/nolibc/compiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/include/nolibc/compiler.h b/tools/include/nolibc/compile= r.h index 369cfb5a0e78..87090bbc53e0 100644 --- a/tools/include/nolibc/compiler.h +++ b/tools/include/nolibc/compiler.h @@ -41,8 +41,8 @@ # define __no_stack_protector __attribute__((__optimize__("-fno-stack-pro= tector"))) #endif /* __nolibc_has_attribute(no_stack_protector) */ =20 -#if __nolibc_has_attribute(fallthrough) -# define __nolibc_fallthrough do { } while (0); __attribute__((fallthroug= h)) +#if __nolibc_has_attribute(__fallthrough__) +# define __nolibc_fallthrough do { } while (0); __attribute__((__fallthro= ugh__)) #else # define __nolibc_fallthrough do { } while (0) #endif /* __nolibc_has_attribute(fallthrough) */ --=20 2.51.0