Commit f645d22
drm/i915/gvt: remove unused variable gma_bottom in command parser
Remove unused variable gma_bottom in scan_workload() and scan_wa_ctx().
commit be1da70 ("drm/i915/gvt: vGPU command scanner") introduces
gma_bottom in several functions to calculate the size of the command
buffer. However, some of them are set but actually unused.
When compiling the code with ccflags -Wunused-but-set-variable, gcc
throws warnings.
Remove unused variables to avoid the gcc warnings. Tested via compiling
the code with ccflags -Wunused-but-set-variable.
Fixes: be1da70 ("drm/i915/gvt: vGPU command scanner")
Suggested-by: Jani Nikula <jani.nikula@intel.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: intel-gvt-dev@lists.freedesktop.org
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230531020411.18987-1-zhi.a.wang@intel.com1 parent 5e0bff2 commit f645d22
1 file changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2833 | 2833 | | |
2834 | 2834 | | |
2835 | 2835 | | |
2836 | | - | |
| 2836 | + | |
2837 | 2837 | | |
2838 | 2838 | | |
2839 | 2839 | | |
| |||
2843 | 2843 | | |
2844 | 2844 | | |
2845 | 2845 | | |
2846 | | - | |
2847 | 2846 | | |
2848 | 2847 | | |
2849 | 2848 | | |
| |||
2874 | 2873 | | |
2875 | 2874 | | |
2876 | 2875 | | |
2877 | | - | |
| 2876 | + | |
2878 | 2877 | | |
2879 | 2878 | | |
2880 | 2879 | | |
| |||
2891 | 2890 | | |
2892 | 2891 | | |
2893 | 2892 | | |
2894 | | - | |
2895 | 2893 | | |
2896 | 2894 | | |
2897 | 2895 | | |
| |||
0 commit comments