Content-Type: multipart/mixed; boundary="===============5442942484642825239==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v3 2/2] proc: remove PDE_DATA() completely Date: Thu, 25 Nov 2021 18:40:56 +0800 Message-ID: <202111251808.PvA9a3Rc-lkp@intel.com> In-Reply-To: <20211124081956.87711-2-songmuchun@bytedance.com> List-Id: --===============5442942484642825239== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Muchun, Thank you for the patch! Yet something to improve: [auto build test ERROR on kvalo-wireless-drivers-next/master] [also build test ERROR on kvalo-wireless-drivers/master nf-next/master nf/m= aster linus/master v5.16-rc2] [cannot apply to next-20211125] [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/Muchun-Song/fs-proc-store-= PDE-data-into-inode-i_private/20211124-162611 base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-driv= ers-next.git master config: m68k-defconfig (https://download.01.org/0day-ci/archive/20211125/20= 2111251808.PvA9a3Rc-lkp(a)intel.com/config) compiler: m68k-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/fd5e07508eeb322c4ce7b4ced= 840806daf359c39 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Muchun-Song/fs-proc-store-PDE-data= -into-inode-i_private/20211124-162611 git checkout fd5e07508eeb322c4ce7b4ced840806daf359c39 # 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=3Dm68k SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/nubus/proc.c: In function 'nubus_proc_rsrc_show': >> drivers/nubus/proc.c:112:20: error: called object 'pde_data' is not a fu= nction or function pointer 112 | pde_data =3D pde_data(inode); | ^~~~~~~~ drivers/nubus/proc.c:110:37: note: declared here 110 | struct nubus_proc_pde_data *pde_data; | ^~~~~~~~ vim +/pde_data +112 drivers/nubus/proc.c 106 = 107 static int nubus_proc_rsrc_show(struct seq_file *m, void *v) 108 { 109 struct inode *inode =3D m->private; 110 struct nubus_proc_pde_data *pde_data; 111 = > 112 pde_data =3D pde_data(inode); 113 if (!pde_data) 114 return 0; 115 = 116 if (pde_data->res_size > m->size) 117 return -EFBIG; 118 = 119 if (pde_data->res_size) { 120 int lanes =3D (int)proc_get_parent_data(inode); 121 struct nubus_dirent ent; 122 = 123 if (!lanes) 124 return 0; 125 = 126 ent.mask =3D lanes; 127 ent.base =3D pde_data->res_ptr; 128 ent.data =3D 0; 129 nubus_seq_write_rsrc_mem(m, &ent, pde_data->res_size); 130 } else { 131 unsigned int data =3D (unsigned int)pde_data->res_ptr; 132 = 133 seq_putc(m, data >> 16); 134 seq_putc(m, data >> 8); 135 seq_putc(m, data >> 0); 136 } 137 return 0; 138 } 139 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5442942484642825239==--