mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-04-13 09:59:31 +00:00

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>
21 lines
607 B
C
21 lines
607 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _KUNIT_PLATFORM_DRIVER_H
|
|
#define _KUNIT_PLATFORM_DRIVER_H
|
|
|
|
struct completion;
|
|
struct kunit;
|
|
struct platform_device;
|
|
struct platform_driver;
|
|
|
|
struct platform_device *
|
|
kunit_platform_device_alloc(struct kunit *test, const char *name, int id);
|
|
int kunit_platform_device_add(struct kunit *test, struct platform_device *pdev);
|
|
|
|
int kunit_platform_device_prepare_wait_for_probe(struct kunit *test,
|
|
struct platform_device *pdev,
|
|
struct completion *x);
|
|
|
|
int kunit_platform_driver_register(struct kunit *test,
|
|
struct platform_driver *drv);
|
|
|
|
#endif
|