Hi Emil,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on tegra-drm/drm/tegra/for-next]
[also build test WARNING on linus/master v5.7-rc6 next-20200518]
[cannot apply to linux/master]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    
https://github.com/0day-ci/linux/commits/Emil-Velikov/linux-bits-h-adjust-GENMASK_INPUT_CHECK-check/20200519-205452
base:   git://anongit.freedesktop.org/tegra/linux.git drm/tegra/for-next
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 9.3.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross 
ARCH=mips 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <l...@intel.com>

All warnings (new ones prefixed by >>, old ones prefixed by <<):

In file included from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
arch/mips/include/asm/mips-cm.h: In function 'mips_cm_max_vp_width':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:152:28: note: in expansion of macro 'GENMASK'
152 | #define CM_GCR_REV_MAJOR   GENMASK(15, 8)
|                            ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:156:22: note: in expansion of macro 
>> 'CM_GCR_REV_MAJOR'
156 |   (((major) << __ffs(CM_GCR_REV_MAJOR)) |          |                      
^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:161:23: note: in expansion of macro 
>> 'CM_ENCODE_REV'
161 | #define CM_REV_CM3    CM_ENCODE_REV(8, 0)
|                       ^~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:367:28: note: in expansion of macro 
>> 'CM_REV_CM3'
367 |  if (mips_cm_revision() >= CM_REV_CM3)
|                            ^~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:153:28: note: in expansion of macro 'GENMASK'
153 | #define CM_GCR_REV_MINOR   GENMASK(7, 0)
|                            ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:157:22: note: in expansion of macro 
>> 'CM_GCR_REV_MINOR'
157 |    ((minor) << __ffs(CM_GCR_REV_MINOR)))
|                      ^~~~~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:161:23: note: in expansion of macro 
>> 'CM_ENCODE_REV'
161 | #define CM_REV_CM3    CM_ENCODE_REV(8, 0)
|                       ^~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:367:28: note: in expansion of macro 
>> 'CM_REV_CM3'
367 |  if (mips_cm_revision() >= CM_REV_CM3)
|                            ^~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:239:36: note: in expansion of macro 'GENMASK'
239 | #define CM_GCR_SYS_CONFIG2_MAXVPW  GENMASK(3, 0)
|                                    ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:368:35: note: in expansion of macro 
>> 'CM_GCR_SYS_CONFIG2_MAXVPW'
368 |   return read_gcr_sys_config2() & CM_GCR_SYS_CONFIG2_MAXVPW;
|                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:293:33: note: in expansion of macro 'GENMASK'
293 | #define CM_GCR_Cx_CONFIG_PVPE   GENMASK(9, 0)
|                                 ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:376:32: note: in expansion of macro 
>> 'CM_GCR_Cx_CONFIG_PVPE'
376 |   cfg = read_gcr_cl_config() & CM_GCR_Cx_CONFIG_PVPE;
|                                ^~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:293:33: note: in expansion of macro 'GENMASK'
293 | #define CM_GCR_Cx_CONFIG_PVPE   GENMASK(9, 0)
|                                 ^~~~~~~
arch/mips/include/asm/mips-cm.h:377:24: note: in expansion of macro 
'CM_GCR_Cx_CONFIG_PVPE'
377 |   return (cfg >> __ffs(CM_GCR_Cx_CONFIG_PVPE)) + 1;
|                        ^~~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h: In function 'mips_cps_numclusters':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:152:28: note: in expansion of macro 'GENMASK'
152 | #define CM_GCR_REV_MAJOR   GENMASK(15, 8)
|                            ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:156:22: note: in expansion of macro 
>> 'CM_GCR_REV_MAJOR'
156 |   (((major) << __ffs(CM_GCR_REV_MAJOR)) |          |                      
^~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:162:25: note: in expansion of macro 
'CM_ENCODE_REV'
162 | #define CM_REV_CM3_5    CM_ENCODE_REV(9, 0)
|                         ^~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cps.h:117:27: note: in expansion of macro 
>> 'CM_REV_CM3_5'
117 |  if (mips_cm_revision() < CM_REV_CM3_5)
|                           ^~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:153:28: note: in expansion of macro 'GENMASK'
153 | #define CM_GCR_REV_MINOR   GENMASK(7, 0)
|                            ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:157:22: note: in expansion of macro 
>> 'CM_GCR_REV_MINOR'
157 |    ((minor) << __ffs(CM_GCR_REV_MINOR)))
|                      ^~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:162:25: note: in expansion of macro 
'CM_ENCODE_REV'
162 | #define CM_REV_CM3_5    CM_ENCODE_REV(9, 0)
|                         ^~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cps.h:117:27: note: in expansion of macro 
>> 'CM_REV_CM3_5'
117 |  if (mips_cm_revision() < CM_REV_CM3_5)
|                           ^~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:133:37: note: in expansion of macro 'GENMASK'
133 | #define CM_GCR_CONFIG_NUM_CLUSTERS  GENMASK(29, 23)
|                                     ^~~~~~~
>> arch/mips/include/asm/mips-cps.h:120:37: note: in expansion of macro 
>> 'CM_GCR_CONFIG_NUM_CLUSTERS'
120 |  num_clusters = read_gcr_config() & CM_GCR_CONFIG_NUM_CLUSTERS;
|                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:133:37: note: in expansion of macro 'GENMASK'
133 | #define CM_GCR_CONFIG_NUM_CLUSTERS  GENMASK(29, 23)
|                                     ^~~~~~~
arch/mips/include/asm/mips-cps.h:121:25: note: in expansion of macro 
'CM_GCR_CONFIG_NUM_CLUSTERS'
121 |  num_clusters >>= __ffs(CM_GCR_CONFIG_NUM_CLUSTERS);
|                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h: In function 'mips_cps_cluster_config':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
>> arch/mips/include/asm/mips-cm.h:152:28: note: in expansion of macro 'GENMASK'
152 | #define CM_GCR_REV_MAJOR   GENMASK(15, 8)
|                            ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:156:22: note: in expansion of macro 
>> 'CM_GCR_REV_MAJOR'
156 |   (((major) << __ffs(CM_GCR_REV_MAJOR)) |          |                      
^~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:162:25: note: in expansion of macro 
'CM_ENCODE_REV'
162 | #define CM_REV_CM3_5    CM_ENCODE_REV(9, 0)
|                         ^~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h:137:27: note: in expansion of macro 
'CM_REV_CM3_5'
137 |  if (mips_cm_revision() < CM_REV_CM3_5) {
|                           ^~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:153:28: note: in expansion of macro 'GENMASK'
153 | #define CM_GCR_REV_MINOR   GENMASK(7, 0)
|                            ^~~~~~~
>> arch/mips/include/asm/mips-cm.h:157:22: note: in expansion of macro 
>> 'CM_GCR_REV_MINOR'
157 |    ((minor) << __ffs(CM_GCR_REV_MINOR)))
|                      ^~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:162:25: note: in expansion of macro 
'CM_ENCODE_REV'
162 | #define CM_REV_CM3_5    CM_ENCODE_REV(9, 0)
|                         ^~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h:137:27: note: in expansion of macro 
'CM_REV_CM3_5'
137 |  if (mips_cm_revision() < CM_REV_CM3_5) {
|                           ^~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h: In function 'mips_cps_numcores':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:135:32: note: in expansion of macro 'GENMASK'
135 | #define CM_GCR_CONFIG_PCORES   GENMASK(7, 0)
|                                ^~~~~~~
>> arch/mips/include/asm/mips-cps.h:172:50: note: in expansion of macro 
>> 'CM_GCR_CONFIG_PCORES'
172 |  return (mips_cps_cluster_config(cluster) + 1) & CM_GCR_CONFIG_PCORES;
|                                                  ^~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h: In function 'mips_cps_numiocu':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:134:33: note: in expansion of macro 'GENMASK'
134 | #define CM_GCR_CONFIG_NUMIOCU   GENMASK(15, 8)
|                                 ^~~~~~~
>> arch/mips/include/asm/mips-cps.h:189:48: note: in expansion of macro 
>> 'CM_GCR_CONFIG_NUMIOCU'
189 |  num_iocu = mips_cps_cluster_config(cluster) & CM_GCR_CONFIG_NUMIOCU;
|                                                ^~~~~~~~~~~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:134:33: note: in expansion of macro 'GENMASK'
134 | #define CM_GCR_CONFIG_NUMIOCU   GENMASK(15, 8)
|                                 ^~~~~~~
arch/mips/include/asm/mips-cps.h:190:21: note: in expansion of macro 
'CM_GCR_CONFIG_NUMIOCU'
190 |  num_iocu >>= __ffs(CM_GCR_CONFIG_NUMIOCU);
|                     ^~~~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h: In function 'mips_cps_numvps':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:152:28: note: in expansion of macro 'GENMASK'
152 | #define CM_GCR_REV_MAJOR   GENMASK(15, 8)
|                            ^~~~~~~
arch/mips/include/asm/mips-cm.h:156:22: note: in expansion of macro 
'CM_GCR_REV_MAJOR'
156 |   (((major) << __ffs(CM_GCR_REV_MAJOR)) |          |                      
^~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:162:25: note: in expansion of macro 
'CM_ENCODE_REV'
162 | #define CM_REV_CM3_5    CM_ENCODE_REV(9, 0)
|                         ^~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h:216:27: note: in expansion of macro 
'CM_REV_CM3_5'
216 |  if (mips_cm_revision() < CM_REV_CM3_5) {
|                           ^~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:153:28: note: in expansion of macro 'GENMASK'
153 | #define CM_GCR_REV_MINOR   GENMASK(7, 0)
|                            ^~~~~~~
arch/mips/include/asm/mips-cm.h:157:22: note: in expansion of macro 
'CM_GCR_REV_MINOR'
157 |    ((minor) << __ffs(CM_GCR_REV_MINOR)))
|                      ^~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:162:25: note: in expansion of macro 
'CM_ENCODE_REV'
162 | #define CM_REV_CM3_5    CM_ENCODE_REV(9, 0)
|                         ^~~~~~~~~~~~~
arch/mips/include/asm/mips-cps.h:216:27: note: in expansion of macro 
'CM_REV_CM3_5'
216 |  if (mips_cm_revision() < CM_REV_CM3_5) {
|                           ^~~~~~~~~~~~
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
arch/mips/include/asm/mips-cm.h:293:33: note: in expansion of macro 'GENMASK'
293 | #define CM_GCR_Cx_CONFIG_PVPE   GENMASK(9, 0)
|                                 ^~~~~~~
arch/mips/include/asm/mips-cps.h:233:21: note: in expansion of macro 
'CM_GCR_Cx_CONFIG_PVPE'
233 |  return (cfg + 1) & CM_GCR_Cx_CONFIG_PVPE;
|                     ^~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/kernel.h:12,
from include/linux/list.h:9,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/compat.h:10,
from arch/mips/kernel/asm-offsets.c:12:
include/linux/kvm_host.h: In function 'kvm_make_request':
include/linux/build_bug.h:16:51: error: negative width in bit-field 
'<anonymous>'
16 | #define BUILD_BUG_ON_ZERO(e) ((int)(sizeof(struct { int:(-!!(e)); })))
|                                                   ^
include/linux/bits.h:25:3: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
25 |  (BUILD_BUG_ON_ZERO(!__builtin_choose_expr(          |   ^~~~~~~~~~~~~~~~~
include/linux/bits.h:39:3: note: in expansion of macro 'GENMASK_INPUT_CHECK'
39 |  (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l))
|   ^~~~~~~~~~~~~~~~~~~
include/linux/kvm_host.h:138:36: note: in expansion of macro 'GENMASK'
138 | #define KVM_REQUEST_MASK           GENMASK(7,0)
|                                    ^~~~~~~
include/linux/kvm_host.h:1231:16: note: in expansion of macro 'KVM_REQUEST_MASK'
1231 |  set_bit(req & KVM_REQUEST_MASK, (void *)&vcpu->requests);

vim +/GENMASK +152 arch/mips/include/asm/mips-cm.h

93c5bba575cedbe Paul Burton 2017-08-12  149  
93c5bba575cedbe Paul Burton 2017-08-12  150  /* GCR_REV - Indicates the 
Coherence Manager revision */
b025d51873d5fe6 Paul Burton 2017-08-12  151  GCR_ACCESSOR_RO(32, 0x030, rev)
93c5bba575cedbe Paul Burton 2017-08-12 @152  #define CM_GCR_REV_MAJOR           
        GENMASK(15, 8)
93c5bba575cedbe Paul Burton 2017-08-12  153  #define CM_GCR_REV_MINOR           
        GENMASK(7, 0)
93c5bba575cedbe Paul Burton 2017-08-12  154  
93c5bba575cedbe Paul Burton 2017-08-12  155  #define CM_ENCODE_REV(major, 
minor) \
93c5bba575cedbe Paul Burton 2017-08-12 @156             (((major) << 
__ffs(CM_GCR_REV_MAJOR)) | \
93c5bba575cedbe Paul Burton 2017-08-12 @157              ((minor) << 
__ffs(CM_GCR_REV_MINOR)))
93c5bba575cedbe Paul Burton 2017-08-12  158  
93c5bba575cedbe Paul Burton 2017-08-12  159  #define CM_REV_CM2                 
        CM_ENCODE_REV(6, 0)
93c5bba575cedbe Paul Burton 2017-08-12  160  #define CM_REV_CM2_5               
                CM_ENCODE_REV(7, 0)
93c5bba575cedbe Paul Burton 2017-08-12 @161  #define CM_REV_CM3                 
        CM_ENCODE_REV(8, 0)
23cb600e3fd4068 Paul Burton 2017-08-12  162  #define CM_REV_CM3_5               
                CM_ENCODE_REV(9, 0)
93c5bba575cedbe Paul Burton 2017-08-12  163  

:::::: The code at line 152 was first introduced by commit
:::::: 93c5bba575cedbeb50c9e1b0676230139b0d1be1 MIPS: CM: Use BIT/GENMASK for 
register fields, order & drop shifts

:::::: TO: Paul Burton <paul.bur...@imgtec.com>
:::::: CC: Ralf Baechle <r...@linux-mips.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to