linux/drivers/gpu/drm/via
Arjan van de Ven e08e96de98 drm: Make the per-driver file_operations struct const
From fdf1fdebaa00f81de18c227f32f8074c8b352d50 Mon Sep 17 00:00:00 2001
From: Arjan van de Ven <arjan@linux.intel.com>
Date: Sun, 30 Oct 2011 19:06:07 -0700
Subject: [PATCH] drm: Make the per-driver file_operations struct const

The DRM layer keeps a copy of struct file_operations inside its
big driver struct... which prevents it from being consistent and static.
For consistency (and the general security objective of having such things
static), it's desirable to get this fixed.

This patch splits out the file_operations field to its own struct,
which is then "static const", and just stick a pointer to this into
the driver struct, making it more consistent with how the rest of the
kernel does this.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-11-11 11:14:47 +00:00
..
Makefile
via_3d_reg.h
via_dma.c drm: block userspace under allocating buffer and having drivers overwrite it (v2) 2010-08-17 14:52:25 +10:00
via_dmablit.c drivers/gpu: Use vzalloc 2010-11-09 13:41:35 +10:00
via_dmablit.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_drv.c drm: Make the per-driver file_operations struct const 2011-11-11 11:14:47 +00:00
via_drv.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_irq.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_map.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_mm.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_verifier.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_verifier.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_video.c drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00