aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2019-06-06 18:11:44 -0500
committerLinus Walleij <linus.walleij@linaro.org>2019-06-08 01:29:43 +0200
commitd32aa74555575a0692f4e06fe39a673a1877eff6 (patch)
tree60793254feef686146cff59bf83b1361db27d604 /tools/perf/scripts/python/export-to-postgresql.py
parentpinctrl: aspeed: Add SGPM pinmux (diff)
downloadwireguard-linux-d32aa74555575a0692f4e06fe39a673a1877eff6.tar.xz
wireguard-linux-d32aa74555575a0692f4e06fe39a673a1877eff6.zip
pinctrl: tb10x: Use flexible-array member and struct_size() helper
Update the code to use a flexible array member instead of a pointer in structure tb10x_pinctrl and use the struct_size() helper: struct tb10x_pinctrl { ... struct tb10x_of_pinfunc pinfuncs[]; }; Also, make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. So, replace the following form: sizeof(struct tb10x_pinctrl) + of_get_child_count(of_node) * sizeof(struct tb10x_of_pinfunc) with: struct_size(state, pinfuncs, of_get_child_count(of_node)) This code was detected with the help of Coccinelle. Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions