mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Martin Habets <habetsm.xilinx@gmail.com>
To: Ren Zhijie <renzhijie2@huawei.com>
Cc: ecree.xilinx@gmail.com, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] sfc: siena: Fix Kconfig dependencies
Date: Fri, 13 May 2022 13:50:00 +0100	[thread overview]
Message-ID: <20220513125000.xcc5mce2f3gwzcnw@gmail.com> (raw)
In-Reply-To: <20220513012721.140871-1-renzhijie2@huawei.com>

Nit: the subject should have net-next in stead of -next.

On Fri, May 13, 2022 at 09:27:21AM +0800, Ren Zhijie wrote:
> If CONFIG_PTP_1588_CLOCK=m and CONFIG_SFC_SIENA=y, the siena driver will fail to link:
> 
> drivers/net/ethernet/sfc/siena/ptp.o: In function `efx_ptp_remove_channel':
> ptp.c:(.text+0xa28): undefined reference to `ptp_clock_unregister'
> drivers/net/ethernet/sfc/siena/ptp.o: In function `efx_ptp_probe_channel':
> ptp.c:(.text+0x13a0): undefined reference to `ptp_clock_register'
> ptp.c:(.text+0x1470): undefined reference to `ptp_clock_unregister'
> drivers/net/ethernet/sfc/siena/ptp.o: In function `efx_ptp_pps_worker':
> ptp.c:(.text+0x1d29): undefined reference to `ptp_clock_event'
> drivers/net/ethernet/sfc/siena/ptp.o: In function `efx_siena_ptp_get_ts_info':
> ptp.c:(.text+0x301b): undefined reference to `ptp_clock_index'
> 
> To fix this build error, make SFC_SIENA depends on PTP_1588_CLOCK.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Fixes: d48523cb88e0("sfc: Copy shared files needed for Siena (part 2)")
> Signed-off-by: Ren Zhijie <renzhijie2@huawei.com>

Acked-by: Martin Habets <habetsm.xilinx@gmail.com>

> ---
>  drivers/net/ethernet/sfc/siena/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ethernet/sfc/siena/Kconfig b/drivers/net/ethernet/sfc/siena/Kconfig
> index 3d52aee50d5a..3675233e963a 100644
> --- a/drivers/net/ethernet/sfc/siena/Kconfig
> +++ b/drivers/net/ethernet/sfc/siena/Kconfig
> @@ -2,6 +2,7 @@
>  config SFC_SIENA
>  	tristate "Solarflare SFC9000 support"
>  	depends on PCI
> +	depends on PTP_1588_CLOCK
>  	select MDIO
>  	select CRC32
>  	help
> -- 
> 2.17.1

  reply	other threads:[~2022-05-13 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13  1:27 Ren Zhijie
2022-05-13 12:50 ` Martin Habets [this message]
2022-05-13 17:30 ` patchwork-bot+netdevbpf

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=20220513125000.xcc5mce2f3gwzcnw@gmail.com \
    --to=habetsm.xilinx@gmail.com \
    --cc=davem@davemloft.net \
    --cc=ecree.xilinx@gmail.com \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=renzhijie2@huawei.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

all inboxes | Powered by JetHome®