Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp735380imm; Thu, 13 Sep 2018 07:02:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZv6fFMh2Kph1PPTMKvFpApFbsReYFgnhinnYjz0QgWmZWBxtjAXHqJi7jkrJlQfq2x3HSp X-Received: by 2002:a65:5b48:: with SMTP id y8-v6mr7478667pgr.125.1536847324146; Thu, 13 Sep 2018 07:02:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847324; cv=none; d=google.com; s=arc-20160816; b=cSvOWKWEajDcqpQiQO3zsmCHm/VEIrY1HD3kJ4Mch/DUor6LDpwoVWKJY4Uvcr9CF/ lpEi8JxtwU7Sl78bvxJ5zX81tRaeYSMnlSeOJhUsWkOEprZ1zFrObT4EhIQCTWXvgH0T zjVFVLQtGQQGIHbnx/a3MiepVzBSlfM+Z++ZzgtqfvFgmVf1BrRdVohJ8JGQH5OwhU52 eOcASEKl8qaxoHnHz20wd73Q9C61/DH6Qhmz6mqQWUgSpw179ebXVMRtKOzCoEsKfsdp ci8OLgv0vWfNnrH6vcztDXVajOxXCm5LV2sfYTVU2V+5aQ7fQ/G6BR0t9Zu9kgMFmKsp 84hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=tIA3mcgOG3Cbm4+B7nCXDBCkUDijiCTuknnFD0woMC4=; b=x03r6u2UReN9i5zkJFLGIZr4UMhE4nqquTY6cQ/coJtIJArq/ElG9Zb1kmHQAqzanB d98ILF5humc9q7Ap6sLdnZ5j4b81c3wzQQywr/J+vIBTpGKPmkLcbf7UMaYQrDdSMddI +b3o33W4y3nxAqnpc6FlHaSRGF0njf8YIEIBZnQviZGk//EhazhqbsmQPrEcToVIpPAm VddgAzrocBTokbRuDWLz2q0GGhm9KIeP6PVafu5Mom7qIP5UpnhnTdFbiHopbZ0jbHfY GkVNlhEhPcWVRVpxOnHHNUgvcTd4UYcncbtsRpIENZ6/hr+LGb3WO9QoaC0fkZ4/4Kzz JgUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 81-v6si4219998pgd.57.2018.09.13.07.01.46; Thu, 13 Sep 2018 07:02:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731852AbeIMTLQ (ORCPT + 99 others); Thu, 13 Sep 2018 15:11:16 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35068 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729076AbeIMTLP (ORCPT ); Thu, 13 Sep 2018 15:11:15 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 31D5DD27; Thu, 13 Sep 2018 14:01:37 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bart Van Assche , David Sterba , Sasha Levin Subject: [PATCH 4.18 141/197] btrfs: Fix a C compliance issue Date: Thu, 13 Sep 2018 15:31:30 +0200 Message-Id: <20180913131847.197346476@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bart Van Assche [ Upstream commit edf57cbf2b030781885e339f32e35a470d2f8eba ] The C programming language does not allow to use preprocessor statements inside macro arguments (pr_info() is defined as a macro). Hence rework the pr_info() statement in btrfs_print_mod_info() such that it becomes compliant. This patch allows tools like sparse to analyze the BTRFS source code. Fixes: 62e855771dac ("btrfs: convert printk(KERN_* to use pr_* calls") Signed-off-by: Bart Van Assche Reviewed-by: David Sterba Signed-off-by: David Sterba Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/super.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2370,7 +2370,7 @@ static __cold void btrfs_interface_exit( static void __init btrfs_print_mod_info(void) { - pr_info("Btrfs loaded, crc32c=%s" + static const char options[] = "" #ifdef CONFIG_BTRFS_DEBUG ", debug=on" #endif @@ -2383,8 +2383,8 @@ static void __init btrfs_print_mod_info( #ifdef CONFIG_BTRFS_FS_REF_VERIFY ", ref-verify=on" #endif - "\n", - crc32c_impl()); + ; + pr_info("Btrfs loaded, crc32c=%s%s\n", crc32c_impl(), options); } static int __init init_btrfs_fs(void)