xref: /OK3568_Linux_fs/kernel/drivers/gpu/arm/midgard/mali_kbase_utility.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  *
3*4882a593Smuzhiyun  * (C) COPYRIGHT 2012-2013, 2015 ARM Limited. All rights reserved.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This program is free software and is provided to you under the terms of the
6*4882a593Smuzhiyun  * GNU General Public License version 2 as published by the Free Software
7*4882a593Smuzhiyun  * Foundation, and any use by you of this program is subject to the terms
8*4882a593Smuzhiyun  * of such GNU licence.
9*4882a593Smuzhiyun  *
10*4882a593Smuzhiyun  * A copy of the licence is included with the program, and can also be obtained
11*4882a593Smuzhiyun  * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12*4882a593Smuzhiyun  * Boston, MA  02110-1301, USA.
13*4882a593Smuzhiyun  *
14*4882a593Smuzhiyun  */
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun 
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #ifndef _KBASE_UTILITY_H
21*4882a593Smuzhiyun #define _KBASE_UTILITY_H
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #ifndef _KBASE_H_
24*4882a593Smuzhiyun #error "Don't include this file directly, use mali_kbase.h instead"
25*4882a593Smuzhiyun #endif
26*4882a593Smuzhiyun 
27*4882a593Smuzhiyun /** Test whether the given list entry is a member of the given list.
28*4882a593Smuzhiyun  *
29*4882a593Smuzhiyun  * @param base      The head of the list to be tested
30*4882a593Smuzhiyun  * @param entry     The list entry to be tested
31*4882a593Smuzhiyun  *
32*4882a593Smuzhiyun  * @return          true if entry is a member of base
33*4882a593Smuzhiyun  *                  false otherwise
34*4882a593Smuzhiyun  */
35*4882a593Smuzhiyun bool kbasep_list_member_of(const struct list_head *base, struct list_head *entry);
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun #endif				/* _KBASE_UTILITY_H */
38