Skip to content

Commit c58b0b8

Browse files
KubaTaba1ugapopcornmix
authored andcommitted
fix clang compilation error
1 parent 636ef5e commit c58b0b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/dma-buf/heaps/system_heap.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ static gfp_t order_flags[] = {HIGH_ORDER_GFP, HIGH_ORDER_GFP, LOW_ORDER_GFP};
5151
* of order 0 pages can significantly improve the performance of many IOMMUs
5252
* by reducing TLB pressure and time spent updating page tables.
5353
*/
54-
static const unsigned int orders[] = {8, 4, 0};
54+
#define MAX_ORDERS_VALUE 8
55+
static const unsigned int orders[] = {MAX_ORDERS_VALUE, 4, 0};
5556
#define NUM_ORDERS ARRAY_SIZE(orders)
5657

57-
static unsigned int module_max_order = orders[0];
58+
static unsigned int module_max_order = MAX_ORDERS_VALUE;
5859

5960
module_param_named(max_order, module_max_order, uint, 0400);
6061
MODULE_PARM_DESC(max_order, "Maximum allocation order override.");

0 commit comments

Comments
 (0)