public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iio: adc: ti-ads7138: explicitly include <linux/slab.h>
@ 2026-04-24  8:18 Giorgi Tchankvetadze
  2026-04-24  9:07 ` Andy Shevchenko
  0 siblings, 1 reply; 7+ messages in thread
From: Giorgi Tchankvetadze @ 2026-04-24  8:18 UTC (permalink / raw)
  To: antoniu.miclaus, lars, Michael.Hennerich, jic23
  Cc: dlechner, nuno.sa, andy, linux-iio, linux-kernel,
	Giorgi Tchankvetadze

ti-ads7138.c uses kmalloc() and kfree(), which are provided by
linux/slab.h, but does not include that header directly.
The driver currently gets these declarations through linux/i2c.h.
Include linux/slab.h explicitly instead of relying on the transitive
include.

Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
---
 drivers/iio/adc/ti-ads7138.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/iio/adc/ti-ads7138.c b/drivers/iio/adc/ti-ads7138.c
index ee5c1b8e3a8e..ba1e9af92c6e 100644
--- a/drivers/iio/adc/ti-ads7138.c
+++ b/drivers/iio/adc/ti-ads7138.c
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/pm_runtime.h>
 #include <linux/regulator/consumer.h>
+#include <linux/slab.h>
 #include <linux/unaligned.h>
 
 #include <linux/iio/events.h>
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-28 18:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-24  8:18 [PATCH] iio: adc: ti-ads7138: explicitly include <linux/slab.h> Giorgi Tchankvetadze
2026-04-24  9:07 ` Andy Shevchenko
2026-04-24 10:36   ` Jonathan Cameron
2026-04-24 11:33     ` Andy Shevchenko
2026-04-24 16:57       ` Jonathan Cameron
2026-04-27 11:29         ` Giorgi Tchankvetadze
2026-04-28 18:14           ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox