public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/4] block: constify some structures of partitions/core.c
@ 2023-04-19 13:22 Thomas Weißschuh
  2023-04-19 13:22 ` [PATCH v2 1/4] block: constify partition prober array Thomas Weißschuh
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Thomas Weißschuh @ 2023-04-19 13:22 UTC (permalink / raw)
  To: Jens Axboe
  Cc: linux-block, linux-kernel, Thomas Weißschuh,
	kernel test robot

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 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: af67688dca57999fd848f051eeea1d375ba546b2
change-id: 20230419-const-partition-a06b9f76b2f3

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


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

end of thread, other threads:[~2023-05-30 17:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-19 13:22 [PATCH v2 0/4] block: constify some structures of partitions/core.c Thomas Weißschuh
2023-04-19 13:22 ` [PATCH v2 1/4] block: constify partition prober array Thomas Weißschuh
2023-04-19 13:22 ` [PATCH v2 2/4] block: constify struct part_type part_type Thomas Weißschuh
2023-04-19 13:22 ` [PATCH v2 3/4] block: constify struct part_attr_group Thomas Weißschuh
2023-04-19 13:22 ` [PATCH v2 4/4] block: constify the whole_disk device_attribute Thomas Weißschuh
2023-05-30 16:52 ` [PATCH v2 0/4] block: constify some structures of partitions/core.c Thomas Weißschuh
2023-05-30 17:02   ` Jens Axboe

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