All of lore.kernel.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <CAJfuBxx0QzRa7xt56vKhawxnLpvB0HsnyuOO1+KWK0bN6nDmUA@mail.gmail.com> (raw)
In-Reply-To: <202108202235.ihI2NNlA-lkp@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1078 bytes --]

On Fri, Aug 20, 2021 at 8:10 AM kernel test robot <lkp@intel.com> wrote:
>         # save the attached .config to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=s390 SHELL=/bin/bash
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> 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 'struct module'
>      609 |                 matches = 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 = dynamic_debug_exec_queries(query, KP_MOD_NAME);


I bet someone knows :-)

      reply	other threads:[~2021-08-21 14:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-20 14:09 [jimc:dd-drm-next 2/11] lib/dynamic_debug.c:609:68: error: invalid use of undefined type 'struct module' kernel test robot
2021-08-21 14:34 ` jim.cromie [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJfuBxx0QzRa7xt56vKhawxnLpvB0HsnyuOO1+KWK0bN6nDmUA@mail.gmail.com \
    --to=jim.cromie@gmail.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.