Received: by 2002:a05:7208:820a:b0:81:e143:7c29 with SMTP id q10csp575363rbf; Wed, 10 Apr 2024 13:13:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+tifDMfTuUXTsoTVXtMYTGlg9trEQkm7nLQgF2KwWx9T+63hwV4vRxuRXyhYlRdvO17XQKQjhnyRoqL6n9P4obs3VvTH/y8nBZ+N68g== X-Google-Smtp-Source: AGHT+IEjl7/Zoxd0xP5HBWHTfH4uG1mlzD4Frkzy8VYijSfMJdabCPim+hf1TZ1NmP2rHU5W8rJl X-Received: by 2002:a05:6a21:3a94:b0:1a8:b7be:e755 with SMTP id zv20-20020a056a213a9400b001a8b7bee755mr4674174pzb.28.1712780011138; Wed, 10 Apr 2024 13:13:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712780011; cv=pass; d=google.com; s=arc-20160816; b=AgSItAM5KcvHXPC5XbnKmIR1b3qqXmtt/4SaKgKyJJZ2h5BfD2gt0uOjVuk0xv2Q3c cRknEyS7h3n6Cmd6yEdjVMopSaEYRYejduDa9FhUTuEFdnQ7T4+gqxBGkzLIpYJw0Dcn 2d8Q2WqkY8aP8736GMOecCfkAcowlPJv4q5nG5uc9rNUKmFgNTEZh0OzHFJnkAkPhTrk AhMdyxiuEcVOEbLz1btdtImA06kmbX3Q8ETjcqp9I/pI75vAJoeM29bPtJCMz5sBWFth ZGr6Bc+CLHvzSyXPHG3eA5rfBp0LAjl2WNpW5FefedMKaVqJLjQfx3n4wrAv0MTBu2KY kCcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=pzyvKV7DoFU8n8jJViAK7dZ1O569OCvpccWqVmbmCvw=; fh=kLIwJM7AaAdpHsQmYwLG/x5mSPpFdUyC168eEYWv7/I=; b=T/oBHsBmMHlRBoGr77dSjxb/m/HpLCpfFReDWAJYXlVa/RN1rFw6w1XiRnwTCWR8i3 rK1ws6d2Yq9u9l3VzaAyZZbvhtYbug0W7UvSnjb2jUuwvzxRs22oL74Ep/ex/xXDw8do /kAM9spZ3Si3KaCUvxNBayZ4ZGNHvruNq1vfj/KR0Dr+zyMJq8tnV6wra8EItytbg4bc QCBTz4CVR65Y9Q526rSnlkiu0fcvC09Fdv3XR5ueI5KdmZz/jU4kw47qozUlc9ccCtDX jxZQNHfAPOyoIfAO4teiJIGDlH7FCfD7kl7+nsiMMwv//oeXtD0CdY6s5uFKlvktcPs2 SCYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Q2X3TWX4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-139291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z14-20020a170903018e00b001e51f5c83e7si945376plg.443.2024.04.10.13.13.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 13:13:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Q2X3TWX4; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-139291-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139291-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DE171B2257B for ; Wed, 10 Apr 2024 20:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B1E15181B94; Wed, 10 Apr 2024 20:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Q2X3TWX4"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="tGxmOBEp" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 79CF318132B; Wed, 10 Apr 2024 20:05:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712779552; cv=none; b=spwLA397kLC3mLwPuOaup5GsXsaQ9AxFFaM30OkmCJHdASWJcnRusbnFQ6s24SfflRUJO/GU7PmP/hQHyTeDKrElXC5sM1KQU1gUq6eN8jbIJSBHP2/7pvra4jdV6oeL8dqCuBj9xmkarOgR+ivwr9yZvt1l8V1SJaNU0RxmO2Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712779552; c=relaxed/simple; bh=4VcY5QHkMjO9Oeuya0wisFEUgdxmPJH9LDSVVzdI+UY=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=XmWiEqhXto7k2YOV0OZ/IL8U/HzbEMBm60afeCSMRF94iDYuW1MfI+0T8ZJ53MFgphtfAfJfht6DIQztyEugv0ChkU+y1z0YtANY9GM9UL8zYPkFRP92dM8rGjcuPn4X49OK/IhDy+p+5QmyxONBpBaP+w7IKGr4WNTTl0yPhyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Q2X3TWX4; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=tGxmOBEp; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 10 Apr 2024 20:05:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712779549; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pzyvKV7DoFU8n8jJViAK7dZ1O569OCvpccWqVmbmCvw=; b=Q2X3TWX4iyEjhTAAaf+LCnr0eaDXBoQy+nHiwTogSYLWBe6Wti4QwWSGWzA8XIcZCjtErD uED+XZtfqnoW0Tgd/jYMlVwgwAXnE+Tm9qY/T6M44hGvkjhCOA/bQoGMRZ7o76SCmZo/3N ZU/MD8bD3FfvLAZpCKZsA9c/HdUCoJgRETa6qy1aV/mBrZhGpAwL4FYM23kV3HLOgv5uYc Eoyr7BoOP4fIpLgH4veTa8SRMXqpnerjuCqK3SAghuh9pcy4i/MxFqF30nUrgEuNSIu2hc yVG1W5rsoijv3S7nZjQRYRsEf2hAU1iisuJt1EVzDns8ha/9mFlgHyS2srisqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712779549; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pzyvKV7DoFU8n8jJViAK7dZ1O569OCvpccWqVmbmCvw=; b=tGxmOBEpF5TRhzorvZlHDQQ4EkX3a/XVX7boDirEwz6TQdX4t710kYMPwLtSxQxtklDq6/ my3GKDAZSx9nvTAg== From: "tip-bot2 for Adrian Hunter" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/urgent] bug: Fix no-return-statement warning with !CONFIG_BUG Cc: Naresh Kamboju , Adrian Hunter , Thomas Gleixner , Linux Kernel Functional Testing , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240410153212.127477-1-adrian.hunter@intel.com> References: <20240410153212.127477-1-adrian.hunter@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171277954823.10875.13569747246376964639.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the timers/urgent branch of tip: Commit-ID: 5284984a4fbacb0883bfebe905902cdda2891a07 Gitweb: https://git.kernel.org/tip/5284984a4fbacb0883bfebe905902cdda28= 91a07 Author: Adrian Hunter AuthorDate: Wed, 10 Apr 2024 18:32:12 +03:00 Committer: Thomas Gleixner CommitterDate: Wed, 10 Apr 2024 22:01:35 +02:00 bug: Fix no-return-statement warning with !CONFIG_BUG BUG() does not return, and arch implementations of BUG() use unreachable() or other non-returning code. However with !CONFIG_BUG, the default implementation is often used instead, and that does not do that. x86 always uses its own implementation, but powerpc with !CONFIG_BUG gives a build error: kernel/time/timekeeping.c: In function =E2=80=98timekeeping_debug_get_ns=E2= =80=99: kernel/time/timekeeping.c:286:1: error: no return statement in function returning non-void [-Werror=3Dreturn-type] Add unreachable() to default !CONFIG_BUG BUG() implementation. Fixes: e8e9d21a5df6 ("timekeeping: Refactor timekeeping helpers") Reported-by: Naresh Kamboju Signed-off-by: Adrian Hunter Signed-off-by: Thomas Gleixner Tested-by: Linux Kernel Functional Testing Link: https://lore.kernel.org/r/20240410153212.127477-1-adrian.hunter@intel.c= om Closes: https://lore.kernel.org/all/CA+G9fYvjdZCW=3D7ZGxS6A_3bysjQ56YF7S-+PNL= Q_8a4DKh1Bhg@mail.gmail.com/ --- include/asm-generic/bug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h index 6e79442..b7de3a4 100644 --- a/include/asm-generic/bug.h +++ b/include/asm-generic/bug.h @@ -156,7 +156,10 @@ extern __printf(1, 2) void __warn_printk(const char *fmt= , ...); =20 #else /* !CONFIG_BUG */ #ifndef HAVE_ARCH_BUG -#define BUG() do {} while (1) +#define BUG() do { \ + do {} while (1); \ + unreachable(); \ +} while (0) #endif =20 #ifndef HAVE_ARCH_BUG_ON