lkml.org 
[lkml]   [2015]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH trivial] include: asm-generic: Notice about 80 columns in pgtable-no*.h

On 12/16/15 04:26, Joe Perches wrote:
> On Tue, 2015-12-15 at 22:15 +0800, Chen Gang wrote:
>> It is a trivial patch.
> []
>> diff --git a/include/asm-generic/pgtable-nopmd.h b/include/asm-generic/pgtable-nopmd.h
> []
>> @@ -38,7 +38,8 @@ static inline void pud_clear(pud_t *pud) { }
>> * (pmds are folded into puds so this doesn't get actually called,
>> * but the define is needed for a generic inline function.)
>> */
>> -#define set_pud(pudptr, pudval) set_pmd((pmd_t *)(pudptr), (pmd_t) { pudval })
>> +#define set_pud(pudptr, pudval) (set_pmd((pmd_t *)(pudptr), \
>> + (pmd_t) { pudval }))
>
> Not quite so trivial.
>
> If you _really_ want to break this up for 80 columns,
> and I don't think it's necessary, it might be better
> to use something like:
>
> #define set_pud(pudptr, pudval) \
> set_pmd((pmd_t *)(pudptr), (pmd_t) { pudval })
>

OK, thanks. For me, it is better.

--
Chen Gang (陈刚)

Open, share, and attitude like air, water, and life which God blessed


\
 
 \ /
  Last update: 2015-12-15 23:21    [W:0.070 / U:1.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site