Re: [PATCH] can: rcar_canfd: Describe channel-specific FD registers using C struct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vincent,

On Thu, 19 Jun 2025 at 13:12, Vincent Mailhol
<mailhol.vincent@xxxxxxxxxx> wrote:
> On 19/06/2025 at 19:13, Geert Uytterhoeven wrote:
> > The rcar_canfd_f_*() inline functions to obtain channel-specific CAN-FD
> > register offsets really describe a memory layout.  Hence replace them by
> > a C structure, to simplify the code, and reduce kernel size.
> >
> > This also gets rid of warnings about unused rcar_canfd_f_*() inline
> > functions, which are reported by recent versions of clang.
> >
> > Suggested-by: Vincent Mailhol <mailhol.vincent@xxxxxxxxxx>
> > Reported-by: Jakub Kicinski <kuba@xxxxxxxxxx>
> > Closes: https://lore.kernel.org/20250618183827.5bebca8f@xxxxxxxxxx
> > Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> > ---
> > Fast-tracked because of the clang warnings.
>
> Make sense.
>
> @Jakub, OK for me if you want to directly pick this patch without going through
> the linux-can tree.
>
> > Changes compared to Vincent's original suggestion
> > (https://lore.kernel.org/420d37b1-5648-4209-8d6f-1ac9d780eea2@xxxxxxxxxx):
> >   - Move rcar_canfd_f to the old RCANFD_F_*() location,
> >   - Update RSCFDnCFDCmXXX comment.
> >   - Rename struct rcar_canfd_f to struct rcar_canfd_f,
>                                            ^^^^^^^^^^^^
> rcar_canfd_f_c ;)

Oops, right...

> >   - Rename cbase to fcbase,
> >   - Drop static_assert(),
> >   - Drop unused car_canfd_*_reg() functions.
> >   - Drop simple wrappers around {read,write}l(),
>
> Acked-by: Vincent Mailhol <mailhol.vincent@xxxxxxxxxx>

Thanks!

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux