From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH 07/20] drm: replace weird conditional includes Date: Fri, 29 Aug 2014 13:45:32 +0200 Message-ID: <20140829114528.GG17519@ulmo> References: <1409307166-12396-1-git-send-email-dh.herrmann@gmail.com> <1409307166-12396-8-git-send-email-dh.herrmann@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1948813136==" Return-path: Received: from mail-we0-f174.google.com (mail-we0-f174.google.com [74.125.82.174]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E6B26E6BC for ; Fri, 29 Aug 2014 04:45:35 -0700 (PDT) Received: by mail-we0-f174.google.com with SMTP id u57so2053685wes.19 for ; Fri, 29 Aug 2014 04:45:34 -0700 (PDT) In-Reply-To: <1409307166-12396-8-git-send-email-dh.herrmann@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: David Herrmann Cc: Daniel Vetter , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1948813136== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2NLGdgz3UMHa/lqP" Content-Disposition: inline --2NLGdgz3UMHa/lqP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 29, 2014 at 12:12:33PM +0200, David Herrmann wrote: > pte_wrprotect() is only used by drm_vm.c, so move the include there. Also > include it unconditionally, all architectures provide this header! >=20 > Furthermore, replace asm/current.h with sched.h, which includes > asm/current.h unconditionally. This way we get the same effect and avoid > direct asm/ includes. Furthermore, drop the weird __alpha__ protection. > It's safe to include sched.h everywhere (and the wait.h comment doesn't > apply, anyway). >=20 > Signed-off-by: David Herrmann > --- > drivers/gpu/drm/drm_vm.c | 1 + > include/drm/drmP.h | 10 +--------- > 2 files changed, 2 insertions(+), 9 deletions(-) Reviewed-by: Thierry Reding --2NLGdgz3UMHa/lqP Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJUAGfYAAoJEN0jrNd/PrOhb/sP/0+T8NiMl2nqFm9bFrq2kLMI YAYEl9DQtto2TpwDB7J1q/A1y2yBn80aioxTuHr2s7zJGt3wzxhBuY6uAPsjh+Hv uP6/k+driLRN/Eb6yRBh+QfVmUlpbiE63tyUKMgmkTThmtmZbtClAe4xSdElT9lt mjdoZtbBi0QnijPr8no9rCQoR08sSy5DL6VpQY/ZuDGJ3j8/ciY1R0uYW83zfePU 9Rp9yjt2iBAUmPWSn8KG1skpIhr5djy6sDucDPc1NM70Wc2hk6R/RubSKUsB3v06 hdwTKYv7v707yK4sRKQv9oRpMiOrIfn6WY0/emyJR+N5czkimRRhVjSRrO4nLOce cCvuIZjueuxIMZ7nUiFcY2nzNg1iDmUZKNr0mzCZr5+Vqx/Rp00SPwm2siVeZW7q EiWXGjebLPITuWFc0IqfXdPTx6va4OJgC9R8CAg8vLGsO341vRiKV4/yp+PFIEpu VeRBwmCtfPN0SSC3SScoouw4j4tdCReMMmx/aA+E4vobPp944HmH1Wv9XPl5HoOY HYAu5QKwsLV0Uj/sKPmt+kIeMi/xC056pv9faQ+r2QeI5ozY6lO/lnXEfG3gMg4G Jalz8WHdkZUi1Zj7QAg5S6TVvkBRIu/e/e/PTtRBt5P/4ZSokmJ0AiLjNNduey1J AVB2xkm1ZN6Ds4Q+zdd7 =JH82 -----END PGP SIGNATURE----- --2NLGdgz3UMHa/lqP-- --===============1948813136== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1948813136==--