]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - kernel/profile.c
profile: suppress warning about large allocations when profile=1 is specified
[net-next-2.6.git] / kernel / profile.c
index 69911b5745eb1a9fd406e7bf3ef4a653033898a2..419250ebec4d63b913130a2f533cc2adf95f359a 100644 (file)
@@ -117,11 +117,12 @@ int __ref profile_init(void)
 
        cpumask_copy(prof_cpu_mask, cpu_possible_mask);
 
-       prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL);
+       prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN);
        if (prof_buffer)
                return 0;
 
-       prof_buffer = alloc_pages_exact(buffer_bytes, GFP_KERNEL|__GFP_ZERO);
+       prof_buffer = alloc_pages_exact(buffer_bytes,
+                                       GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN);
        if (prof_buffer)
                return 0;