diff options
| author | Brian Norris <briannorris@chromium.org> | 2024-12-13 21:08:23 +0300 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2025-01-12 02:00:36 +0300 |
| commit | 875aec2357cd22d412226e4134d1106248b0eb9d (patch) | |
| tree | bb2173156d1a4167573b894ad05ae2e4b59fe450 /include | |
| parent | 40384c840ea1944d7c5a392e8975ed088ecf0b37 (diff) | |
| download | linux-875aec2357cd22d412226e4134d1106248b0eb9d.tar.xz | |
kunit: platform: Resolve 'struct completion' warning
If the <kunit/platform_device.h> header is included in a test without
certain other headers, it produces compiler warnings like:
In file included from [...]
../include/kunit/platform_device.h:15:57: warning: ‘struct completion’
declared inside parameter list will not be visible outside of this
definition or declaration
15 | struct completion *x);
| ^~~~~~~~~~
Add a 'struct completion' forward declaration to resolve this.
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/kunit/platform_device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kunit/platform_device.h b/include/kunit/platform_device.h index 0fc0999d2420..f8236a8536f7 100644 --- a/include/kunit/platform_device.h +++ b/include/kunit/platform_device.h @@ -2,6 +2,7 @@ #ifndef _KUNIT_PLATFORM_DRIVER_H #define _KUNIT_PLATFORM_DRIVER_H +struct completion; struct kunit; struct platform_device; struct platform_driver; |
