Skip to content

container_of: add container_of_const() that preserves const-ness of the pointer

Greg Kroah-Hartman lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 12 repliesIn review
  2. v14 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4container_of: add container_of_const() that preserves const-ness of the pointerinclude/linux/container_of.h+13 -010 replies
2/4device.h: move kobj_to_dev() to use container_of_const()include/linux/device.h+1 -201 reply
3/4usb.h: take advantage of container_of_const()include/linux/usb.h+2 -400 replies
4/4firmware_loader: fix up to_fw_sysfs() to preserve constdrivers/base/firmware_loader/sysfs.h+1 -51 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJason GunthorpeAndy ShevchenkoRuss WeightRafael J. WysockiSakari AilusMatthew Wilcox (Oracle)
1/4R-b R-b A-b R-b R-b
2/4R-b A-b
3/4R-b
4/4R-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v2 thread