projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdb37f7
)
block: constify struct part_attr_group
author
Thomas Weißschuh
<linux@weissschuh.net>
Tue, 30 May 2023 17:09:59 +0000
(19:09 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 30 May 2023 17:12:43 +0000
(11:12 -0600)
The struct is never modified so it can be const.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link:
https://lore.kernel.org/r/20230419-const-partition-v3-3-4e14e48be367@weissschuh.net
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partitions/core.c
patch
|
blob
|
history
diff --git
a/block/partitions/core.c
b/block/partitions/core.c
index 2bc21063edefcf15327a595b3ea790db5e438a65..d5f5633bf72577f769ea6e99f2981111fd4602d1 100644
(file)
--- a/
block/partitions/core.c
+++ b/
block/partitions/core.c
@@
-228,7
+228,7
@@
static struct attribute *part_attrs[] = {
NULL
};
-static struct attribute_group part_attr_group = {
+static
const
struct attribute_group part_attr_group = {
.attrs = part_attrs,
};