From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DEE7CC282DE for ; Thu, 13 Mar 2025 12:14:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QRpTPM22D1zC724U9OlH4tiEHzqVywpcWUDM7mv3FN4=; b=z1q2HFcbyxaO1V qSUBspppzH/ZAEusqY6/rK2aQJF0XqrjxtgyIseYJRWHYULHXqEMqM3bdYoaY7BSE3Uyv5WZdAKqt K0Ic6+xaXevJKb7vatnVdplnx3qc0/WQ1xEuYEzKeIxHZOTYXl+sanGczOtW9+dZgrsXUDq34mlgu 3qs5stev0emyHT1d1kBUURe6qr8Dd+TLpj9qvRRjeegADaIFrgU2Psmwy2mum72yf//myqbCZiHf6 iBN1RYize7OtxxTs8O2oUYviN1PKmlAtpXVWKzsLafpgMo6FdC+25MUG1PgCuzO1OZjyEPRLF8lJh RTcLjU+XeY21U316i/Ug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tshSX-0000000BCnA-0Yz0; Thu, 13 Mar 2025 12:14:45 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tsh1N-0000000B64p-1TC2 for linux-riscv@lists.infradead.org; Thu, 13 Mar 2025 11:46:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741866400; 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=R22nUJGZnWfeAexoJ0nu8xS75FfMc5tZ5QF+CkBmAVMIAfB4QtfdbXWxcAuE9j1gouv6h1 f+f9f5xfSoMi7nOpLC+7HF4NbX5guf0Ws7MjnxH1xgHsXguOjvtg+MhFkPUzPGwkl6NHZT cS8xIUriBsKWfnKwQ/COMZKYUsnD5vk= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-173-QHbLNl1FMxy6TWnJbc9f3Q-1; Thu, 13 Mar 2025 07:44:57 -0400 X-MC-Unique: QHbLNl1FMxy6TWnJbc9f3Q-1 X-Mimecast-MFC-AGG-ID: QHbLNl1FMxy6TWnJbc9f3Q_1741866296 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-391425471d6so306874f8f.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=qLtI404gYYpcG6yxkRzL5v+vbB/nUYJrp76GCawW+OZfD+rOC3Bk4rKtOIVNO9qStw 51mUDfbUPRC9m8jph9DBDrHULORnojxXRM2xNdPWRe4R76neVfbYDVTw1zuH+5wVDSle 9M9DFF7DYUIkDmCfdArDu4P44F1QKvXREb6Wkc9/AhGI3CDDw0sW8dHJbTBlAzFoEdIx 3p4wqRmdiUFnSdJURmxY1vpGsnhWUaFxBw3B6QIgr5d/fuWP/cpAtFB4Z8UWftRf2K3C LavHo32avyIOFzS/VhmYLHay1CpEvN35KtQkJijJ/FIHi9kAjfA2QxSzocgMX9lYYVOz 72eQ== X-Forwarded-Encrypted: i=1; AJvYcCVXmE032C86bsQpzi4PUy0Jv71/LbC/DtrakeyJKEzij1tOkMG7cRBXfvcV8ChlAqZ8T+t/aE3aJJRtNw==@lists.infradead.org X-Gm-Message-State: AOJu0Yx5m2InThWWeupcs3vtzQ6lIh/c4AiHxft+/6jkGU8fTc4UlkLh aOyc+xqwRSs12MFJmiOMLlQuX+c23T/mwSkFJhGFN+DUM0tQQCClrsEEpMKl827cI3tHsgu5JM0 qjYEf7hY6voRiYwZmigpTyHFKbkMAYftMQGc1HjhwmfyrxU54ClCMBG9sAQLEsebApA== X-Gm-Gg: ASbGncsT1g7WW/PKFDiIgZQa2YUZCCqvJUSGqhTXi2gajDHZVf8yBITNWLUnOZp+ACV bGiUVMOdOlTx5Jdth+ODU4gssJYG98quw3wUBGxZ0j6qdYZVJbpvk8WC4UwEVuCXT782DmBUPPl 5Wg02VxrDY7KOcEEpBUyys50wNO7x/q46oJ8jgb5qTJKEai/88CD41FHkJZPCo78xcAl0B3NLfQ pQiuhJaxjEMH6FuwKLCpgwLKxZfdFsnnhWUtrHdiWQXw74V49AfD3FDXs4uuM6ZmrcnKbQxlp8/ /6UaU+0eaRk+R9Q8Y380 X-Received: by 2002:a5d:64a8:0:b0:391:23e7:968d with SMTP id ffacd0b85a97d-39132db703cmr17836128f8f.47.1741866296134; 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> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: SY3RbGNmZSNZJ1ijnzZhQqVHNZPT1UkjR0ar_Gt2GPs_1741866296 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250313_044641_454381_E9BF38AD X-CRM114-Status: UNSURE ( 9.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org 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 +#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 -#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" \ -- 2.34.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv