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

drm: Don't export the drm_gem_dumb_destroy() function

The drm_gem_dumb_destroy() isn't used in drivers, don't export it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>

+9 -17
+5 -3
drivers/gpu/drm/drm_dumb_buffers.c
··· 29 29 #include <drm/drm_mode.h> 30 30 31 31 #include "drm_crtc_internal.h" 32 + #include "drm_internal.h" 32 33 33 34 /** 34 35 * DOC: overview ··· 47 46 * KMS frame buffers. 48 47 * 49 48 * To support dumb objects drivers must implement the &drm_driver.dumb_create 50 - * operation. &drm_driver.dumb_destroy defaults to drm_gem_dumb_destroy() if 51 - * not set and &drm_driver.dumb_map_offset defaults to 52 - * drm_gem_dumb_map_offset(). See the callbacks for further details. 49 + * and &drm_driver.dumb_map_offset operations (the latter defaults to 50 + * drm_gem_dumb_map_offset() if not set). Drivers that don't use GEM handles 51 + * additionally need to implement the &drm_driver.dumb_destroy operation. See 52 + * the callbacks for further details. 53 53 * 54 54 * Note that dumb objects may not be used for gpu acceleration, as has been 55 55 * attempted on some ARM embedded platforms. Such drivers really must have
+1 -11
drivers/gpu/drm/drm_gem.c
··· 335 335 } 336 336 EXPORT_SYMBOL_GPL(drm_gem_dumb_map_offset); 337 337 338 - /** 339 - * drm_gem_dumb_destroy - dumb fb callback helper for gem based drivers 340 - * @file: drm file-private structure to remove the dumb handle from 341 - * @dev: corresponding drm_device 342 - * @handle: the dumb handle to remove 343 - * 344 - * This implements the &drm_driver.dumb_destroy kms driver callback for drivers 345 - * which use gem to manage their backing storage. 346 - */ 347 338 int drm_gem_dumb_destroy(struct drm_file *file, 348 339 struct drm_device *dev, 349 - uint32_t handle) 340 + u32 handle) 350 341 { 351 342 return drm_gem_handle_delete(file, handle); 352 343 } 353 - EXPORT_SYMBOL(drm_gem_dumb_destroy); 354 344 355 345 /** 356 346 * drm_gem_handle_create_tail - internal functions to create a handle
+3
drivers/gpu/drm/drm_internal.h
··· 191 191 int drm_gem_vmap(struct drm_gem_object *obj, struct dma_buf_map *map); 192 192 void drm_gem_vunmap(struct drm_gem_object *obj, struct dma_buf_map *map); 193 193 194 + int drm_gem_dumb_destroy(struct drm_file *file, struct drm_device *dev, 195 + u32 handle); 196 + 194 197 /* drm_debugfs.c drm_debugfs_crc.c */ 195 198 #if defined(CONFIG_DEBUG_FS) 196 199 int drm_debugfs_init(struct drm_minor *minor, int minor_id,
-3
include/drm/drm_gem.h
··· 416 416 bool write); 417 417 int drm_gem_dumb_map_offset(struct drm_file *file, struct drm_device *dev, 418 418 u32 handle, u64 *offset); 419 - int drm_gem_dumb_destroy(struct drm_file *file, 420 - struct drm_device *dev, 421 - uint32_t handle); 422 419 423 420 #endif /* __DRM_GEM_H__ */