Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp30841lqe; Fri, 5 Apr 2024 11:32:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPb1S1FKzQf16Dk7t2KddwBIRDYL0CmuW/4CtlYyBb8izpczhY6baZDUnnwU7I5RgA9UZNysxYXrUGjCQyjrJUY3bkVUojKmv911iKCQ== X-Google-Smtp-Source: AGHT+IF0JP/1oxJ2kXadEXFENIT0+O0F77vaQH4jlPZdJlESyH4Lb5f6s6LZRd7WiLewUB2T/1oQ X-Received: by 2002:a05:6a00:180f:b0:6ea:f05d:d2ec with SMTP id y15-20020a056a00180f00b006eaf05dd2ecmr2766076pfa.2.1712341962775; Fri, 05 Apr 2024 11:32:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712341962; cv=pass; d=google.com; s=arc-20160816; b=qF+7qRqFoA+LqdfqUW6QQ5Kb4cPwk0M4No6c/h6+Byw5dFSh/dEGqwrU9/cvdK84Xn y6LCOsfy2I5PvC4BtYLy3N81IIydl/fzV42rxcFIAJsy96dq1OBuf9gToPACXjWvoJtM EkdYC6TFbfpORQKa1SUUFUkqI0teHB4RjUWgYo4fOGlHkSbAHenNNwREQ6FyUBaqLSr8 O8y12LnLPPXZRTJWvjm4tFGXQqJnPP98nqFhwJ2yQDoys4ODyNt/yrIFBPiU9AjqnHU8 7wyUxiE0gpzk6UrE+G4or+lkKdb+0ftHI0I9VBH9ctnL2QdLq97SklyO+ZVlXf11hQ2e 4kPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qR1ZTT+iAv5u8sWFe2lOHCaXvsxPqKei8QYo4pq/+JY=; fh=HP7ySrhtTkXFtpf0lYVjlBqrhmwvgqF1OPLYX2lZaxc=; b=SgJCLBRB+bfWc4d+DVdpSH+EAGCNlgfONOp/enOP5ROhFCA79vi7jTNUZfTiKqnu5h WG/eNc8iV9DXMRWaHgfVZbhLYxsWrmgMsejRJxV35OsBW693PCiaSm8lgoDORPDzDGwO ykDm3bIWI3a5/npLjBPTA1e9tNgoJQ3hRc6XCxjx9ijeFYljr5uQu6YUifpgSOscYhKV Ym8EZYMMeMUuwriQTfWiOFm2/nM417XSE1mDsaz1k1GcYMtyAdZmJsFypboq8XDQ/khY b7TtyW/7soX01oFrU8IV7DXp6/3Nc9sA27hJoaxZVE6itFiihS82qn91gE4FaZo7DwKb 9JWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PjsNhh0f; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id x38-20020a056a0018a600b006eac0139f20si1811568pfh.254.2024.04.05.11.32.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 11:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133470-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=@kernel.org header.s=k20201202 header.b=PjsNhh0f; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-133470-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 AD3FDB218D0 for ; Fri, 5 Apr 2024 18:31:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A056517279C; Fri, 5 Apr 2024 18:31:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PjsNhh0f" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A620F1CA87; Fri, 5 Apr 2024 18:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712341871; cv=none; b=mivwRx7cOnANIQEOdIzbZx6Yl7y4rKHAv+Wp0RV44hCBr5lcHv0lKqrNhwcb4NhuyNtiKKUpeXho9blF8YBOOQePTGvkBgLnWYHCSuf7ghNwfqQPWKnI8u6w6+qbDP02JK0aY4kgNXTEjAZUi6D7cSEa7DOdsytdASKags1CJ0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712341871; c=relaxed/simple; bh=SpJ5IQ9UhqrJWD/qugetHjxi8hPNKx//RaZUEP7dXMk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YSEkRGUj4YO3kqDQ6tWQAqyluFYXGnwxoAB/8Q6iKHrcxjNOZiqatuMhajZKC7wQw/nWHPXXkXkruWARn7hAyl4gSMXLPSoiOxRdxm15C8/fi2WCzYFToQCFRvVFfCpHqmFy6ujWQIK28xXm06yd4hTbirI6kSkoPCGzGEUlKIA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PjsNhh0f; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C78FFC433F1; Fri, 5 Apr 2024 18:31:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712341871; bh=SpJ5IQ9UhqrJWD/qugetHjxi8hPNKx//RaZUEP7dXMk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PjsNhh0fjSHbdf2868fr6XGX0ymVpLd72hs4QqY449d2ixqqIbiOZ9KGWsTScBEdM MmD6oO1ZFR5n/8XBcvJfrg+1fJuE6RWAslDhUeScY/894NlfAHOyDlBtG+Jpj6Xgim AEpzgBbfrsVfqV97+U4MIZvB6mlskGvejsxy0uQkrvJ6HQBnEonvJPKwG4UwRXSFPC sokGvl/2IbsBR2HRjgP5VVh/y6bBeOez+JNtA6wzhbGF/BxyaWGie9mhpM3y8Fsgqy nccatqMs+mRkE11DcKuPOVmzq2/2RT6tsP9WZvm4sK8QAsHlkDj+GzXZn741rHxhYU UZgSQsgWkKskQ== Date: Fri, 5 Apr 2024 19:31:02 +0100 From: Simon Horman To: Guenter Roeck Cc: linux-kselftest@vger.kernel.org, David Airlie , Arnd Bergmann , =?utf-8?B?TWHDrXJh?= Canal , Dan Carpenter , Kees Cook , Daniel Diaz , David Gow , Arthur Grillo , Brendan Higgins , Naresh Kamboju , Maarten Lankhorst , Andrew Morton , Maxime Ripard , Ville =?utf-8?B?U3lyasOkbMOk?= , Daniel Vetter , Thomas Zimmermann , 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, netdev@vger.kernel.org, x86@kernel.org, Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz Subject: Re: [PATCH v3 13/15] sh: Move defines needed for suppressing warning backtraces Message-ID: <20240405183102.GU26556@kernel.org> References: <20240403131936.787234-1-linux@roeck-us.net> <20240403131936.787234-14-linux@roeck-us.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=us-ascii Content-Disposition: inline In-Reply-To: <20240403131936.787234-14-linux@roeck-us.net> On Wed, Apr 03, 2024 at 06:19:34AM -0700, Guenter Roeck wrote: > 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 > --- > v3: Added patch. Possibly squash into previous patch. FWIIW, this looks good to me. > 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.39.2 >