From: Jakub Kicinski <kuba@kernel.org>
To: Marc Kleine-Budde <mkl@pengutronix.de>,
Geert Uytterhoeven <geert+renesas@glider.be>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
linux-can@vger.kernel.org, kernel@pengutronix.de,
Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Subject: Re: [PATCH net-next 06/10] can: rcar_canfd: Repurpose f_dcfg base for other registers
Date: Wed, 18 Jun 2025 18:38:27 -0700 [thread overview]
Message-ID: <20250618183827.5bebca8f@kernel.org> (raw)
In-Reply-To: <20250618092336.2175168-7-mkl@pengutronix.de>
On Wed, 18 Jun 2025 11:20:00 +0200 Marc Kleine-Budde wrote:
> +static inline unsigned int rcar_canfd_f_dcfg(struct rcar_canfd_global *gpriv,
> + unsigned int ch)
> +{
> + return gpriv->info->regs->coffset + 0x00 + 0x20 * ch;
> +}
> +
> +static inline unsigned int rcar_canfd_f_cfdcfg(struct rcar_canfd_global *gpriv,
> + unsigned int ch)
> +{
> + return gpriv->info->regs->coffset + 0x04 + 0x20 * ch;
> +}
> +
> +static inline unsigned int rcar_canfd_f_cfdctr(struct rcar_canfd_global *gpriv,
> + unsigned int ch)
> +{
> + return gpriv->info->regs->coffset + 0x08 + 0x20 * ch;
> +}
> +
> +static inline unsigned int rcar_canfd_f_cfdsts(struct rcar_canfd_global *gpriv,
> + unsigned int ch)
> +{
> + return gpriv->info->regs->coffset + 0x0c + 0x20 * ch;
> +}
> +
> +static inline unsigned int rcar_canfd_f_cfdcrc(struct rcar_canfd_global *gpriv,
> + unsigned int ch)
> +{
> + return gpriv->info->regs->coffset + 0x10 + 0x20 * ch;
> +}
clang is no longer fooled by static inline, it identifies that 4 out of
these functions are never called. I think one ends up getting used in
patch 10 (just looking at warning counts), but the other 3 remain dead
code. Geert, do you have a strong attachment to having all helpers
defined or can we trim this, please?
next prev parent reply other threads:[~2025-06-19 1:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 9:19 [PATCH net-next 0/10] pull-request: can-next 2025-06-18 Marc Kleine-Budde
2025-06-18 9:19 ` [PATCH net-next 01/10] can: rcar_canfd: Consistently use ndev for net_device pointers Marc Kleine-Budde
2025-06-19 15:30 ` patchwork-bot+netdevbpf
2025-06-18 9:19 ` [PATCH net-next 02/10] can: rcar_canfd: Remove bittiming debug prints Marc Kleine-Budde
2025-06-18 9:19 ` [PATCH net-next 03/10] can: rcar_canfd: Add helper variable ndev to rcar_canfd_rx_pkt() Marc Kleine-Budde
2025-06-18 9:19 ` [PATCH net-next 04/10] can: rcar_canfd: Add helper variable dev to rcar_canfd_reset_controller() Marc Kleine-Budde
2025-06-18 9:19 ` [PATCH net-next 05/10] can: rcar_canfd: Simplify data access in rcar_canfd_{ge,pu}t_data() Marc Kleine-Budde
2025-06-18 9:20 ` [PATCH net-next 06/10] can: rcar_canfd: Repurpose f_dcfg base for other registers Marc Kleine-Budde
2025-06-19 1:38 ` Jakub Kicinski [this message]
2025-06-19 4:43 ` Vincent Mailhol
2025-06-19 10:16 ` Geert Uytterhoeven
2025-06-19 14:22 ` Jakub Kicinski
2025-06-18 9:20 ` [PATCH net-next 07/10] can: rcar_canfd: Rename rcar_canfd_setrnc() to rcar_canfd_set_rnc() Marc Kleine-Budde
2025-06-18 9:20 ` [PATCH net-next 08/10] can: rcar_canfd: Share config code in rcar_canfd_set_bittiming() Marc Kleine-Budde
2025-06-18 9:20 ` [PATCH net-next 09/10] can: rcar_canfd: Return early in rcar_canfd_set_bittiming() when not FD Marc Kleine-Budde
2025-06-18 9:20 ` [PATCH net-next 10/10] can: rcar_canfd: Add support for Transceiver Delay Compensation Marc Kleine-Budde
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=20250618183827.5bebca8f@kernel.org \
--to=kuba@kernel.org \
--cc=davem@davemloft.net \
--cc=geert+renesas@glider.be \
--cc=kernel@pengutronix.de \
--cc=linux-can@vger.kernel.org \
--cc=mailhol.vincent@wanadoo.fr \
--cc=mkl@pengutronix.de \
--cc=netdev@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.