[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1450211204.4142.30.camel@perches.com>
Date: Tue, 15 Dec 2015 12:26:44 -0800
From: Joe Perches <joe@...ches.com>
To: Chen Gang <chengang@...ndsoft.com.cn>,
Arnd Bergmann <arnd@...db.de>, trivial@...nel.org
Cc: Linux-Arch <linux-arch@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH trivial] include: asm-generic: Notice about 80 columns
in pgtable-no*.h
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 })
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists