params.c (8632987380765dee716d460640aa58d58d52998e) params.c (ee6d3dd4ed48ab24b74bab3c3977b8218518247d)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Helpers for initial module or kernel cmdline parsing
3 Copyright (C) 2001 Rusty Russell.
4
5*/
6#include <linux/kernel.h>
7#include <linux/string.h>
8#include <linux/errno.h>

--- 914 unchanged lines hidden (view full) ---

923
924static const struct sysfs_ops module_sysfs_ops = {
925 .show = module_attr_show,
926 .store = module_attr_store,
927};
928
929static int uevent_filter(struct kset *kset, struct kobject *kobj)
930{
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Helpers for initial module or kernel cmdline parsing
3 Copyright (C) 2001 Rusty Russell.
4
5*/
6#include <linux/kernel.h>
7#include <linux/string.h>
8#include <linux/errno.h>

--- 914 unchanged lines hidden (view full) ---

923
924static const struct sysfs_ops module_sysfs_ops = {
925 .show = module_attr_show,
926 .store = module_attr_store,
927};
928
929static int uevent_filter(struct kset *kset, struct kobject *kobj)
930{
931 struct kobj_type *ktype = get_ktype(kobj);
931 const struct kobj_type *ktype = get_ktype(kobj);
932
933 if (ktype == &module_ktype)
934 return 1;
935 return 0;
936}
937
938static const struct kset_uevent_ops module_uevent_ops = {
939 .filter = uevent_filter,

--- 37 unchanged lines hidden ---
932
933 if (ktype == &module_ktype)
934 return 1;
935 return 0;
936}
937
938static const struct kset_uevent_ops module_uevent_ops = {
939 .filter = uevent_filter,

--- 37 unchanged lines hidden ---