diff options
author | Dave Airlie <airlied@redhat.com> | 2013-04-16 05:24:25 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-04-16 05:33:36 +0200 |
commit | 6d01f1f54c01877baad11389291c1aeab9c11e0f (patch) | |
tree | 39a0c5375c2197f7566382913739be2a867c30c7 /drivers/gpu/drm/qxl/qxl_display.c | |
parent | Merge tag 'omapdss-for-3.10' of git://gitorious.org/linux-omap-dss2/linux int... (diff) | |
download | linux-6d01f1f54c01877baad11389291c1aeab9c11e0f.tar.xz linux-6d01f1f54c01877baad11389291c1aeab9c11e0f.zip |
drm/qxl: make lots of things static.
/usr/lib/gcc/x86_64-linux-gnu/4.7/include/stddef.h:414:9: sparse: preprocessor token offsetof redefined
include/linux/stddef.h:17:9: this was the original definition
>> drivers/gpu/drm/qxl/qxl_drv.c:49:5: sparse: symbol 'qxl_modeset' was not declared. Should it be static?
Reported-by: kbuild test robot.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_display.c')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_display.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_display.c b/drivers/gpu/drm/qxl/qxl_display.c index c80ddfedbbab..567a5328cfc4 100644 --- a/drivers/gpu/drm/qxl/qxl_display.c +++ b/drivers/gpu/drm/qxl/qxl_display.c @@ -413,11 +413,11 @@ static void qxl_user_framebuffer_destroy(struct drm_framebuffer *fb) kfree(qxl_fb); } -int qxl_framebuffer_surface_dirty(struct drm_framebuffer *fb, - struct drm_file *file_priv, - unsigned flags, unsigned color, - struct drm_clip_rect *clips, - unsigned num_clips) +static int qxl_framebuffer_surface_dirty(struct drm_framebuffer *fb, + struct drm_file *file_priv, + unsigned flags, unsigned color, + struct drm_clip_rect *clips, + unsigned num_clips) { /* TODO: vmwgfx where this was cribbed from had locking. Why? */ struct qxl_framebuffer *qxl_fb = to_qxl_framebuffer(fb); @@ -619,7 +619,7 @@ static void qxl_crtc_commit(struct drm_crtc *crtc) DRM_DEBUG("\n"); } -void qxl_crtc_load_lut(struct drm_crtc *crtc) +static void qxl_crtc_load_lut(struct drm_crtc *crtc) { DRM_DEBUG("\n"); } @@ -633,7 +633,7 @@ static const struct drm_crtc_helper_funcs qxl_crtc_helper_funcs = { .load_lut = qxl_crtc_load_lut, }; -int qdev_crtc_init(struct drm_device *dev, int num_crtc) +static int qdev_crtc_init(struct drm_device *dev, int num_crtc) { struct qxl_crtc *qxl_crtc; @@ -764,7 +764,7 @@ static int qxl_conn_mode_valid(struct drm_connector *connector, return MODE_OK; } -struct drm_encoder *qxl_best_encoder(struct drm_connector *connector) +static struct drm_encoder *qxl_best_encoder(struct drm_connector *connector) { struct qxl_output *qxl_output = drm_connector_to_qxl_output(connector); @@ -855,7 +855,7 @@ static const struct drm_encoder_funcs qxl_enc_funcs = { .destroy = qxl_enc_destroy, }; -int qdev_output_init(struct drm_device *dev, int num_output) +static int qdev_output_init(struct drm_device *dev, int num_output) { struct qxl_output *qxl_output; struct drm_connector *connector; |