Skip to content

Commit 875aec2

Browse files
computersforpeaceshuahkh
authored andcommitted
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>
1 parent 40384c8 commit 875aec2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/kunit/platform_device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#ifndef _KUNIT_PLATFORM_DRIVER_H
33
#define _KUNIT_PLATFORM_DRIVER_H
44

5+
struct completion;
56
struct kunit;
67
struct platform_device;
78
struct platform_driver;

0 commit comments

Comments
 (0)