Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8560e4d0 authored by jiad's avatar jiad Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 7fe509b0
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -82,17 +82,17 @@ QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
 */
void qdf_cpuhp_unregister(struct qdf_cpuhp_handler **handler);
#else
QDF_STATUS qdf_cpuhp_init(void)
static inline QDF_STATUS qdf_cpuhp_init(void)
{
	return QDF_STATUS_SUCCESS;
}

QDF_STATUS qdf_cpuhp_deinit(void)
static inline QDF_STATUS qdf_cpuhp_deinit(void)
{
	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,
					    qdf_cpuhp_callback up_callback,
					    qdf_cpuhp_callback down_callback)
@@ -100,7 +100,7 @@ QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
	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 /* __QDF_CPUHP_H */