lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200224053225.GB312634@f3>
Date:   Mon, 24 Feb 2020 14:32:25 +0900
From:   Benjamin Poirier <benjamin.poirier@...il.com>
To:     Kaaira Gupta <kgupta@...iitr.ac.in>
Cc:     Manish Chopra <manishc@...vell.com>, GR-Linux-NIC-Dev@...vell.com,
        Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        netdev@...r.kernel.org, devel@...verdev.osuosl.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: qlge: add braces around macro arguments

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 <kgupta@...iitr.ac.in>
> ---
>  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.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ