aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2019-12-24 13:06:59 +0100
committerBartosz Golaszewski <[email protected]>2020-01-07 12:03:28 +0100
commit06863620edfeadbe9e0ea5eb01dd94ce07f37549 (patch)
treef480b288a7b532bc0ddc30a49bc094f232f0abc9 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h
parentd90f36851d6595136b461773846b76e0c45e3e0c (diff)
gpiolib: convert the type of hwnum to unsigned int in gpiochip_get_desc()
gpiochip_get_desc() takes a u16 hwnum, but it turns out most users don't respect that and usually pass an unsigned int. Since implicit casting to a smaller type is dangerous - let's change the type of hwnum to unsigned int in gpiochip_get_desc() and in gpiochip_request_own_desc() where the size of hwnum is not respected either and who's a user of the former. This is safe as we then check the hwnum against the number of lines before proceeding in gpiochip_get_desc(). Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Linus Walleij <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions