diff options
| author | James Simmons <jsimmons@infradead.org> | 2017-08-19 22:26:16 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-22 18:36:48 -0700 |
| commit | 402fba76c3e2029ebcdfb2df9efc9f4e61da44f7 (patch) | |
| tree | 61dd63cad3d05c8ddaddeddd1f1cde2c2f84e399 /tools/perf/scripts/python/Perf-Trace-Util | |
| parent | 18bd20841bd3b70d502b1d78e40c0bde2af9e663 (diff) | |
| download | cachepc-linux-402fba76c3e2029ebcdfb2df9efc9f4e61da44f7.tar.gz cachepc-linux-402fba76c3e2029ebcdfb2df9efc9f4e61da44f7.zip | |
staging: lustre: uapi: don't memory allocate in UAPI header
The inline function lustre_cfg_new() calls kzalloc() but
this is a UAPI header. Remove kzalloc() and rename the
function to lustre_cfg_init(). The lustre kernel code
that was calling lustre_cfg_new() can doing the memory
allocation and pass the new buffer to lustre_cfg_init()
to fill in.
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6401
Reviewed-on: https://review.whamcloud.com/26966
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Reviewed-by: Ben Evans <bevans@cray.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions
