From: kernel test robot <lkp@intel.com>
To: Ben Skeggs <bskeggs@redhat.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Mon, 13 Feb 2023 22:27:50 +0800 [thread overview]
Message-ID: <202302132206.uzzkoc7v-lkp@intel.com> (raw)
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
reply other threads:[~2023-02-13 14:28 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=202302132206.uzzkoc7v-lkp@intel.com \
--to=lkp@intel.com \
--cc=bskeggs@redhat.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.