diff options
| author | Laura Abbott <[email protected]> | 2018-09-19 18:59:01 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-20 09:17:25 +0200 |
| commit | 1cd25cbb2fedbc777f3a8c3cb1ba69b645aeaa64 (patch) | |
| tree | 2a6ce51397c1334dca37a055bf6959efcbaab9fd /drivers/gpu/drm/lima/lima_object.c | |
| parent | feacbecb39db098cd9f6d728dcb00d753a3f36ed (diff) | |
kgdboc: Fix warning with module build
After 2dd453168643 ("kgdboc: Fix restrict error"), kgdboc_option_setup is
now only used when built in, resulting in a warning when compiled as a
module:
drivers/tty/serial/kgdboc.c:134:12: warning: 'kgdboc_option_setup' defined but not used [-Wunused-function]
static int kgdboc_option_setup(char *opt)
^~~~~~~~~~~~~~~~~~~
Move the function under the appropriate ifdef for builtin only.
Fixes: 2dd453168643 ("kgdboc: Fix restrict error")
Reported-by: Stephen Rothwell <[email protected]>
Signed-off-by: Laura Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_object.c')
0 files changed, 0 insertions, 0 deletions