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
This commit is contained in:
jiad 2019-04-24 11:03:53 +08:00 • committed by nshrivas
commit 45b81d1d88

View file

@ -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);