lkml.org 
[lkml]   [2022]   [Jun]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 5/6] arm64: mm: Convert to GENERIC_IOREMAP
On Mon, Jun 06, 2022 at 09:28:22PM +0800, Kefeng Wang wrote:
> As commit bdc48fa11e46  ("checkpatch/coding-style: deprecate 80-column
> warning") increased
>
> the limit to 100 columns,so I don't get warning when using checkpatch, and
> it is not a hard limit,

No, it did not increase the general limit, just for exception cases.
Block comments certainly don't fall under that, and while the mileage
on the defineѕ may vary it generally is more readable to have them
on the next line.

checkpath is unfortunately totall broken these days :(

>
> but if this is a mandatory requirement, I will resend them with break lines.
>
> > > +#define ioremap_cache(addr, size) ({ \
> > > + pfn_is_map_memory(__phys_to_pfn(addr)) ? \
> > > + (void __iomem *)__phys_to_virt(addr) : ioremap_prot(addr, size, PROT_NORMAL); \
> > > +})
> > And this really should be an inline function.
>
> We still need a define, see kernel/iomem.c,

You can just define it to the same name after the inline.

\
 
 \ /
  Last update: 2022-06-06 18:29    [W:0.086 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site