Re: [PATCH v16 03/16] cgroup/misc: Export APIs for SGX driver

From: Huang, Kai
Date: Tue Aug 27 2024 - 06:25:31 EST


On Tue, 2024-08-20 at 18:53 -0700, Haitao Huang wrote:
> -static struct misc_cg *parent_misc(struct misc_cg *cgroup)
> +struct misc_cg *misc_cg_root(void)
>  {
> - return cgroup ? css_misc(cgroup->css.parent) : NULL;
> + return &root_cg;
>  }
> +EXPORT_SYMBOL_GPL(misc_cg_root);
>  

This doesn't need to be exported. SGX driver cannot be a module.

I tested building the this series with this export removed and the kernel
could be built successfully.