From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 BA82F26BDA3 for ; Thu, 13 Mar 2025 11:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741866314; cv=none; b=dnBNlw0pY5vsl1TFr1rnS7+sWSW9sZ+RG+PNOnbXoARbx0eHFxFQF38umelRUq1kVifWe5smzwP1HwH9AeKRD7uj/wrQMUNtWhSY3tXI2/TAaLi/+0d86quKWl/u5/zdFsPfVmzNpIczd+jIVroF481a6zxZ7FAEztrIFNllHYI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741866314; 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=EmbMUtn4Ragm9+LgrXCtANK8IO4AmzKSzu3gc0BIJuPGJTcd79bVh5sExAGv0ezPitlyU/awIMHWyiaFyFrMcLWKb6C/tmuYZplAuRSqY+nHLwDLuUTrluOPMlhxK2coMj0Pq9XFBEJuwyUs8WQd+/a2QjwimcrSqN7VIaEuT9A= 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=du7v878V; arc=none smtp.client-ip=170.10.129.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="du7v878V" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741866312; 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=du7v878VsCTOX/AKaiwHHA79YyRLR6almzoSZSFfwH0EIhNdQJBM/IsPlckC7Gp14usWCw +wnVb0i0hqPfIb0vKpk5DsQaYpxUhCwam3+B+elsCt/bRi0fG/sYgAwY2JabiHDIrZIBST yQ/mMhDwDHkfRhVwrK6GKQ91/XTwlOY= 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-jFf5_Pp4N4WxcU-vfcbF0Q-1; Thu, 13 Mar 2025 07:44:57 -0400 X-MC-Unique: jFf5_Pp4N4WxcU-vfcbF0Q-1 X-Mimecast-MFC-AGG-ID: jFf5_Pp4N4WxcU-vfcbF0Q_1741866296 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-391459c0395so372375f8f.2 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=cBVHVRcJD3GDDcwMG8Q03viSmKxffLI7uCXDvJqiR5URLPzyKGG5djCFQuArPMmQDF 3ht/mHQVS3gxNB75wzlf6TG9MeXck+lqTLIo8DfDta2MKmK29/WnpQA4up3YRHWb814s M2AxixG36lVXwhBpikT2/Rl0JxRHLlC08nFzlEgKd3SZpT1lJazGVRf5Elrx7gxhkWqK xI5ZXF59gKIhdVoBbquf13A9ieAcg90ve98IRsEBBKSsD8c5R/0nGuvNn7aQLJgsOJD+ SufpcYeBSFMWa/ZUjDsxLIxjmv4KMTCIQzvzQ29LpZ4LsAJyczeKjoNKEhVF7VkNCHYH nkiw== X-Forwarded-Encrypted: i=1; AJvYcCXFFHcXxvvRiW7XBZWqxsMf3NdcRcVhclQs9w2W1+M+w/ZAuRK5TAUu/n1TbvX1to4nb+9jrSLrjYHw@vger.kernel.org X-Gm-Message-State: AOJu0YyU/pYuIcg9u1M4h1Xz4j6HPXbVh5Z12jOnTAhD3WBkjwMejzO2 KzWzz2nzJ4VEGJRyUr7YwSPVyjqdQTsW9vfwjP1Q0jvrSbLuiZciONq1ow3jp18EJt3EJsuBaax WLOn3mMui+Bvt1iHDCuSfsOoXUKVvJRIshttULs30xLeLwhQNyLAK0Fdp0oQ= X-Gm-Gg: ASbGncsZiOzH/wy8/ACuVxtAGxjDGy8nc34KEWri2IBGMIA7YFkdq947F/H/WcvnXcO vHIBPdp7sV9WAsdk67tj9Vq4s7aftdqO+JeBU0pKrBt+RjXonktZZ0kcoNTGqb58v3qGDpbojra DxktJovLv+7yhcyFFH5EhLh23I5i9eQO/S/48nNv/xpLSd/IbORyv+XVSoOERK/NsidXKUhqkkE l8RQjCecuNpzFgEF6peUZBTAdJZ5S+8WXn/te/MA2zkI7oqLUttL0pJqrPj0hcQNkymuG/O/Yiu gkW4uir+rruyiNzYQA4G X-Received: by 2002:a5d:64a8:0:b0:391:23e7:968d with SMTP id ffacd0b85a97d-39132db703cmr17836127f8f.47.1741866296133; 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-arch@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit 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