From: kernel test robot <lkp@intel.com>
To: Murton Liu <murton.liu@amd.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Alex Deucher <alexander.deucher@amd.com>,
Aric Cyr <Aric.Cyr@amd.com>
Subject: drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/hw_generic.c:121:2: note: in expansion of macro 'if'
Date: Tue, 7 Jul 2020 02:14:38 +0800 [thread overview]
Message-ID: <202007070236.fjY6TyJF%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6102 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 24170 bytes --]
reply other threads:[~2020-07-06 18:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202007070236.fjY6TyJF%lkp@intel.com \
--to=lkp@intel.com \
--cc=Aric.Cyr@amd.com \
--cc=alexander.deucher@amd.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=murton.liu@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®