mbox series

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

Message ID 20230419-const-partition-v3-0-4e14e48be367@weissschuh.net (mailing list archive)
Headers show
Series block: constify some structures of partitions/core.c | expand

Message

Thomas Weißschuh May 30, 2023, 5:09 p.m. UTC
A few structures containing function pointers that could and should be
const are not. Change that.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Changes in v3:
- Rebase on for-6.5/block
- Link to v2: https://lore.kernel.org/r/20230419-const-partition-v2-0-817b58f85cd1@weissschuh.net

Changes in v2:
- Use correct syntax for const array of function pointers.
  Reported by LKP bot.
- Link to v1: https://lore.kernel.org/r/20230419-const-partition-v1-0-2d66f2d83873@weissschuh.net

---
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,

Comments

Jens Axboe May 30, 2023, 5:13 p.m. UTC | #1
On Tue, 30 May 2023 19:09:56 +0200, Thomas Weißschuh wrote:
> A few structures containing function pointers that could and should be
> const are not. Change that.
> 
> 

Applied, thanks!

[1/4] block: constify partition prober array
      commit: 539050f92ea7666bca17c2c380d8071d2f93dcde
[2/4] block: constify struct part_type part_type
      commit: cdb37f73cf05631c4f7401f2cd99878733c0c3d9
[3/4] block: constify struct part_attr_group
      commit: 0bd478005cfc7f50ccb769744d952e9687ee75b4
[4/4] block: constify the whole_disk device_attribute
      commit: a378f6a40fac4a2f1812adea7017613d2bd5dab6

Best regards,