diff --git a/qdf/inc/qdf_cpuhp.h b/qdf/inc/qdf_cpuhp.h index c3e99bad90..586f4a2a83 100644 --- a/qdf/inc/qdf_cpuhp.h +++ b/qdf/inc/qdf_cpuhp.h @@ -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 */