diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-04-08 21:50:29 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-04-10 02:06:36 +0200 |
commit | fa0c10a5f3a49130dd11281aa27e7e1c8654abc7 (patch) | |
tree | 89760fcb090ef7f506274553a13b28c52dcc63ca /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ea119e5a482aaf08dd22cf53400c29cb16af8416 (diff) | |
download | linux-fa0c10a5f3a49130dd11281aa27e7e1c8654abc7.tar.gz linux-fa0c10a5f3a49130dd11281aa27e7e1c8654abc7.tar.bz2 linux-fa0c10a5f3a49130dd11281aa27e7e1c8654abc7.zip |
pinctrl: samsung: use 'int' for register masks in Exynos
The Special Function Registers on all Exynos SoC, including ARM64, are
32-bit wide, so entire driver uses matching functions like readl() or
writel(). On 64-bit ARM using unsigned long for register masks:
1. makes little sense as immediately after bitwise operation it will be
cast to 32-bit value when calling writel(),
2. is actually error-prone because it might promote other operands to
64-bit.
Addresses-Coverity: Unintentional integer overflow
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Link: https://lore.kernel.org/r/20210408195029.69974-1-krzysztof.kozlowski@canonical.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions