tree:
https://github.com/0day-ci/linux/commits/UPDATE-20200514-234943/Stanislav...
head: 299fe22b95c5eec191b4fadb8c149ae6c5262f6c
commit: 605fbe4b20bd78e247088acbe3b2d3a63f3960cd [6/7] drm/i915: Adjust CDCLK accordingly
to our DBuf bw needs
config: i386-randconfig-a013-20200515 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 605fbe4b20bd78e247088acbe3b2d3a63f3960cd
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
drivers/gpu/drm/i915/display/intel_display.c: In function
'intel_atomic_check_planes':
drivers/gpu/drm/i915/display/intel_display.c:14695:2: error: 'new_cdclk_state'
undeclared (first use in this function); did you mean 'intel_cdclk_state'?
new_cdclk_state = intel_atomic_get_new_cdclk_state(state);
^~~~~~~~~~~~~~~
intel_cdclk_state
drivers/gpu/drm/i915/display/intel_display.c:14695:2: note: each undeclared identifier is
reported only once for each function it appears in
drivers/gpu/drm/i915/display/intel_display.c:14698:4: error: 'need_cdclk_calc'
undeclared (first use in this function); did you mean 'intel_cdclk_vals'?
*need_cdclk_calc = true;
^~~~~~~~~~~~~~~
intel_cdclk_vals
In file included from include/linux/list.h:9:0,
from include/linux/kobject.h:19,
from include/linux/of.h:17,
from include/linux/irqdomain.h:35,
from include/linux/acpi.h:13,
from include/linux/i2c.h:13,
from drivers/gpu/drm/i915/display/intel_display.c:27:
include/linux/kernel.h:866:2: error: first argument to '__builtin_choose_expr' not
a constant
__builtin_choose_expr(__safe_cmp(x, y), ^
include/linux/kernel.h:882:19: note: in expansion of macro '__careful_cmp'
#define max(x, y) __careful_cmp(x, y, >)
^~~~~~~~~~~~~
drivers/gpu/drm/i915/display/intel_display.c:14711:15: note: in expansion of macro
'max'
min_cdclk = max(new_cdclk_state->min_cdclk[crtc->pipe], min_cdclk);
^~~
drivers/gpu/drm/i915/display/intel_display.c: In function
'intel_atomic_check_cdclk':
> drivers/gpu/drm/i915/display/intel_display.c:14736:21: error:
unused variable 'crtc' [-Werror=unused-variable]
struct intel_crtc *crtc;
^~~~
> drivers/gpu/drm/i915/display/intel_display.c:14735:27: error:
unused variable 'new_crtc_state' [-Werror=unused-variable]
struct
intel_crtc_state *new_crtc_state;
^~~~~~~~~~~~~~
> drivers/gpu/drm/i915/display/intel_display.c:14734:28: error:
unused variable 'new_cdclk_state' [-Werror=unused-variable]
struct
intel_cdclk_state *new_cdclk_state;
^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
vim +/crtc +14736 drivers/gpu/drm/i915/display/intel_display.c
14726
14727 static int intel_atomic_check_cdclk(struct intel_atomic_state *state,
14728 bool *need_cdclk_calc)
14729 {
14730 int i;
14731 struct intel_plane_state *plane_state;
14732 struct intel_plane *plane;
14733 int ret;
14734 struct intel_cdclk_state *new_cdclk_state;
14735 struct intel_crtc_state *new_crtc_state;
14736 struct intel_crtc *crtc;
14737 /*
14738 * active_planes bitmask has been updated, and potentially
14739 * affected planes are part of the state. We can now
14740 * compute the minimum cdclk for each plane.
14741 */
14742 for_each_new_intel_plane_in_state(state, plane, plane_state, i) {
14743 ret = intel_plane_calc_min_cdclk(state, plane, need_cdclk_calc);
14744 if (ret)
14745 return ret;
14746 }
14747
14748 return 0;
14749 }
14750
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org