Messages in this thread | | | Date | Tue, 7 Jul 2020 02:14:38 +0800 | From | kernel test robot <> | Subject | drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:2: note: in expansion of macro 'if' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 5c82ec00dd00c7a2b02d4b42cf59ae87592cb75f commit: d40605b6d088b20827e442903022c65f0f165c84 drm/amd/display: Implement generic MUX registers (v2) date: 12 months ago config: microblaze-randconfig-r022-20200706 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout d40605b6d088b20827e442903022c65f0f165c84 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=microblaze
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:5, from ./arch/microblaze/include/generated/asm/bug.h:1, from include/linux/bug.h:5, from include/linux/mmdebug.h:5, from include/linux/gfp.h:5, from include/linux/slab.h:15, from drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:26: drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c: In function 'dal_hw_generic_create': drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] 121 | if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) { | ^ include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ >> drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:2: note: in expansion of macro 'if' 121 | if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) { | ^~ drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] 121 | if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) { | ^ include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var' 58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond)) | ^~~~ >> drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:2: note: in expansion of macro 'if' 121 | if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) { | ^~ drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] 121 | if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) { | ^ include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value' 69 | (cond) ? \ | ^~~~ include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var' 56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) ) | ^~~~~~~~~~~~~~ >> drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:2: note: in expansion of macro 'if' 121 | if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) { | ^~ In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_types.h:29, from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services_types.h:30, from drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:37, from drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:28: At top level: drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:76:32: warning: 'dc_fixpt_ln2_div_2' defined but not used [-Wunused-const-variable=] 76 | static const struct fixed31_32 dc_fixpt_ln2_div_2 = { 1488522236LL }; | ^~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:75:32: warning: 'dc_fixpt_ln2' defined but not used [-Wunused-const-variable=] 75 | static const struct fixed31_32 dc_fixpt_ln2 = { 2977044471LL }; | ^~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:74:32: warning: 'dc_fixpt_e' defined but not used [-Wunused-const-variable=] 74 | static const struct fixed31_32 dc_fixpt_e = { 11674931555LL }; | ^~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:73:32: warning: 'dc_fixpt_two_pi' defined but not used [-Wunused-const-variable=] 73 | static const struct fixed31_32 dc_fixpt_two_pi = { 26986075409LL }; | ^~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:72:32: warning: 'dc_fixpt_pi' defined but not used [-Wunused-const-variable=] 72 | static const struct fixed31_32 dc_fixpt_pi = { 13493037705LL }; | ^~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/include/fixed31_32.h:67:32: warning: 'dc_fixpt_zero' defined but not used [-Wunused-const-variable=] 67 | static const struct fixed31_32 dc_fixpt_zero = { 0 }; | ^~~~~~~~~~~~~
vim +/if +121 drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c
108 109 struct hw_gpio_pin *dal_hw_generic_create( 110 struct dc_context *ctx, 111 enum gpio_id id, 112 uint32_t en) 113 { 114 struct hw_generic *generic; 115 116 if (id != GPIO_ID_GENERIC) { 117 ASSERT_CRITICAL(false); 118 return NULL; 119 } 120 > 121 if ((en < GPIO_GENERIC_MIN) || (en > GPIO_GENERIC_MAX)) {
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |