[drm-misc:drm-misc-next 7/10] arch/powerpc/include/asm/page.h:25:33: error: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '65536' to '0'
kernel test robot
lkp at intel.com
Sun May 19 03:37:34 UTC 2024
tree: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
head: 85cb9d603953d77de5cb311d229a79c439ff6bfb
commit: dc6fcaaba5a5411237d042a26c4d46689f3346bb [7/10] drm/omap: Allow build with COMPILE_TEST=y
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20240519/202405191159.VZqjxILr-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240519/202405191159.VZqjxILr-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405191159.VZqjxILr-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/powerpc/include/asm/mmu.h:144,
from arch/powerpc/include/asm/paca.h:18,
from arch/powerpc/include/asm/current.h:13,
from include/linux/sched.h:12,
from include/linux/ratelimit.h:6,
from include/linux/dev_printk.h:16,
from include/linux/device.h:15,
from include/linux/dma-mapping.h:8,
from drivers/gpu/drm/omapdrm/omap_gem.c:7:
drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_pin_tiler':
>> arch/powerpc/include/asm/page.h:25:33: error: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '65536' to '0' [-Werror=overflow]
25 | #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/omapdrm/omap_gem.c:757:42: note: in expansion of macro 'PAGE_SIZE'
757 | PAGE_SIZE);
| ^~~~~~~~~
drivers/gpu/drm/omapdrm/omap_gem.c: In function 'omap_gem_init':
>> arch/powerpc/include/asm/page.h:25:33: error: conversion from 'long unsigned int' to 'u16' {aka 'short unsigned int'} changes value from '65536' to '0' [-Werror=overflow]
25 | #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/omapdrm/omap_gem.c:1503:65: note: in expansion of macro 'PAGE_SIZE'
1503 | block = tiler_reserve_2d(fmts[i], w, h, PAGE_SIZE);
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +25 arch/powerpc/include/asm/page.h
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 17
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 18 /*
e12401222f749c arch/powerpc/include/asm/page.h Yuri Tikhonov 2009-01-29 19 * On regular PPC32 page size is 4K (but we support 4K/16K/64K/256K pages
555f4fdb93e70d arch/powerpc/include/asm/page.h Christophe Leroy 2019-02-21 20 * on PPC44x and 4K/16K on 8xx). For PPC64 we support either 4K or 64K software
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 21 * page size. When using 64K pages however, whether we are really supporting
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 22 * 64K pages in HW or not is irrelevant to those definitions.
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 23 */
d3e5bab923d35f arch/powerpc/include/asm/page.h Arnd Bergmann 2024-02-26 24 #define PAGE_SHIFT CONFIG_PAGE_SHIFT
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 @25 #define PAGE_SIZE (ASM_CONST(1) << PAGE_SHIFT)
5cd16ee934eafc include/asm-powerpc/page.h Michael Ellerman 2005-11-11 26
:::::: The code at line 25 was first introduced by commit
:::::: 5cd16ee934eafca74a6bb790328950cec68a8b78 [PATCH] powerpc: Merge page.h
:::::: TO: Michael Ellerman <michael at ellerman.id.au>
:::::: CC: Paul Mackerras <paulus at samba.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the dri-devel
mailing list