From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3537001377174375222==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [chrome-os:chromeos-5.10 9987/9999] drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:182:13: warning: no previous prototype for function 'kbase_gpu_irq_test_handler' Date: Tue, 18 Jan 2022 19:13:17 +0800 Message-ID: <202201181455.oCI9OMRx-lkp@intel.com> List-Id: --===============3537001377174375222== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chr= omeos-5.10 head: d2945e83762685e27b20286924d8e59daa10233f commit: 79b0a1f26446bb3026f29a6cc0cf40d82112ca85 [9987/9999] CHROMIUM: gpu:= mali: Apply Valhall r32p0 EAC release config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/2022011= 8/202201181455.oCI9OMRx-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project c10cbb= 243cafc0cf42c3e922cb29183279444432) reproduce (this is a W=3D1 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 chrome-os https://chromium.googlesource.com/chromium= os/third_party/kernel git fetch --no-tags chrome-os chromeos-5.10 git checkout 79b0a1f26446bb3026f29a6cc0cf40d82112ca85 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Darm64 SHELL=3D/bin/bash drivers/gpu/arm/valhall/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:80:24: warning: format s= pecifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned= long long') [-Wformat] fence->context, fence->seqno, ^~~~~~~~~~~~ drivers/gpu/arm/valhall/mali_kbase_jd_debugfs.c:99:24: warning: format s= pecifies type 'unsigned int' but the argument has type 'u64' (aka 'unsigned= long long') [-Wformat] fence->context, fence->seqno, ^~~~~~~~~~~~ 2 warnings generated. -- >> drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:182:13: warni= ng: no previous prototype for function 'kbase_gpu_irq_test_handler' [-Wmiss= ing-prototypes] irqreturn_t kbase_gpu_irq_test_handler(int irq, void *data, u32 val) ^ drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:182:1: note: = declare 'static' if the function is not intended to be used outside of this= translation unit irqreturn_t kbase_gpu_irq_test_handler(int irq, void *data, u32 val) ^ static = drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:210:5: warnin= g: no previous prototype for function 'kbase_set_custom_irq_handler' [-Wmis= sing-prototypes] int kbase_set_custom_irq_handler(struct kbase_device *kbdev, ^ drivers/gpu/arm/valhall/backend/gpu/mali_kbase_irq_linux.c:210:1: note: = declare 'static' if the function is not intended to be used outside of this= translation unit int kbase_set_custom_irq_handler(struct kbase_device *kbdev, ^ static = 2 warnings generated. vim +/kbase_gpu_irq_test_handler +182 drivers/gpu/arm/valhall/backend/gpu/m= ali_kbase_irq_linux.c f38632197c49e6 Nicolas Boichat 2020-04-18 168 = f38632197c49e6 Nicolas Boichat 2020-04-18 169 /** f38632197c49e6 Nicolas Boichat 2020-04-18 170 * kbase_gpu_irq_test_handl= er - Variant (for test) of kbase_gpu_irq_handler() f38632197c49e6 Nicolas Boichat 2020-04-18 171 * @irq: IRQ number f38632197c49e6 Nicolas Boichat 2020-04-18 172 * @data: Data associated w= ith this IRQ (i.e. kbdev) f38632197c49e6 Nicolas Boichat 2020-04-18 173 * @val: Value of the GPU_= CONTROL_REG(GPU_IRQ_STATUS) f38632197c49e6 Nicolas Boichat 2020-04-18 174 * f38632197c49e6 Nicolas Boichat 2020-04-18 175 * Handle the GPU device in= terrupt source requests reflected in the f38632197c49e6 Nicolas Boichat 2020-04-18 176 * given source bit-pattern= . The test code caller is responsible for f38632197c49e6 Nicolas Boichat 2020-04-18 177 * undertaking the required= device power maintenace. f38632197c49e6 Nicolas Boichat 2020-04-18 178 * f38632197c49e6 Nicolas Boichat 2020-04-18 179 * Return: IRQ_HANDLED if t= he requests are from the GPU device, f38632197c49e6 Nicolas Boichat 2020-04-18 180 * IRQ_NONE otherwi= se f38632197c49e6 Nicolas Boichat 2020-04-18 181 */ 10cd017481f1fa Fei Shao 2021-06-17 @182 irqreturn_t kbase_gpu_irq_t= est_handler(int irq, void *data, u32 val) f38632197c49e6 Nicolas Boichat 2020-04-18 183 { f38632197c49e6 Nicolas Boichat 2020-04-18 184 struct kbase_device *kbdev= =3D kbase_untag(data); f38632197c49e6 Nicolas Boichat 2020-04-18 185 = f38632197c49e6 Nicolas Boichat 2020-04-18 186 if (!val) f38632197c49e6 Nicolas Boichat 2020-04-18 187 return IRQ_NONE; f38632197c49e6 Nicolas Boichat 2020-04-18 188 = f38632197c49e6 Nicolas Boichat 2020-04-18 189 dev_dbg(kbdev->dev, "%s: i= rq %d irqstatus 0x%x\n", __func__, irq, val); f38632197c49e6 Nicolas Boichat 2020-04-18 190 = f38632197c49e6 Nicolas Boichat 2020-04-18 191 kbase_gpu_interrupt(kbdev,= val); f38632197c49e6 Nicolas Boichat 2020-04-18 192 = f38632197c49e6 Nicolas Boichat 2020-04-18 193 return IRQ_HANDLED; f38632197c49e6 Nicolas Boichat 2020-04-18 194 } f38632197c49e6 Nicolas Boichat 2020-04-18 195 = :::::: The code at line 182 was first introduced by commit :::::: 10cd017481f1fa5fd8308956be32117a4103519f CHROMIUM: MALI: Include kut= f modules :::::: TO: Fei Shao :::::: CC: Commit Bot --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3537001377174375222==--