mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: zi.yan@sent.com
Cc: sam@ravnborg.org, linux-kernel@vger.kernel.org,
	sparclinux@vger.kernel.org, zi.yan@cs.rutgers.edu
Subject: Re: [PATCH] mm: add pmd_t initializer __pmd() to work around a GCC bug.
Date: Thu, 10 Aug 2017 15:04:58 -0700 (PDT)	[thread overview]
Message-ID: <20170810.150458.937727046893542981.davem@davemloft.net> (raw)
In-Reply-To: <20170803131721.74011-1-zi.yan@sent.com>

From: Zi Yan <zi.yan@sent.com>
Date: Thu,  3 Aug 2017 09:17:21 -0400

> From: Zi Yan <zi.yan@cs.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@cs.rutgers.edu>

Applied.

      parent reply	other threads:[~2017-08-10 22:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03 13:17 Zi Yan
2017-08-10 14:46 ` Zi Yan
2017-08-10 16:28   ` David Miller
2017-08-10 16:40     ` Zi Yan
2017-08-10 22:04 ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170810.150458.937727046893542981.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=sparclinux@vger.kernel.org \
    --cc=zi.yan@cs.rutgers.edu \
    --cc=zi.yan@sent.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®