Content-Type: multipart/mixed; boundary="===============4603661145683392042==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v3 1/1] drm/lsdc: add drm driver for loongson display controller Date: Mon, 31 Jan 2022 18:14:43 +0800 Message-ID: <202201311829.RZamTj6t-lkp@intel.com> In-Reply-To: <20220130193723.2923-2-15330273260@189.cn> List-Id: --===============4603661145683392042== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Sui, Thank you for the patch! Yet something to improve: [auto build test ERROR on drm/drm-next] [also build test ERROR on v5.17-rc2 next-20220128] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sui-Jingfeng/drm-lsdc-add-= drm-driver-for-loongson-display-controller/20220131-043734 base: git://anongit.freedesktop.org/drm/drm drm-next config: ia64-randconfig-m031-20220131 (https://download.01.org/0day-ci/arch= ive/20220131/202201311829.RZamTj6t-lkp(a)intel.com/config) compiler: ia64-linux-gcc (GCC) 11.2.0 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 # https://github.com/0day-ci/linux/commit/219048b8904ab97749c0bc3ea= 426b858d9562de0 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Sui-Jingfeng/drm-lsdc-add-drm-driv= er-for-loongson-display-controller/20220131-043734 git checkout 219048b8904ab97749c0bc3ea426b858d9562de0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dia64 SHELL=3D/bin/bash drivers/gpu/drm/lsdc/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from arch/ia64/include/asm/pgtable.h:153, from include/linux/pgtable.h:6, from arch/ia64/include/asm/uaccess.h:40, from include/linux/uaccess.h:11, from include/linux/sched/task.h:11, from include/linux/sched/signal.h:9, from include/linux/rcuwait.h:6, from include/linux/percpu-rwsem.h:7, from include/linux/fs.h:33, from include/linux/poll.h:10, from include/drm/drm_vblank.h:29, from drivers/gpu/drm/lsdc/lsdc_irq.c:30: arch/ia64/include/asm/mmu_context.h: In function 'reload_context': arch/ia64/include/asm/mmu_context.h:127:48: warning: variable 'old_rr4' = set but not used [-Wunused-but-set-variable] 127 | unsigned long rr0, rr1, rr2, rr3, rr4, old_rr4; | ^~~~~~~ drivers/gpu/drm/lsdc/lsdc_irq.c: In function 'lsdc_irq_handler_cb': >> drivers/gpu/drm/lsdc/lsdc_irq.c:69:17: error: implicit declaration of fu= nction 'drm_warn'; did you mean 'dev_warn'? [-Werror=3Dimplicit-function-de= claration] 69 | drm_warn(ddev, "no interrupt occurs\n"); | ^~~~~~~~ | dev_warn cc1: some warnings being treated as errors vim +69 drivers/gpu/drm/lsdc/lsdc_irq.c > 30 #include 31 = 32 #include "lsdc_drv.h" 33 #include "lsdc_regs.h" 34 #include "lsdc_irq.h" 35 = 36 /* Function to be called in a threaded interrupt context. */ 37 irqreturn_t lsdc_irq_thread_cb(int irq, void *arg) 38 { 39 struct drm_device *ddev =3D arg; 40 struct lsdc_device *ldev =3D to_lsdc(ddev); 41 struct drm_crtc *crtc; 42 = 43 /* trigger the vblank event */ 44 if (ldev->irq_status & INT_CRTC0_VS) { 45 crtc =3D drm_crtc_from_index(ddev, 0); 46 drm_crtc_handle_vblank(crtc); 47 } 48 = 49 if (ldev->irq_status & INT_CRTC1_VS) { 50 crtc =3D drm_crtc_from_index(ddev, 1); 51 drm_crtc_handle_vblank(crtc); 52 } 53 = 54 lsdc_reg_write32(ldev, LSDC_INT_REG, INT_CRTC0_VS_EN | INT_CRTC1_VS= _EN); 55 = 56 return IRQ_HANDLED; 57 } 58 = 59 = 60 /* Function to be called when the IRQ occurs */ 61 irqreturn_t lsdc_irq_handler_cb(int irq, void *arg) 62 { 63 struct drm_device *ddev =3D arg; 64 struct lsdc_device *ldev =3D to_lsdc(ddev); 65 = 66 /* Read & Clear the interrupt status */ 67 ldev->irq_status =3D lsdc_reg_read32(ldev, LSDC_INT_REG); 68 if ((ldev->irq_status & INT_STATUS_MASK) =3D=3D 0) { > 69 drm_warn(ddev, "no interrupt occurs\n"); --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============4603661145683392042==--