From e9b429cceac6a639153ff0edfc6d65004464885a Mon Sep 17 00:00:00 2001 From: Christoffer Sandberg Date: Wed, 30 Mar 2022 11:15:06 +0200 Subject: [PATCH] Fix build on older kernel --- src/tuxedo_io/tuxedo_io.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tuxedo_io/tuxedo_io.c b/src/tuxedo_io/tuxedo_io.c index 94e5625..02380d5 100644 --- a/src/tuxedo_io/tuxedo_io.c +++ b/src/tuxedo_io/tuxedo_io.c @@ -1,5 +1,5 @@ /*! - * Copyright (c) 2019-2021 TUXEDO Computers GmbH + * Copyright (c) 2019-2022 TUXEDO Computers GmbH * * This file is part of tuxedo-io. * @@ -105,6 +105,7 @@ void uw_id_tdp(void) } else if (uw_feats->model == UW_MODEL_PH4TQF) { tdp_min_defs = tdp_min_ph4tqx; tdp_max_defs = tdp_max_ph4tqx; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) } else if (dmi_match(DMI_PRODUCT_SKU, "POLARIS1XA02")) { tdp_min_defs = tdp_min_gmxngxx; tdp_max_defs = tdp_max_gmxngxx; @@ -119,6 +120,7 @@ void uw_id_tdp(void) || dmi_match(DMI_PRODUCT_SKU, "STELLARIS1XA03")) { tdp_min_defs = tdp_min_gmxzgxx; tdp_max_defs = tdp_max_gmxzgxx; +#endif } else { tdp_min_defs = NULL; tdp_max_defs = NULL;