From nobody Thu Dec 18 18:09:25 2025 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 3086826A1CC for ; Thu, 13 Mar 2025 11:44:59 +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=1741866300; cv=none; b=N+ME4xTPcGCTaPTO/znOkI04hRmFEzlHMBuWBJymm9N/ZDxtKbzsH3NZxBSwtF9wHoktZBicDjKcT5XpnSpWvv+EOIfCLQrwh7cl9WgI7WRiIL2twpbsd1s4vgXgqhpt2sTGTPdmet2YoILhzSkXTJw3XaszhXL7/TPYuz+l46M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741866300; c=relaxed/simple; bh=LkqKUNYGs/ePGkjxR4/GakhMBC+dOQkDGsyg7Jru2eY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-type; b=kiyGrmJXcUaS7mIFQ8kUZV+suR/v5U41mAbuOc7tt2UHVn+haElBZWGZ+QdQHbudiK5SSO+mkxbfhIVU+xnCH9SqAeBheQrRdMg35zoJ5ma+DWco9tG3HwBhgxRJakq+WT9XUGukDOZkAl1nrkAouckRB4Cl87DUGE8/CVfCKgU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=KMQ9dFVA; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none 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="KMQ9dFVA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741866298; h=from:from: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=Td98jnkcLGUCy3vrjbMOv35ZA5bivtUA493Q3YOVPt4=; b=KMQ9dFVAw0PY8UoGH2ZnQtv2EV1wkdO5uMIhmgRIISCHv2e6UOaDaVi7LvbwZbNh7n7E4v rpZttcOhxtu+k3vFQyVx1b9bXyRJvVjAlEWjpsuJ4piW3btDMboUi+UlsJ7nfie3PM21rl iSt6HWBX/qir8+M8pUGYWT8Z2x0h6lo= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-502-Vn0p1R1ZOou3i-R39klHOg-1; Thu, 13 Mar 2025 07:44:57 -0400 X-MC-Unique: Vn0p1R1ZOou3i-R39klHOg-1 X-Mimecast-MFC-AGG-ID: Vn0p1R1ZOou3i-R39klHOg_1741866296 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-391425471d6so306873f8f.3 for ; Thu, 13 Mar 2025 04:44:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741866296; x=1742471096; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Td98jnkcLGUCy3vrjbMOv35ZA5bivtUA493Q3YOVPt4=; b=Tng2Ef36r1mNGdRm5c1VUwhVmoX5Yv4rrWmclbaEqnB3HSCJGA+VYr+owZyHfIyvIA IPcmKrXZeUArmHRaBoXeImdlXqqApcud3oAODKMY9lQEYn8GEx5OIfnRza0188cRns6F U5X8W7+q65oW+gJbB7jTFW5LXP4rhXz7VVBkiGFV/2iLkvtz9p5MnXMEddsb/ys14qs8 /5cDSV3C0O2EumIlTepIipvw1fZz99wYFEm0F835hApgXeT1ZTrMKIXYSU0uZet1s7Y6 VXCIh9lYP8Tam9+clbjuM3+8apHQfSX8JBeUhFUtZCRgE5Rt8FxXEOO0p8emVnQgwv6K hbvw== X-Forwarded-Encrypted: i=1; AJvYcCUtTcIziuV3TPIXC+9/RVTWohx7+MuAwUN5ffMAJBWvJu/dlx9ao3tnYt608nbCYXqAOlak0OPTy0eixSM=@vger.kernel.org X-Gm-Message-State: AOJu0Ywo4TQIly2A84PAJ46R1fcjhWTBJFRhc8MQz2B1Fjk5Zh28sKss a8ZzM02UTkHrps5vFV7RxZ4lkvDTiXp18Qb3wY1N+2tDga08HWuxawvCiHjiioUU8NxtzpUZTiX pfdMXiYXOvkwy+cyaWDXYQ4Gs98HKzmNwQ+PtaXo+asbHpGBBVwJd8izcBozgmA== X-Gm-Gg: ASbGncudNXdA4iqP9YQO4aWbJ5j5NTiQE+PDobQkGe12yhTfHz94za0zZYcj5bKROPL BZolEM0Du5yDBI+plhEvxKDiUR7G2IshYdVIKaG/ykpsnf0qb7avpjEUDqIYCme+2a3Jrmgnnbo TyNov4ibkX5/lMvPAbG9DaAYSH2fRVLv09Dp7NDuVI7L7UlmseJMEg3JW0akCD0yF9zAzA9ZYSX /Y5fG4LVKVZGmZ/GkvWqyiSAZz45oYe1HJYi5gLtOvtnpRblhF0/NAMajXBVPRsrEAHKdVcighK PYvcWXEX8NqmyF6HbMTb X-Received: by 2002:a5d:64a8:0:b0:391:23e7:968d with SMTP id ffacd0b85a97d-39132db703cmr17836131f8f.47.1741866296135; Thu, 13 Mar 2025 04:44:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyU2ePtAFWyqCZMakOsiK4/iIhrDziNVQawXJEAak4gPJli8tipIq38M0q9zksW0XKC08fAA== X-Received: by 2002:a5d:64a8:0:b0:391:23e7:968d with SMTP id ffacd0b85a97d-39132db703cmr17836093f8f.47.1741866295677; Thu, 13 Mar 2025 04:44:55 -0700 (PDT) Received: from lab.hqhome163.com ([81.57.75.210]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-43d188b754asm17844115e9.14.2025.03.13.04.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Mar 2025 04:44:54 -0700 (PDT) From: Alessandro Carminati To: linux-kselftest@vger.kernel.org Cc: David Airlie , Arnd Bergmann , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Dan Carpenter , Kees Cook , Daniel Diaz , David Gow , Arthur Grillo , Brendan Higgins , Naresh Kamboju , Maarten Lankhorst , Andrew Morton , Maxime Ripard , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Daniel Vetter , Thomas Zimmermann , Guenter Roeck , Alessandro Carminati , Jani Nikula , dri-devel@lists.freedesktop.org, kunit-dev@googlegroups.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, loongarch@lists.linux.dev, x86@kernel.org, Simon Horman , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , Alessandro Carminati Subject: [PATCH v4 12/14] sh: Move defines needed for suppressing warning backtraces Date: Thu, 13 Mar 2025 11:43:27 +0000 Message-Id: <20250313114329.284104-13-acarmina@redhat.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250313114329.284104-1-acarmina@redhat.com> References: <20250313114329.284104-1-acarmina@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 Content-Type: text/plain; charset="utf-8" From: Guenter Roeck Declaring the defines needed for suppressing warning inside '#ifdef CONFIG_DEBUG_BUGVERBOSE' results in a kerneldoc warning. .../bug.h:29: warning: expecting prototype for _EMIT_BUG_ENTRY(). Prototype was for HAVE_BUG_FUNCTION() instead Move the defines above the kerneldoc entry for _EMIT_BUG_ENTRY to make kerneldoc happy. Reported-by: Simon Horman Cc: Simon Horman Cc: Yoshinori Sato Cc: Rich Felker Cc: John Paul Adrian Glaubitz Signed-off-by: Guenter Roeck Signed-off-by: Alessandro Carminati --- arch/sh/include/asm/bug.h | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/arch/sh/include/asm/bug.h b/arch/sh/include/asm/bug.h index 470ce6567d20..bf4947d51d69 100644 --- a/arch/sh/include/asm/bug.h +++ b/arch/sh/include/asm/bug.h @@ -11,6 +11,15 @@ #define HAVE_ARCH_BUG #define HAVE_ARCH_WARN_ON =20 +#ifdef CONFIG_DEBUG_BUGVERBOSE +#ifdef CONFIG_KUNIT_SUPPRESS_BACKTRACE +# define HAVE_BUG_FUNCTION +# define __BUG_FUNC_PTR "\t.long %O2\n" +#else +# define __BUG_FUNC_PTR +#endif /* CONFIG_KUNIT_SUPPRESS_BACKTRACE */ +#endif /* CONFIG_DEBUG_BUGVERBOSE */ + /** * _EMIT_BUG_ENTRY * %1 - __FILE__ @@ -25,13 +34,6 @@ */ #ifdef CONFIG_DEBUG_BUGVERBOSE =20 -#ifdef CONFIG_KUNIT_SUPPRESS_BACKTRACE -# define HAVE_BUG_FUNCTION -# define __BUG_FUNC_PTR "\t.long %O2\n" -#else -# define __BUG_FUNC_PTR -#endif /* CONFIG_KUNIT_SUPPRESS_BACKTRACE */ - #define _EMIT_BUG_ENTRY \ "\t.pushsection __bug_table,\"aw\"\n" \ "2:\t.long 1b, %O1\n" \ --=20 2.34.1