aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/class.c
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2025-05-20 10:34:37 +0000
committerGreg Kroah-Hartman <[email protected]>2025-07-16 11:56:23 +0000
commit35cff7af7598b9eb143cc0556e5532e2ded3b61a (patch)
treed28ae525e853c38bae3d24c60e96ca9854d8b228 /drivers/platform/x86/intel/pmt/class.c
parentdriver core: auxiliary bus: fix OF node leak (diff)
downloadkernel-35cff7af7598b9eb143cc0556e5532e2ded3b61a.tar.gz
kernel-35cff7af7598b9eb143cc0556e5532e2ded3b61a.zip
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions