qcacmn: Fix cpuhp compile errors on UP system
Compiler throws no previous prototype build error for cpuhp on UP system. Fix is to add static inline for UP build. Change-Id: Ib867a19ac526b44766a8cbb1838e7e5b2b18b4b1 CRs-Fixed: 2328927
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2017 The Linux Foundation. All rights reserved.
|
* Copyright (c) 2017-2018 The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and/or distribute this software for
|
* Permission to use, copy, modify, and/or distribute this software for
|
||||||
* any purpose with or without fee is hereby granted, provided that the
|
* any purpose with or without fee is hereby granted, provided that the
|
||||||
@@ -82,17 +82,17 @@ QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
|
|||||||
*/
|
*/
|
||||||
void qdf_cpuhp_unregister(struct qdf_cpuhp_handler **handler);
|
void qdf_cpuhp_unregister(struct qdf_cpuhp_handler **handler);
|
||||||
#else
|
#else
|
||||||
QDF_STATUS qdf_cpuhp_init(void)
|
static inline QDF_STATUS qdf_cpuhp_init(void)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
QDF_STATUS qdf_cpuhp_deinit(void)
|
static inline QDF_STATUS qdf_cpuhp_deinit(void)
|
||||||
{
|
{
|
||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
|
static inline QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
|
||||||
void *context,
|
void *context,
|
||||||
qdf_cpuhp_callback up_callback,
|
qdf_cpuhp_callback up_callback,
|
||||||
qdf_cpuhp_callback down_callback)
|
qdf_cpuhp_callback down_callback)
|
||||||
@@ -100,7 +100,7 @@ QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
|
|||||||
return QDF_STATUS_SUCCESS;
|
return QDF_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
void qdf_cpuhp_unregister(struct qdf_cpuhp_handler **handler) {}
|
static inline void qdf_cpuhp_unregister(struct qdf_cpuhp_handler **handler) {}
|
||||||
#endif /* QCA_CONFIG_SMP */
|
#endif /* QCA_CONFIG_SMP */
|
||||||
|
|
||||||
#endif /* __QDF_CPUHP_H */
|
#endif /* __QDF_CPUHP_H */
|
||||||
|
Reference in New Issue
Block a user