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:
jiad
2018-10-08 10:30:33 +08:00
کامیت شده توسط nshrivas
والد d18887ee9f
کامیت b9264e89c6

مشاهده پرونده

@@ -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
* any purpose with or without fee is hereby granted, provided that the
@@ -82,25 +82,25 @@ 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,
void *context,
qdf_cpuhp_callback up_callback,
qdf_cpuhp_callback down_callback)
static inline QDF_STATUS qdf_cpuhp_register(struct qdf_cpuhp_handler **handler,
void *context,
qdf_cpuhp_callback up_callback,
qdf_cpuhp_callback down_callback)
{
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 */