netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Randy Dunlap <rdunlap@infradead.org>
Cc: Shannon Nelson <snelson@pensando.io>,
	netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
	drivers@pensando.io
Subject: Re: [PATCH v2 net] ionic: fix ptp support config breakage
Date: Wed, 5 May 2021 09:27:07 +0300	[thread overview]
Message-ID: <YJI6u+L7Irme/0SX@unreal> (raw)
In-Reply-To: <1f59a61f-b358-1248-15cf-d7ffd1446747@infradead.org>

On Tue, May 04, 2021 at 11:13:59PM -0700, Randy Dunlap wrote:
> On 5/4/21 10:32 PM, Leon Romanovsky wrote:
> > On Tue, May 04, 2021 at 05:00:59PM -0700, Shannon Nelson wrote:
> >> Driver link failed with undefined references in some
> >> kernel config variations.
> >>
> >> v2 - added Fixes tag
> > 
> > Changelogs should be below "---" line.
> > We don't need them in commit message history.
> > 
> >>
> >> Fixes: 61db421da31b ("ionic: link in the new hw timestamp code")
> >> Reported-by: kernel test robot <lkp@intel.com>
> >> Signed-off-by: Shannon Nelson <snelson@pensando.io>
> >> ---
> >>  drivers/net/ethernet/pensando/ionic/Makefile    | 3 +--
> >>  drivers/net/ethernet/pensando/ionic/ionic_phc.c | 3 +++
> >>  2 files changed, 4 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/net/ethernet/pensando/ionic/Makefile b/drivers/net/ethernet/pensando/ionic/Makefile
> >> index 4e7642a2d25f..61c40169cb1f 100644
> >> --- a/drivers/net/ethernet/pensando/ionic/Makefile
> >> +++ b/drivers/net/ethernet/pensando/ionic/Makefile
> >> @@ -5,5 +5,4 @@ obj-$(CONFIG_IONIC) := ionic.o
> >>  
> >>  ionic-y := ionic_main.o ionic_bus_pci.o ionic_devlink.o ionic_dev.o \
> >>  	   ionic_debugfs.o ionic_lif.o ionic_rx_filter.o ionic_ethtool.o \
> >> -	   ionic_txrx.o ionic_stats.o ionic_fw.o
> >> -ionic-$(CONFIG_PTP_1588_CLOCK) += ionic_phc.o
> >> +	   ionic_txrx.o ionic_stats.o ionic_fw.o ionic_phc.o
> >> diff --git a/drivers/net/ethernet/pensando/ionic/ionic_phc.c b/drivers/net/ethernet/pensando/ionic/ionic_phc.c
> >> index a87c87e86aef..30c78808c45a 100644
> >> --- a/drivers/net/ethernet/pensando/ionic/ionic_phc.c
> >> +++ b/drivers/net/ethernet/pensando/ionic/ionic_phc.c
> >> @@ -1,6 +1,8 @@
> >>  // SPDX-License-Identifier: GPL-2.0
> >>  /* Copyright(c) 2017 - 2021 Pensando Systems, Inc */
> >>  
> >> +#if IS_ENABLED(CONFIG_PTP_1588_CLOCK)
> > 
> > I'm not sure, but think that IS_ENABLED() is intended to be used inside
> > functions/macros as boolean expression.
> > 
> > For other places like this, "#if CONFIG_PTP_1588_CLOCK" is better fit.
> 
> s/#if/#ifdef/

Sure, thanks.

      reply	other threads:[~2021-05-05  6:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-05  0:00 [PATCH v2 net] ionic: fix ptp support config breakage Shannon Nelson
2021-05-05  5:32 ` Leon Romanovsky
2021-05-05  6:13   ` Randy Dunlap
2021-05-05  6:27     ` Leon Romanovsky [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=YJI6u+L7Irme/0SX@unreal \
    --to=leon@kernel.org \
    --cc=davem@davemloft.net \
    --cc=drivers@pensando.io \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=snelson@pensando.io \
    /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).