summaryrefslogtreecommitdiff
path: root/link.h
AgeCommit message (Collapse)AuthorFilesLines
2013-06-04link: add link management functionsDaniel Borkmann1-0/+18
Same here as usual, break out link functions from xutils. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
rm>
authorArnd Bergmann <arnd@arndb.de>2016-05-11 14:49:53 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2016-05-30 18:21:37 +0530
commit06061dc63bff8d609bc8d64f5d3ef59d0a673b25 (patch)
treecbc288dbbd85454a99626bc0814f68d8fb12c24a
parent1a695a905c18548062509178b98bc91e67510864 (diff)
phy: exynos-mipi-video: avoid uninitialized variable use
A rework of the exynos-mipi-video driver caused a warning about the new __set_phy_state function potentially accessing a variable before its initialization: drivers/phy/phy-exynos-mipi-video.c: In function '__set_phy_state': drivers/phy/phy-exynos-mipi-video.c:238:13: error: 'val' may be used uninitialized in this function [-Werror=maybe-uninitialized] return val & data->resetn_val; ~~~~^~~~~~~~~~~~~~~~~~ drivers/phy/phy-exynos-mipi-video.c:235:6: note: 'val' was declared here u32 val; The failure scenario here is the offset passed into a the stub regmap_read() function that does not modify its output, however regmap_read() can also fail for other reasons, so adding error handling (in this case, returning zero from is_running) seems the best solution. Note that this warning showed up with the ARM s5pv210_defconfig, indicating that we most likely want to either enable CONFIG_REGMAP in that defconfig as well, or disable the phy-exynos-mipi-video driver. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Fixes: 97a3042f7616 ("phy: exynos-mipi-video: Rewrite handling of phy registers") Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat