From 45b81d1d8856d4cd0d243ab1e45a0f6aadae59bf Mon Sep 17 00:00:00 2001 From: jiad Date: Wed, 24 Apr 2019 11:03:53 +0800 Subject: [PATCH] qcacmn: Fix build errors with SLUB_DEBUG_ON This patchset fixes following build errors with CONFIG_SLUB_DEBUG_ON=y on sdxprairie. qdf_types_test.c:111:2: error: this decimal constant is unsigned only in ISO C90 [-Werror] qdf_types_test.c:199:2: error: this decimal constant is unsigned only in ISO C90 [-Werror] Change-Id: I9379eb2754b95ef3a03ed2369d972fdf3ea46322 CRs-Fixed: 2433430 --- qdf/test/qdf_types_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qdf/test/qdf_types_test.c b/qdf/test/qdf_types_test.c index 9aa062adbfba..c19393ad318a 100644 --- a/qdf/test/qdf_types_test.c +++ b/qdf/test/qdf_types_test.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2019 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 @@ -108,7 +108,7 @@ static uint32_t qdf_types_ut_int32_parse(void) errors += ut_int32_fail("1;", QDF_STATUS_E_FAILURE); errors += ut_int32_pass(" 2147483647", 2147483647); errors += ut_int32_fail(" 2147483648", QDF_STATUS_E_RANGE); - errors += ut_int32_pass("-2147483648", -2147483648); + errors += ut_int32_pass("-2147483648", -2147483647 - 1); errors += ut_int32_fail("-2147483649", QDF_STATUS_E_RANGE); errors += ut_int32_fail("日本", QDF_STATUS_E_FAILURE); @@ -196,7 +196,7 @@ static uint32_t qdf_types_ut_uint32_parse(void) errors += ut_uint32_pass("+1", 1); errors += ut_uint32_pass(WHITESPACE "1" WHITESPACE, 1); errors += ut_uint32_fail("1;", QDF_STATUS_E_FAILURE); - errors += ut_uint32_pass("4294967295", 4294967295); + errors += ut_uint32_pass("4294967295", 4294967295U); errors += ut_uint32_fail("4294967296", QDF_STATUS_E_RANGE); errors += ut_uint32_pass(" 0", 0); errors += ut_uint32_fail("-1", QDF_STATUS_E_RANGE);