Re: [PATCH] of: unittest: Remove VLA stack usage

2018-03-18 Thread Rob Herring
On Mon, Mar 12, 2018 at 03:27:23PM +1100, Tobin C. Harding wrote: > The kernel would like to have all stack VLA usage removed[1]. This is a > test function so the execution speed is not critical. We can allocate > memory for this buffer instead of using a VLA. If kmalloc() fails just > return.

Re: [PATCH] of: unittest: Remove VLA stack usage

2018-03-18 Thread Rob Herring
On Mon, Mar 12, 2018 at 03:27:23PM +1100, Tobin C. Harding wrote: > The kernel would like to have all stack VLA usage removed[1]. This is a > test function so the execution speed is not critical. We can allocate > memory for this buffer instead of using a VLA. If kmalloc() fails just > return.

[PATCH] of: unittest: Remove VLA stack usage

2018-03-11 Thread Tobin C. Harding
The kernel would like to have all stack VLA usage removed[1]. This is a test function so the execution speed is not critical. We can allocate memory for this buffer instead of using a VLA. If kmalloc() fails just return. Allocate buffer with kmalloc(). [1]: https://lkml.org/lkml/2018/3/7/621

[PATCH] of: unittest: Remove VLA stack usage

2018-03-11 Thread Tobin C. Harding
The kernel would like to have all stack VLA usage removed[1]. This is a test function so the execution speed is not critical. We can allocate memory for this buffer instead of using a VLA. If kmalloc() fails just return. Allocate buffer with kmalloc(). [1]: https://lkml.org/lkml/2018/3/7/621