Content-Type: multipart/mixed; boundary="===============1576499776063147551==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [linux-next:master 4289/4301] drivers/nubus/proc.c:112:20: error: called object 'pde_data' is not a function or function pointer Date: Tue, 30 Nov 2021 22:42:12 +0800 Message-ID: <202111302247.X1X9fCjn-lkp@intel.com> List-Id: --===============1576499776063147551== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git= master head: 34f255a1e91ab44ff8926cf8294ff9144e62e861 commit: 096d93a8a06292342e48b13021e6c8e097bd9acd [4289/4301] proc: remove P= DE_DATA() completely config: m68k-defconfig (https://download.01.org/0day-ci/archive/20211130/20= 2111302247.X1X9fCjn-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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.g= it/commit/?id=3D096d93a8a06292342e48b13021e6c8e097bd9acd git remote add linux-next https://git.kernel.org/pub/scm/linux/kern= el/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 096d93a8a06292342e48b13021e6c8e097bd9acd # 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 --===============1576499776063147551==--