From: David Miller <davem@davemloft.net>
To: felix.manlunas@cavium.com
Cc: netdev@vger.kernel.org, raghu.vatsavayi@cavium.com,
derek.chickles@cavium.com, satananda.burla@cavium.com,
ricardo.farrington@cavium.com
Subject: Re: [PATCH v2 net-next 2/2] liquidio: cleanup: removed cryptic and misleading macro
Date: Tue, 25 Jul 2017 21:20:45 -0700 (PDT) [thread overview]
Message-ID: <20170725.212045.1610374225574402504.davem@davemloft.net> (raw)
In-Reply-To: <20170725001727.GA1170@felix-thinkpad.cavium.com>
From: Felix Manlunas <felix.manlunas@cavium.com>
Date: Mon, 24 Jul 2017 17:17:27 -0700
> From: Rick Farrington <ricardo.farrington@cavium.com>
>
> Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
> ---
> drivers/net/ethernet/cavium/liquidio/octeon_console.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_console.c b/drivers/net/ethernet/cavium/liquidio/octeon_console.c
> index 501ad95..0770183 100644
> --- a/drivers/net/ethernet/cavium/liquidio/octeon_console.c
> +++ b/drivers/net/ethernet/cavium/liquidio/octeon_console.c
> @@ -42,8 +42,6 @@ module_param(console_bitmask, int, 0644);
> MODULE_PARM_DESC(console_bitmask,
> "Bitmask indicating which consoles have debug output redirected to syslog.");
>
> -#define CAST_ULL(v) ((u64)(v))
> -
> #define BOOTLOADER_PCI_READ_BUFFER_DATA_ADDR 0x0006c008
> #define BOOTLOADER_PCI_READ_BUFFER_LEN_ADDR 0x0006c004
> #define BOOTLOADER_PCI_READ_BUFFER_OWNER_ADDR 0x0006c000
> @@ -233,7 +231,7 @@ static int __cvmx_bootmem_check_version(struct octeon_device *oct,
> (exact_match && major_version != exact_match)) {
> dev_err(&oct->pci_dev->dev, "bootmem ver mismatch %d.%d addr:0x%llx\n",
> major_version, minor_version,
> - CAST_ULL(oct->bootmem_desc_addr));
> + (long long)(oct->bootmem_desc_addr));
Too many parenthesis.
When oct->bootmem_desc_addr was the argument to a macro/function, yes
the parenthesis were necessary. But now they should be removed.
prev parent reply other threads:[~2017-07-26 4:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-25 0:15 [PATCH v2 net-next 0/2] liquidio: standardization and cleanup Felix Manlunas
2017-07-25 0:16 ` [PATCH v2 net-next 1/2] liquidio: standardization: use min_t instead of custom macro Felix Manlunas
2017-07-25 0:17 ` [PATCH v2 net-next 2/2] liquidio: cleanup: removed cryptic and misleading macro Felix Manlunas
2017-07-26 4:20 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170725.212045.1610374225574402504.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=derek.chickles@cavium.com \
--cc=felix.manlunas@cavium.com \
--cc=netdev@vger.kernel.org \
--cc=raghu.vatsavayi@cavium.com \
--cc=ricardo.farrington@cavium.com \
--cc=satananda.burla@cavium.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).