From 7c7db3d1ff954d82e71c69f5f9241217d4ae109b Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Wed, 13 Feb 2019 18:40:12 +0800 Subject: [PATCH] gpio: drop broken to_gpio_irq_chip() helper mainline inclusion from mainline-5.0-rc1 commit eee3919c5f2949a8b7b1e9fa239d153be1538656 category: bugfix bugzilla: 5548 CVE: NA --------------------------- Drop the broken to_gpio_irq_chip() container_of() helper, which would break the build for anyone who tries to use it. Specifically, struct gpio_irq_chip only holds a pointer to a struct irq_chip so using container_of() on an irq-chip pointer makes no sense. Fixes: da80ff81a8f5 ("gpio: Move irqchip into struct gpio_irq_chip") Cc: Thierry Reding Cc: Grygorii Strashko Signed-off-by: Johan Hovold Reviewed-by: Bartosz Golaszewski Signed-off-by: Linus Walleij Signed-off-by: Jason Yan Reviewed-by: zhengbin Signed-off-by: Yang Yingliang --- include/linux/gpio/driver.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index a4d5eb37744a..947daa485f48 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -146,11 +146,6 @@ struct gpio_irq_chip { */ unsigned int first; }; - -static inline struct gpio_irq_chip *to_gpio_irq_chip(struct irq_chip *chip) -{ - return container_of(chip, struct gpio_irq_chip, chip); -} #endif /** -- GitLab