Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5008146pxb; Tue, 28 Sep 2021 08:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaviSNm7c6278JhXqoteRXQS6hEoX+m70+1UtYxQRAwbHgFQJOEpvrvyc1Pf1q889mIk98 X-Received: by 2002:a65:5845:: with SMTP id s5mr5089109pgr.227.1632843816888; Tue, 28 Sep 2021 08:43:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632843816; cv=none; d=google.com; s=arc-20160816; b=q6g/GAUXkvGcJS9y0oHTdmfLMGcjLJuDJQY+FJOASpMCPBgUsPd+FxR66MnWVZqEWx scW7iU+UlqwwA32TBHZPqel+C2I5HXXo5eqRQoOLvGa+1GUciET5RyFLJ0VNSh0WbOBp dCzOlI3i/anhOfwkS1cumFw9DTTH8GjikeAu/W4HVEkBi1X7UTlKhqDxEZ/nOZFGDfmm Bq71qa6oBzxrQMNdaeUx8JkAqRdPUVX40QzOj9rwITX1PCI6YdScezLVqu6kp5Dc4wFA csM9/RStkVEudMejgAQK0KRjehtWvhZHE2Os6//lFWWcNiT6msQ/0+2LhiIaXuJmw4qG V6SQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MhqMVCEshSj8Knw+hCXBHJLkGQ3R69Y7AYuMGNTEhbU=; b=jgtH+MF9mPsoYuGlpbfouipnFKqk71qQxuIWMdJE+Stj99Qs6W54QTsIg/QmnmRVMW hiiIOzqjKxolnUDJXgIZsVAnRX6CuB8Y8lTNGULYMaEczZvXa6WoIj7INFD4/idPgewf dkeKXrCsRw6vx2exa99rEffKhI5PV4NDnqoRK8y/QI9v7lu/QgSuX0rYlUTKNZzpe0aO qQgEPwnui0ESeerC6U0OvhVGByveuaSAv0RYaCXzB9ByLAiQpBPQgZoUx8MaNfU05HG4 eGWUuXTTLxNdy4qq/9P2v1qi7gyRM3PDEhDYJVXIdrR1AkXPERMjv9Fb1NyuAoBTzmRQ c5PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FKfmymYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si26202431pls.309.2021.09.28.08.43.21; Tue, 28 Sep 2021 08:43:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FKfmymYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241729AbhI1Pnv (ORCPT + 99 others); Tue, 28 Sep 2021 11:43:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:60502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241733AbhI1Pnq (ORCPT ); Tue, 28 Sep 2021 11:43:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 68F0761213; Tue, 28 Sep 2021 15:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1632843727; bh=156FKnz/OvVEB3zIN85DJGz9LjSiZjIncr3WzNLycZU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FKfmymYE47y6Sg6Ghf8/IhNvskJR1H4pNPwzOuzO9txBryrVYCKVdObwWZToIspGT /ng5bDJ2x0vtRGPoPgCj3NFeiIONiJGLIgGtfTqpJ4FCyHxXKpCvM9XWK191GMPnIo x8HlvEsE3iBPfb3+398Ojwlv9I7zTVwzwEWuJYqMb22KSBLfGU55UqCA7WnFKGy95U 54sZG8tui8mtQtM4mm0dSgBb62qUZAikQAja0x2MgPQzwVZXDprKtvhl5ipBGS2g5O tTgS7RtqqXqAUwfFGJB1XIiqiJvUrqSYCXLf52TSh5po+xaDynKaU6XDDUr74b5N4E ykLlR3hUB99Xw== From: Arnd Bergmann To: Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Ard Biesheuvel , Linus Walleij , Nathan Chancellor , Nick Desaulniers , llvm@lists.linux.dev Subject: [PATCH 04/14] ARM: kprobes: address gcc -Wempty-body warning Date: Tue, 28 Sep 2021 17:41:33 +0200 Message-Id: <20210928154143.2106903-5-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210928154143.2106903-1-arnd@kernel.org> References: <20210928154143.2106903-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann Building with 'make W=1' shows a warning in some configurations when 'verbose()' is defined to be empty. arch/arm/probes/kprobes/test-core.c: In function 'kprobes_test_case_start': arch/arm/probes/kprobes/test-core.c:1367:26: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body] 1367 | current_instruction); | ^ Change the definition of verbose() to use no_printk(), allowing format string checking and avoiding the warning. Link: https://lore.kernel.org/all/20210322114600.3528031-1-arnd@kernel.org/ Signed-off-by: Arnd Bergmann --- arch/arm/probes/kprobes/test-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/probes/kprobes/test-core.h b/arch/arm/probes/kprobes/test-core.h index f1d5583e7bbb..56ad3c0aaeea 100644 --- a/arch/arm/probes/kprobes/test-core.h +++ b/arch/arm/probes/kprobes/test-core.h @@ -98,7 +98,7 @@ struct test_arg_end { #if VERBOSE #define verbose(fmt, ...) pr_info(fmt, ##__VA_ARGS__) #else -#define verbose(fmt, ...) +#define verbose(fmt, ...) no_printk(fmt, ##__VA_ARGS__) #endif #define TEST_GROUP(title) \ -- 2.29.2