* [skeggsb-nouveau:01.03-gsp-ada 185/193] drivers/gpu/drm/nouveau/nvkm/engine/disp/r525.c:59:1: error: non-void function does not return a value in all control paths
@ 2023-02-13 14:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-02-13 14:27 UTC (permalink / raw)
To: Ben Skeggs; +Cc: llvm, oe-kbuild-all
tree: https://gitlab.freedesktop.org/skeggsb/nouveau 01.03-gsp-ada
head: ab3448c2873e0fbcf1fd710cccb52dc548bdf449
commit: c24815755c5c79d50fa9370ec1124fedd29743bb [185/193] disp
config: arm64-randconfig-r021-20230212 (https://download.01.org/0day-ci/archive/20230213/202302132206.uzzkoc7v-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project db0e6591612b53910a1b366863348bdb9d7d2fb1)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
git remote add skeggsb-nouveau https://gitlab.freedesktop.org/skeggsb/nouveau
git fetch --no-tags skeggsb-nouveau 01.03-gsp-ada
git checkout c24815755c5c79d50fa9370ec1124fedd29743bb
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/gpu/drm/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302132206.uzzkoc7v-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/nouveau/nvkm/engine/disp/r525.c:59:1: error: non-void function does not return a value in all control paths [-Werror,-Wreturn-type]
}
^
1 error generated.
vim +59 drivers/gpu/drm/nouveau/nvkm/engine/disp/r525.c
46
47 static u64
48 r525_chan_user(struct nvkm_disp_chan *chan, u64 *psize)
49 {
50 switch (chan->object.oclass & 0xff) {
51 case 0x7d: *psize = 0x10000; return 0x680000;
52 case 0x7e: *psize = 0x01000; return 0x690000 + (chan->head * *psize);
53 case 0x7b: *psize = 0x01000; return 0x6b0000 + (chan->head * *psize);
54 case 0x7a: *psize = 0x01000; return 0x6d8000 + (chan->head * *psize);
55 default:
56 BUG_ON(1);
57 break;
58 }
> 59 }
60
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-13 14:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-13 14:27 [skeggsb-nouveau:01.03-gsp-ada 185/193] drivers/gpu/drm/nouveau/nvkm/engine/disp/r525.c:59:1: error: non-void function does not return a value in all control paths kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.