From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Paul Subject: Re: [PATCH v1 11/11] drm: drop uapi dependency from drm_file.h Date: Thu, 18 Jul 2019 14:40:09 -0400 Message-ID: <20190718184009.GB104440@art_vandelay> References: <20190718161507.2047-1-sam@ravnborg.org> <20190718161507.2047-12-sam@ravnborg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20190718161507.2047-12-sam@ravnborg.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Sam Ravnborg Cc: David Airlie , Daniel Vetter , Liviu Dudau , dri-devel@lists.freedesktop.org, Chris Wilson , Eric Anholt , Rob Herring , Stefan Agner , Maxime Ripard , CK Hu , Thierry Reding , Daniel Vetter , Chunming Zhou , Jani Nikula , Intel Graphics Development , Maarten Lankhorst , linux-mediatek@lists.infradead.org, Lionel Landwerlin , Matthias Brugger , Sean Paul , linux-arm-kernel@lists.infradead.org, Boris Brezillon , Thomas Zimmermann List-Id: linux-mediatek@lists.infradead.org On Thu, Jul 18, 2019 at 06:15:07PM +0200, Sam Ravnborg wrote: > drm_file used drm_magic_t from uapi/drm/drm.h. > This is a simple unsigned int. > Just opencode it as such to break the dependency from this header file > to uapi. > > Signed-off-by: Sam Ravnborg Passes my build tests, thanks for the clean-ups! Reviewed-by: Sean Paul > Suggested-by: Daniel Vetter > Cc: Sean Paul > Cc: Liviu Dudau > Cc: Chris Wilson > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc: Jani Nikula > Cc: Eric Anholt > --- > include/drm/drm_file.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/include/drm/drm_file.h b/include/drm/drm_file.h > index 67af60bb527a..046cd1bf91eb 100644 > --- a/include/drm/drm_file.h > +++ b/include/drm/drm_file.h > @@ -34,8 +34,6 @@ > #include > #include > > -#include > - > #include > > struct dma_fence; > @@ -227,7 +225,7 @@ struct drm_file { > struct pid *pid; > > /** @magic: Authentication magic, see @authenticated. */ > - drm_magic_t magic; > + unsigned int magic; > > /** > * @lhead: > -- > 2.20.1 > -- Sean Paul, Software Engineer, Google / Chromium OS