qcacmn: Avoid compilation issue with kernel 4.19

There is a compilation issue if a variable is passed to
kernel api DECLARE_HASHTABLE.
TO resolve this issue, instead of passing a variable
pass a constant to DECLARE_HASHTABLE.

Change-Id: Ie9782af541bb34cc50f79060b0007dc73881e5f4
CRs-Fixed: 2386893
This commit is contained in:
Ashish Kumar Dhanotiya
2019-01-21 20:09:29 +05:30
committed by nshrivas
parent ad85c38928
commit 3be335ca19
2 changed files with 10 additions and 5 deletions

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
@@ -38,7 +38,9 @@
/**
* qdf_ht_declare() - declare a new qdf_ht
* @name: variable name of the hashtable to declare
* @bits: number of hash bits to use; buckets=2^bits
* @bits: number of hash bits to use; buckets=2^bits; Needs to be a compile
* time constant
*
*/
#define qdf_ht_declare(name, bits) __qdf_ht_declare(name, bits)