diff options
| author | Greg Kroah-Hartman <[email protected]> | 2022-11-21 10:46:47 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-11-22 17:34:46 +0100 |
| commit | c45a88bb3f6cdaeb29d8ee98463610ad815721ab (patch) | |
| tree | eae3d0f3f60257069b777a944ba2b5f879949d8f /kernel | |
| parent | 542aa24646ca20ccedb70829a95254ce602cdcbd (diff) | |
kobject: kset_uevent_ops: make filter() callback take a const *
The filter() callback in struct kset_uevent_ops does not modify the
kobject passed into it, so make the pointer const to enforce this
restriction. When doing so, fix up all existing filter() callbacks to
have the correct signature to preserve the build.
Cc: Sumit Semwal <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Rafael J. Wysocki <[email protected]>
Acked-by: Christian König <[email protected]> for the changes to
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index 5b92310425c5..d2237209ceda 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -926,7 +926,7 @@ static const struct sysfs_ops module_sysfs_ops = { .store = module_attr_store, }; -static int uevent_filter(struct kobject *kobj) +static int uevent_filter(const struct kobject *kobj) { const struct kobj_type *ktype = get_ktype(kobj); |