summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2013-11-05 16:57:40 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-11-05 16:57:40 +1100
commitfe1d17941322330b4721478ab991337bc33bb610 (patch)
tree15ba1ae777228350c49fd94020ae758e2b93d832 /kernel
parent2b656f42fc969551f64b37579f06c896a1e8c83f (diff)
gcov-add-support-for-gcc-47-gcov-format-fix-fix
checkpatch whined about the argument order Cc: Frantisek Hrbata <fhrbata@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/gcov/gcc_4_7.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/gcov/gcc_4_7.c b/kernel/gcov/gcc_4_7.c
index 5ccb6aeebf77..742d17949cf7 100644
--- a/kernel/gcov/gcc_4_7.c
+++ b/kernel/gcov/gcc_4_7.c
@@ -266,8 +266,8 @@ struct gcov_info *gcov_info_dup(struct gcov_info *info)
if (!dup->filename)
goto err_free;
- dup->functions = kcalloc(sizeof(struct gcov_fn_info *),
- info->n_functions, GFP_KERNEL);
+ dup->functions = kcalloc(info->n_functions,
+ sizeof(struct gcov_fn_info *), GFP_KERNEL);
if (!dup->functions)
goto err_free;