From: Uwe Kleine-König (The Capable Hub) Date: Tue, 30 Jun 2026 09:24:27 +0000 (+0200) Subject: i2c: Let i2c-core.h include X-Git-Tag: v7.2-rc2~18^2~9 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=6d924c42e0ada2a9938b2a9c0b9bbc406c6282ce;p=thirdparty%2Flinux.git i2c: Let i2c-core.h include The subsystem private header i2c-core.h uses several symbols defined in , e.g. struct i2c_board_info and i2c_lock_bus()). This doesn't pose a problem in practise because all files including "i2c-core.h" also include . To make this more robust add an include statement for making the header self-contained. Acked-by: Danilo Krummrich Reviewed-by: Wolfram Sang Acked-by: Takashi Sakamoto Link: https://patch.msgid.link/46aa85ab3dc4e63bfb5bd8ff1fd212a3d0e31f58.1782808461.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König (The Capable Hub) --- diff --git a/drivers/i2c/i2c-core.h b/drivers/i2c/i2c-core.h index 4797ba88331c..c519da536647 100644 --- a/drivers/i2c/i2c-core.h +++ b/drivers/i2c/i2c-core.h @@ -3,6 +3,7 @@ * i2c-core.h - interfaces internal to the I2C framework */ +#include #include #include