Files
linux-stable-mirror/include/linux
Sakari Ailus 35cff7af75 container_of: Document container_of() is not to be used in new code
There is a warning in the kerneldoc documentation of container_of() that
constness of its ptr argument is lost. While this is a valid suggestion
container_of_const() should be used instead, the vast majority of new
code still uses container_of():

$ git diff v6.13 v6.14|grep container_of\(|wc -l
646
$ git diff v6.13 v6.14|grep container_of_const|wc -l
9

Make an explicit recommendation to use container_of_const().

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Link: https://lore.kernel.org/r/20250520103437.468691-1-sakari.ailus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-16 13:56:23 +02:00
..
2025-05-19 08:17:08 -07:00
2025-05-21 13:41:03 +02:00
2025-05-21 13:39:45 +02:00
2025-05-20 05:34:27 +02:00
2025-05-22 11:07:05 +02:00
2025-06-17 14:29:19 +02:00
2025-06-11 11:57:14 -07:00
2025-06-04 09:51:10 +02:00
2025-05-21 16:46:37 +02:00