lib/stackdepot: remove unused function argument
[linux-2.6-microblaze.git] / lib / stackdepot.c
index 0a2e417..c80a9f7 100644 (file)
@@ -102,8 +102,8 @@ static bool init_stack_slab(void **prealloc)
 }
 
 /* Allocation of a new stack in raw storage */
-static struct stack_record *depot_alloc_stack(unsigned long *entries, int size,
-               u32 hash, void **prealloc, gfp_t alloc_flags)
+static struct stack_record *
+depot_alloc_stack(unsigned long *entries, int size, u32 hash, void **prealloc)
 {
        struct stack_record *stack;
        size_t required_size = struct_size(stack, entries, size);
@@ -309,9 +309,8 @@ depot_stack_handle_t stack_depot_save(unsigned long *entries,
 
        found = find_stack(*bucket, entries, nr_entries, hash);
        if (!found) {
-               struct stack_record *new =
-                       depot_alloc_stack(entries, nr_entries,
-                                         hash, &prealloc, alloc_flags);
+               struct stack_record *new = depot_alloc_stack(entries, nr_entries, hash, &prealloc);
+
                if (new) {
                        new->next = *bucket;
                        /*