From b9264e89c6ea6ae20fe6a91bb560cfb5fbc3bcee Mon Sep 17 00:00:00 2001 From: jiad Date: Mon, 8 Oct 2018 10:30:33 +0800 Subject: [PATCH] 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 --- qdf/inc/qdf_cpuhp.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 */