Re: [Intel-gfx] [PATCH] drm: fix sparse warnings on undeclared symbols in crc debugfs
On Tue, 18 Oct 2016, Chris Wilsonwrote: > On Tue, Oct 18, 2016 at 02:28:35PM +0300, Jani Nikula wrote: >> Fixes sparse warnings: >> >> drivers/gpu/drm/drm_debugfs_crc.c:118:30: warning: symbol >> 'drm_crtc_crc_control_fops' was not declared. Should it be static? >> >> drivers/gpu/drm/drm_debugfs_crc.c:264:30: warning: symbol >> 'drm_crtc_crc_data_fops' was not declared. Should it be static? >> >> drivers/gpu/drm/drm_debugfs_crc.c:281:5: warning: symbol >> 'drm_debugfs_crtc_crc_add' was not declared. Should it be static? >> >> Fixes: 9edbf1fa600a ("drm: Add API for capturing frame CRCs") >> Cc: Benjamin Gaignard >> Cc: Daniel Vetter >> Cc: Emil Velikov >> Cc: Tomeu Vizoso >> Signed-off-by: Jani Nikula > Reviewed-by: Chris Wilson Pushed to drm-misc, thanks for the review. BR, Jani. -- Jani Nikula, Intel Open Source Technology Center ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [Intel-gfx] [PATCH] drm: fix sparse warnings on undeclared symbols in crc debugfs
On Tue, Oct 18, 2016 at 02:28:35PM +0300, Jani Nikula wrote: > Fixes sparse warnings: > > drivers/gpu/drm/drm_debugfs_crc.c:118:30: warning: symbol > 'drm_crtc_crc_control_fops' was not declared. Should it be static? > > drivers/gpu/drm/drm_debugfs_crc.c:264:30: warning: symbol > 'drm_crtc_crc_data_fops' was not declared. Should it be static? > > drivers/gpu/drm/drm_debugfs_crc.c:281:5: warning: symbol > 'drm_debugfs_crtc_crc_add' was not declared. Should it be static? > > Fixes: 9edbf1fa600a ("drm: Add API for capturing frame CRCs") > Cc: Benjamin Gaignard> Cc: Daniel Vetter > Cc: Emil Velikov > Cc: Tomeu Vizoso > Signed-off-by: Jani Nikula Reviewed-by: Chris Wilson -Chris -- Chris Wilson, Intel Open Source Technology Centre ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx
[Intel-gfx] [PATCH] drm: fix sparse warnings on undeclared symbols in crc debugfs
Fixes sparse warnings: drivers/gpu/drm/drm_debugfs_crc.c:118:30: warning: symbol 'drm_crtc_crc_control_fops' was not declared. Should it be static? drivers/gpu/drm/drm_debugfs_crc.c:264:30: warning: symbol 'drm_crtc_crc_data_fops' was not declared. Should it be static? drivers/gpu/drm/drm_debugfs_crc.c:281:5: warning: symbol 'drm_debugfs_crtc_crc_add' was not declared. Should it be static? Fixes: 9edbf1fa600a ("drm: Add API for capturing frame CRCs") Cc: Benjamin GaignardCc: Daniel Vetter Cc: Emil Velikov Cc: Tomeu Vizoso Signed-off-by: Jani Nikula --- drivers/gpu/drm/drm_debugfs_crc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_debugfs_crc.c b/drivers/gpu/drm/drm_debugfs_crc.c index 4129405d17c0..00e771fb7df2 100644 --- a/drivers/gpu/drm/drm_debugfs_crc.c +++ b/drivers/gpu/drm/drm_debugfs_crc.c @@ -30,6 +30,7 @@ #include #include #include +#include "drm_internal.h" /** * DOC: CRC ABI @@ -115,7 +116,7 @@ static ssize_t crc_control_write(struct file *file, const char __user *ubuf, return len; } -const struct file_operations drm_crtc_crc_control_fops = { +static const struct file_operations drm_crtc_crc_control_fops = { .owner = THIS_MODULE, .open = crc_control_open, .read = seq_read, @@ -261,7 +262,7 @@ static ssize_t crtc_crc_read(struct file *filep, char __user *user_buf, return LINE_LEN(crc->values_cnt); } -const struct file_operations drm_crtc_crc_data_fops = { +static const struct file_operations drm_crtc_crc_data_fops = { .owner = THIS_MODULE, .open = crtc_crc_open, .read = crtc_crc_read, -- 2.1.4 ___ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx