OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/3] nitpick: make simple functions inline
Re: [PATCH 1/3] nitpick: make simple functions inline [message #44614 is a reply to message #44481] Sun, 11 December 2011 18:55 Go to previous message
KOSAKI Motohiro is currently offline  KOSAKI Motohiro
Messages: 26
Registered: May 2008
Junior Member
> -static int notify_on_release(const struct cgroup *cgrp)
> +static inline int notify_on_release(const struct cgroup *cgrp)
> {
> return test_bit(CGRP_NOTIFY_ON_RELEASE,&cgrp->flags);
> }
>
> -static int clone_children(const struct cgroup *cgrp)
> +static inline int clone_children(const struct cgroup *cgrp)
> {
> return test_bit(CGRP_CLONE_CHILDREN,&cgrp->flags);
> }

Can you please tell us which compiler failed automatic inlining?
I suspect gcc is enough sane and we don't need this patch.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [GIT PULL 0/3] perf/core fixes and improvements
Next Topic: [PATCH 0/3] Simple cleanups for cgroups
Goto Forum:
  


Current Time: Fri Sep 12 12:48:49 GMT 2025

Total time taken to generate the page: 0.14349 seconds