From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============0124718931511928961==" MIME-Version: 1.0 From: jim.cromie@gmail.com To: kbuild-all@lists.01.org Subject: Re: [jimc:dd-drm-next 2/11] lib/dynamic_debug.c:609:68: error: invalid use of undefined type 'struct module' Date: Sat, 21 Aug 2021 08:34:04 -0600 Message-ID: In-Reply-To: <202108202235.ihI2NNlA-lkp@intel.com> List-Id: --===============0124718931511928961== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Fri, Aug 20, 2021 at 8:10 AM kernel test robot wrote: > # save the attached .config to linux build tree > mkdir build_dir > COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cro= ss O=3Dbuild_dir ARCH=3Ds390 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 >>): > > lib/dynamic_debug.c: In function 'param_set_dyndbg': > >> lib/dynamic_debug.c:609:68: error: invalid use of undefined type 'stru= ct module' > 609 | matches =3D dynamic_debug_exec_queries(query, = kp->mod->name); > | = ^~ > I have fixed this, though I suspect theres a smoother way, an already defined symbol for this. +#ifdef MODULES +#define KP_MOD_NAME kp->mod->name +#else +#define KP_MOD_NAME NULL /* wildcard */ +#endif + matches =3D dynamic_debug_exec_queries(query, KP_MOD_NAME); I bet someone knows :-) --===============0124718931511928961==--