Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/savage: drop use of drmP.h

Drop use of the deprecated drmP.h header file.
Replace it with the necessary includes of other headers.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Cc: David Airlie <airlied@linux.ie>
Link: https://patchwork.freedesktop.org/patch/msgid/20190605140313.13629-3-sam@ravnborg.org

+24 -6
+7 -1
drivers/gpu/drm/savage/savage_bci.c
··· 24 24 */ 25 25 26 26 #include <linux/delay.h> 27 + #include <linux/pci.h> 28 + #include <linux/slab.h> 29 + #include <linux/uaccess.h> 27 30 28 - #include <drm/drmP.h> 31 + #include <drm/drm_device.h> 32 + #include <drm/drm_file.h> 33 + #include <drm/drm_print.h> 29 34 #include <drm/savage_drm.h> 35 + 30 36 #include "savage_drv.h" 31 37 32 38 /* Need a long timeout for shadow status updates can take a while
+5 -4
drivers/gpu/drm/savage/savage_drv.c
··· 25 25 26 26 #include <linux/module.h> 27 27 28 - #include <drm/drmP.h> 29 - #include <drm/savage_drm.h> 30 - #include "savage_drv.h" 31 - 28 + #include <drm/drm_drv.h> 29 + #include <drm/drm_file.h> 30 + #include <drm/drm_pci.h> 32 31 #include <drm/drm_pciids.h> 32 + 33 + #include "savage_drv.h" 33 34 34 35 static struct pci_device_id pciidlist[] = { 35 36 savage_PCI_IDS
+4
drivers/gpu/drm/savage/savage_drv.h
··· 26 26 #ifndef __SAVAGE_DRV_H__ 27 27 #define __SAVAGE_DRV_H__ 28 28 29 + #include <linux/io.h> 30 + 31 + #include <drm/drm_ioctl.h> 29 32 #include <drm/drm_legacy.h> 33 + #include <drm/savage_drm.h> 30 34 31 35 #define DRIVER_AUTHOR "Felix Kuehling" 32 36
+8 -1
drivers/gpu/drm/savage/savage_state.c
··· 22 22 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 23 23 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 24 */ 25 - #include <drm/drmP.h> 25 + 26 + #include <linux/slab.h> 27 + #include <linux/uaccess.h> 28 + 29 + #include <drm/drm_device.h> 30 + #include <drm/drm_file.h> 31 + #include <drm/drm_print.h> 26 32 #include <drm/savage_drm.h> 33 + 27 34 #include "savage_drv.h" 28 35 29 36 void savage_emit_clip_rect_s3d(drm_savage_private_t * dev_priv,