[PATCH] drm/gma500: remove unused ioctl declarations

2016-11-01 Thread Jiang Biao
psb_gem_create_ioctl and psb_gem_mmap_ioctl are not used currently,
their declarations are useless.

Signed-off-by: Jiang Biao 
---
 drivers/gpu/drm/gma500/psb_drv.h | 4 
 1 file changed, 4 deletions(-)

diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h
index b743727..05d7aaf 100644
--- a/drivers/gpu/drm/gma500/psb_drv.h
+++ b/drivers/gpu/drm/gma500/psb_drv.h
@@ -753,10 +753,6 @@ extern int psb_gem_dumb_create(struct drm_file *file, 
struct drm_device *dev,
 extern int psb_gem_dumb_map_gtt(struct drm_file *file, struct drm_device *dev,
uint32_t handle, uint64_t *offset);
 extern int psb_gem_fault(struct vm_area_struct *vma, struct vm_fault *vmf);
-extern int psb_gem_create_ioctl(struct drm_device *dev, void *data,
-   struct drm_file *file);
-extern int psb_gem_mmap_ioctl(struct drm_device *dev, void *data,
-   struct drm_file *file);

 /* psb_device.c */
 extern const struct psb_ops psb_chip_ops;
-- 
2.1.0



[PATCH] drm/gma500: make function static to eliminate compiling warning

2016-11-01 Thread Jiang Biao
psb_gtt_remove is only used in this file, and make it static to 
eliminate missing-prototypes compiling warning.

Signed-off-by: Jiang Biao 
---
 drivers/gpu/drm/gma500/gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index 8f69225..e505f94 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -130,7 +130,7 @@ static int psb_gtt_insert(struct drm_device *dev, struct 
gtt_range *r,
  * page table entries with the dummy page. This is protected via the gtt
  * mutex which the caller must hold.
  */
-void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
+static void psb_gtt_remove(struct drm_device *dev, struct gtt_range *r)
 {
struct drm_psb_private *dev_priv = dev->dev_private;
u32 __iomem *gtt_slot;
-- 
2.1.0



[PATCH] drm/gma500: add comments for new parameters

2016-10-12 Thread Jiang Biao
Added comments for new parameters.

Signed-off-by: Jiang Biao 
---
 drivers/gpu/drm/gma500/gtt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index 8f69225..76aea2e 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -76,6 +76,7 @@ static u32 __iomem *psb_gtt_entry(struct drm_device *dev, 
struct gtt_range *r)
  * psb_gtt_insert  -   put an object into the GTT
  * @dev: our DRM device
  * @r: our GTT range
+ * @resume: on resume
  *
  * Take our preallocated GTT range and insert the GEM object into
  * the GTT. This is protected via the gtt mutex which the caller
@@ -321,6 +322,7 @@ out:
  * @len: length (bytes) of address space required
  * @name: resource name
  * @backed: resource should be backed by stolen pages
+ * @align: requested alignment
  *
  * Ask the kernel core to find us a suitable range of addresses
  * to use for a GTT mapping.
-- 
2.1.0



[PATCH] drm/gma500: remove useless comment

2016-10-11 Thread Jiang Biao
Remove useless comment in framebuffer.c.

Signed-off-by: Jiang Biao 
---
 drivers/gpu/drm/gma500/framebuffer.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/gma500/framebuffer.c 
b/drivers/gpu/drm/gma500/framebuffer.c
index 0fcdce0..3c8aa55 100644
--- a/drivers/gpu/drm/gma500/framebuffer.c
+++ b/drivers/gpu/drm/gma500/framebuffer.c
@@ -299,7 +299,6 @@ static struct drm_framebuffer *psb_framebuffer_create
  * psbfb_alloc -   allocate frame buffer memory
  * @dev: the DRM device
  * @aligned_size: space needed
- * @force: fall back to GEM buffers if need be
  *
  * Allocate the frame buffer. In the usual case we get a GTT range that
  * is stolen memory backed and life is simple. If there isn't sufficient
-- 
2.1.0