Skip to content

block: constify some structures of partitions/core.c

Thomas Weißschuh linux-block lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20230419-const-partition-a06b9f76b2f3

Versions newest first

  1. v3 Latest4 patches 1 replyApplied
  2. v24 patches 2 repliesSuperseded
  3. v14 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on for-6.5/block
- Link to v2: https://lore.kernel.org/r/[email protected]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4block: constify partition prober arrayblock/partitions/core.c+1 -10 replies
2/4block: constify struct part_type part_typeblock/partitions/core.c include/linux/blkdev.h+2 -20 replies
3/4block: constify struct part_attr_groupblock/partitions/core.c+1 -10 replies
4/4block: constify the whole_disk device_attributeblock/partitions/core.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] block: constify some structures of partitions/core.c

A few structures containing function pointers that could and should be const are not. Change that.

---
Changes in v3:
- Rebase on for-6.5/block
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Use correct syntax for const array of function pointers.
Reported by LKP bot.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Thomas Weißschuh (4):
block: constify partition prober array
block: constify struct part_type part_type
block: constify struct part_attr_group
block: constify the whole_disk device_attribute

 block/partitions/core.c | 8 ++++----
 include/linux/blkdev.h  | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

---
base-commit: 403b6fb8dac1e9407c04652cedd92285c5ae9aa5
change-id: 20230419-const-partition-a06b9f76b2f3

Best regards,

Signature · 1 line
Thomas Weißschuh <[email protected]>