[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170810.150458.937727046893542981.davem@davemloft.net>
Date: Thu, 10 Aug 2017 15:04:58 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: zi.yan@...t.com
Cc: sam@...nborg.org, linux-kernel@...r.kernel.org,
sparclinux@...r.kernel.org, zi.yan@...rutgers.edu
Subject: Re: [PATCH] mm: add pmd_t initializer __pmd() to work around a GCC
bug.
From: Zi Yan <zi.yan@...t.com>
Date: Thu, 3 Aug 2017 09:17:21 -0400
> From: Zi Yan <zi.yan@...rutgers.edu>
>
> THP migration is added but only supports x86_64 at the moment. For all
> other architectures, swp_entry_to_pmd() only returns a zero pmd_t.
>
> Due to a GCC zero initializer bug #53119, the standard (pmd_t){0}
> initializer is not accepted by all GCC versions. __pmd() is a feasible
> workaround. In addition, sparc32's pmd_t is an array instead of a single
> value, so we need (pmd_t){ {0}, } instead of (pmd_t){0}. Thus,
> a different __pmd() definition is needed in sparc32.
>
> Signed-off-by: Zi Yan <zi.yan@...rutgers.edu>
Applied.
Powered by blists - more mailing lists