public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] of: Use __free() based cleanups
@ 2024-04-04 14:15 Rob Herring
  2024-04-04 14:15 ` [PATCH 1/3] of: Add a helper to free property struct Rob Herring
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Rob Herring @ 2024-04-04 14:15 UTC (permalink / raw)
  To: Saravana Kannan; +Cc: Jonathan Cameron, devicetree, linux-kernel

This small series converts the DT code to use __free() based cleanups 
for kfree() and of_node_put(). Using __free() simplifies function exit 
handling. Initial support for struct device_node was added in commit 
9448e55d032d ("of: Add cleanup.h based auto release via 
__free(device_node) markings").

Signed-off-by: Rob Herring <robh@kernel.org>
---
Rob Herring (3):
      of: Add a helper to free property struct
      of: Use scope based kfree() cleanups
      of: Use scope based of_node_put() cleanups

 drivers/of/address.c    | 60 ++++++++++++++++---------------------------------
 drivers/of/base.c       | 34 +++++++---------------------
 drivers/of/dynamic.c    | 37 +++++++++++++-----------------
 drivers/of/of_private.h |  1 +
 drivers/of/overlay.c    | 11 +++------
 drivers/of/property.c   | 22 ++++++------------
 drivers/of/resolver.c   | 35 +++++++++++------------------
 drivers/of/unittest.c   | 12 +++-------
 8 files changed, 70 insertions(+), 142 deletions(-)
---
base-commit: 4cece764965020c22cff7665b18a012006359095
change-id: 20240404-dt-cleanup-free-6d5334b4b368

Best regards,
-- 
Rob Herring <robh@kernel.org>


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

end of thread, other threads:[~2024-04-06 17:17 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-04 14:15 [PATCH 0/3] of: Use __free() based cleanups Rob Herring
2024-04-04 14:15 ` [PATCH 1/3] of: Add a helper to free property struct Rob Herring
2024-04-04 23:09   ` Saravana Kannan
2024-04-06 16:47   ` Jonathan Cameron
2024-04-04 14:15 ` [PATCH 2/3] of: Use scope based kfree() cleanups Rob Herring
2024-04-04 23:15   ` Saravana Kannan
2024-04-05 12:43     ` Rob Herring
2024-04-05 19:12       ` Saravana Kannan
2024-04-06 16:51   ` Jonathan Cameron
2024-04-04 14:15 ` [PATCH 3/3] of: Use scope based of_node_put() cleanups Rob Herring
2024-04-04 23:21   ` Saravana Kannan
2024-04-05 13:00     ` Rob Herring
2024-04-05 19:12       ` Saravana Kannan
2024-04-06 17:17   ` Jonathan Cameron

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