Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2048126ybv; Sun, 23 Feb 2020 21:32:56 -0800 (PST) X-Google-Smtp-Source: APXvYqx6x4ZXBtZjaKmqfF2qoq8B93usaJh70/R1fvWaEQ4ik2mIGS/wCrdaBLdY84mAy/UBtW2y X-Received: by 2002:aca:fd4c:: with SMTP id b73mr11657487oii.33.1582522376334; Sun, 23 Feb 2020 21:32:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582522376; cv=none; d=google.com; s=arc-20160816; b=l84hwdUdD5q+NjPwMO5scMMY79p9aOhsZv6XpwQA8LSwwF81r4DFjRKIwZeNFH4Pu5 G4CnJX5MjF2XUMcR/di8vifDxISZTtvj2QT6FFmbScT4lj6sMI+Lq1Y/Dt8oQJCElPXj lN5SGJrrXR/W9ZoDmj2ifqErYK5Lh4QFiHiuNVsyKazEfg8HrjgI4oeZp8VU8XiJ3zl2 2qRCB3QbEt0VcQKhOkHASoOD80aH5LoL3BnLH5QWftFL0uKYqx9gN3U988nvDs0nBRqf 7WRfw7XUMOdCG5NJzFyeDcASZrwRYXNfILk4fpcdzAuFzIGUSFDQMSt1N4+8oJQEfQhm /Etw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gmAc8ivr/C7d+QzZGVBXrbDmIH8je8z/sIj0mHBkKGA=; b=jTTbugwj+4X3ggDxSna20TtOUWX54qim3zTZ8u++iQZABrYsxSM6pl7nlzLRkN6wqb 5tdOKvCxW1OPqYsbiBz3r7JxlV+U2Nm4yDifeFZWyOguQG1UmuL+lGEHCc9BCzRmZUjE MogNtmlccBV3g/VjFjlm4w0zuforoQYTlOLaHneH4EtKZMZUH3i9U0vdbrED3b7BA70S paP9SyCL4x1k6p3GcTKEc8fVBFxKnNqWmrODDRdjc+f00llIWeaDYoQ0wjAWbgRnN0rs gwTtDU4v/Lh7LU0SvCrnelfSETvivECj1+GQWlg5vADwUWca4Ptzcpo/5OP5HXJBaCfS gpew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZWrpZPkw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m14si5775937otr.131.2020.02.23.21.32.43; Sun, 23 Feb 2020 21:32:56 -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=@gmail.com header.s=20161025 header.b=ZWrpZPkw; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727060AbgBXFce (ORCPT + 99 others); Mon, 24 Feb 2020 00:32:34 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:34665 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726597AbgBXFcd (ORCPT ); Mon, 24 Feb 2020 00:32:33 -0500 Received: by mail-pg1-f195.google.com with SMTP id j4so4530887pgi.1; Sun, 23 Feb 2020 21:32:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gmAc8ivr/C7d+QzZGVBXrbDmIH8je8z/sIj0mHBkKGA=; b=ZWrpZPkwcspILxRqZCPH6tehznrkWPgVYfNG0SD2upeoyUXb2JLfL7V8pdTjmALv0S +JADJ8tHoCASKaF0JZPZDYLtP+dyWdjrRL9md1pi6U2CvIaiBRLL2/oulbtKziwqEpEX jfDoCmYscWwSCtgfxTLf0hfKSbWa0RlcjEFt9n5ZZ89ECzhLBm6S97D5Q3hGtHH3mbi7 q2lLJCeowTs88oR0wkYSShUwFfqhe8HymVHK+F1khjwVYT+fdB6q7ZLc5dLEnMw+RCIb pWLlzM2EP5kESxosnQWxBnEcv1ESO7Ld7CkPd6VltMfOI0r77iMlOrXSMsIhaqzR84CJ zE8Q== 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:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gmAc8ivr/C7d+QzZGVBXrbDmIH8je8z/sIj0mHBkKGA=; b=h9OmwCGixfXUVNbS1LvSazBcPhb0hL2GwK5Vkp2wz2VGRL7BNMrGIJ/ZUSo3qncVFB AFMA0V/AqEcC8RWUMT5ctEYSu+m4pIOrj5wAMCOiq4v4qbsv/VbaHT3mDhAAYpGbMSrF TbKDnFPQ4APmta9U8Ma1SBodKKEdTJUCjgACe/NKUTyCihhTr4OijBHdASTlZ3ITjq1T fwf2tfEiU9QBYoLUmdT215cMA8z2GdmuEHn5BBzzZtr+xdggG+oMFllIGuEH5dOitZE3 uSxpHFis+opBhsI6seMu/gx4vAUq5mqghuS/CY72Yt6AbHA2b6jz6wJNMlZWG44x4SdR I/5Q== X-Gm-Message-State: APjAAAWq2BhN76jEyMtd9BTltn5U2DnqKQQ7TtYoT8MD4hR89gusQXYK jrd+nuk5vm+LdlDhq3K7cAs= X-Received: by 2002:aa7:8804:: with SMTP id c4mr50981283pfo.214.1582522352952; Sun, 23 Feb 2020 21:32:32 -0800 (PST) Received: from f3 (ag119225.dynamic.ppp.asahi-net.or.jp. [157.107.119.225]) by smtp.gmail.com with ESMTPSA id z10sm10489746pgf.35.2020.02.23.21.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Feb 2020 21:32:31 -0800 (PST) Date: Mon, 24 Feb 2020 14:32:25 +0900 From: Benjamin Poirier To: Kaaira Gupta Cc: 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: Re: [PATCH] staging: qlge: add braces around macro arguments Message-ID: <20200224053225.GB312634@f3> References: <20200221195649.GA18450@kaaira-HP-Pavilion-Notebook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200221195649.GA18450@kaaira-HP-Pavilion-Notebook> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/02/22 01:26 +0530, Kaaira Gupta wrote: > 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) ^^^^ You missed one.