Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2258567ybv; Fri, 21 Feb 2020 11:57:25 -0800 (PST) X-Google-Smtp-Source: APXvYqyJ5/z+W3VoTc+oJik32dW2gjIKqsYkTJ+rgPQqaRrh4IxFv460ezBeCkp64B/wVeC1sTPL X-Received: by 2002:aca:7244:: with SMTP id p65mr3298182oic.50.1582315045486; Fri, 21 Feb 2020 11:57:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582315045; cv=none; d=google.com; s=arc-20160816; b=vRAsfMrHxBGN2vzZRqbNch+Icxysd0zhIOeKjf+EatqSWcKGu4rLCyomlfUeigZqKF Zc5ctCBE7C2KAWhnfUU6hrlxFF8ht/XR3+zmehT5FT8NpK4xjgC8XqYPt9+IO25to0+s GZHR8MkmDD7sAamKckCTQFquB0/J4V0i87ipN3huIi9ZhAyyk8pPuaVQsZDD9RsJS82K GcqB0kRM5OzWj3LrYSOOpqwvcfPuizHgE5HKliKtwW4iXAQEW2WMATdsSVLv7jNiihhi X/HuFaYMocPuiUbvmDbmCE85zVmoHhDCDKMpQLePW3TOUYiljvNrbmEz6yfUCo2Xs7Dd dwGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=btdpP75zyRVNd2zdgzUEwBQJP+VyfWPJzrchDwkOdOs=; b=jK6E2IFPvYuzA36pV7raC+bRTAE5/bA811KbG7Hk4LQmHm4ecKUEPDT0sNqfVgFFN8 pB0nVOsHnFHGzpaktBUb3LMm/veB3k9yFXECIX5vhMT65ivGejonoiLUNhNE/fN3O87Q ogr0+1ZhqQwYiTQp3MtxQpubqmmZOiZ8Z6x3dObbpN8wfoXIWk1hbGZUuLWku5arIyMz 39Ss0Zhb90FWyrnmYQXgXWH2Atnr4Mo5jmA/UAgcRsWG3rHgUnRLCAOBNFgtxwlsCRC/ rSfzdruuuVxTAwvUWSu+Vh6OehWqeHUN6MEexubcxFpIi76vqXNefA7HQIvF64KIe8nN IOYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=PEKn2MBc; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iitr.ac.in Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13si1221877oij.118.2020.02.21.11.57.13; Fri, 21 Feb 2020 11:57:25 -0800 (PST) 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; dkim=pass header.i=@es-iitr-ac-in.20150623.gappssmtp.com header.s=20150623 header.b=PEKn2MBc; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iitr.ac.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727184AbgBUT5F (ORCPT + 99 others); Fri, 21 Feb 2020 14:57:05 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:33647 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726483AbgBUT5F (ORCPT ); Fri, 21 Feb 2020 14:57:05 -0500 Received: by mail-pf1-f195.google.com with SMTP id n7so1806719pfn.0 for ; Fri, 21 Feb 2020 11:57:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=es-iitr-ac-in.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=btdpP75zyRVNd2zdgzUEwBQJP+VyfWPJzrchDwkOdOs=; b=PEKn2MBcmvOEnkpWiIbdjv9ZxqEbvv+hAMODBy0nzIAv4StveA+VGLTeX2JDlTFEJp tdcNhIA+M1Nwm3hEkKkVeDapbpCcNaSrHKuMod09Ej5rITU1adajdij1pqlZmVx6EBXW XTq2YspggUFvNn91B6mYvitzYdXAxxYC71zP2AKUql8n6+wROY/qu9O6X4LSv2gUcnpa +0RZ8xM8AriE5vZgEyNnHmHJjsDRAjqb7dg0Vo4c//+95R+IaT/Dl9GQtEL7I/RraezV nE4xMHTV6ZhGG5KkmN7W51vDD9/utKvHatkX0CHIh/mYu7r0cYaA3Mgk2D1gEfFCSP9R fbbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=btdpP75zyRVNd2zdgzUEwBQJP+VyfWPJzrchDwkOdOs=; b=giEZ18yy/3ZwjWBU8AvECuGbmdFpvYvWPopOuVaJ5DTwjDHmDGXGaR9hbklsqDXKRA XsNRp81+AlgB+OkRA37Bz/PDfNAMJjjNoARL7/GIn53+1ZMiPnIjpoWWzwCCWvBJVXGT G6GEVS5GEQ4jYK6e24pEVF1+aASzIQpLWIb+Wue0S10Dmqxxp8YZpQsAhvD3ZmoTkQC9 mUKw3Jx6sorP1/TFS6Z6DsafG0/o+BQg6R98TNUSXAXX/Z5TAm9d4g8LZOLm1UhB0uvE MxJm3f35ygQhnw2amZiK/LIDVZEZMKhTNCJf2JKmxWf/IldpDvuoLK4G6K+0yEBuLwWK acQg== X-Gm-Message-State: APjAAAUuGy1aoGVZV/x5TMcc9/bEdX1kPlqUpjwvh/LOKoazJaKQycOX 3jh6thVx7jfZvtCYf44ymaeLUsdTNFoQw/O5 X-Received: by 2002:a63:487:: with SMTP id 129mr39862540pge.193.1582315019992; Fri, 21 Feb 2020 11:56:59 -0800 (PST) Received: from kaaira-HP-Pavilion-Notebook ([103.37.201.178]) by smtp.gmail.com with ESMTPSA id x28sm3274324pgc.83.2020.02.21.11.56.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Feb 2020 11:56:59 -0800 (PST) Date: Sat, 22 Feb 2020 01:26:49 +0530 From: Kaaira Gupta To: Manish Chopra , GR-Linux-NIC-Dev@marvell.com, Greg Kroah-Hartman , netdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: qlge: add braces around macro arguments Message-ID: <20200221195649.GA18450@kaaira-HP-Pavilion-Notebook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch.pl warnings of adding braces around macro arguments to prevent precedence issues by adding braces in qlge_dbg.c Signed-off-by: Kaaira Gupta --- drivers/staging/qlge/qlge_dbg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/qlge/qlge_dbg.c b/drivers/staging/qlge/qlge_dbg.c index 8cf39615c520..c7af2548d119 100644 --- a/drivers/staging/qlge/qlge_dbg.c +++ b/drivers/staging/qlge/qlge_dbg.c @@ -1525,7 +1525,7 @@ void ql_dump_regs(struct ql_adapter *qdev) #ifdef QL_STAT_DUMP #define DUMP_STAT(qdev, stat) \ - pr_err("%s = %ld\n", #stat, (unsigned long)qdev->nic_stats.stat) + pr_err("%s = %ld\n", #stat, (unsigned long)(qdev)->nic_stats.stat) void ql_dump_stat(struct ql_adapter *qdev) { @@ -1578,12 +1578,12 @@ void ql_dump_stat(struct ql_adapter *qdev) #ifdef QL_DEV_DUMP #define DUMP_QDEV_FIELD(qdev, type, field) \ - pr_err("qdev->%-24s = " type "\n", #field, qdev->field) + pr_err("qdev->%-24s = " type "\n", #field, (qdev)->(field)) #define DUMP_QDEV_DMA_FIELD(qdev, field) \ pr_err("qdev->%-24s = %llx\n", #field, (unsigned long long)qdev->field) #define DUMP_QDEV_ARRAY(qdev, type, array, index, field) \ pr_err("%s[%d].%s = " type "\n", \ - #array, index, #field, qdev->array[index].field); + #array, index, #field, (qdev)->array[index].field); void ql_dump_qdev(struct ql_adapter *qdev) { int i; -- 2.17.1