|
@@ -1472,7 +1472,8 @@ static ssize_t module_sect_show(struct module_attribute *mattr,
|
|
{
|
|
{
|
|
struct module_sect_attr *sattr =
|
|
struct module_sect_attr *sattr =
|
|
container_of(mattr, struct module_sect_attr, mattr);
|
|
container_of(mattr, struct module_sect_attr, mattr);
|
|
- return sprintf(buf, "0x%pK\n", (void *)sattr->address);
|
|
|
|
|
|
+ return sprintf(buf, "0x%px\n", kptr_restrict < 2 ?
|
|
|
|
+ (void *)sattr->address : NULL);
|
|
}
|
|
}
|
|
|
|
|
|
static void free_sect_attrs(struct module_sect_attrs *sect_attrs)
|
|
static void free_sect_attrs(struct module_sect_attrs *sect_attrs)
|