From mboxrd@z Thu Jan 1 00:00:00 1970 From: der.herr@hofr.at (Nicholas Mc Guire) Date: Sun, 13 Mar 2016 08:40:37 +0000 Subject: inline keyword In-Reply-To: <20160311184727.GB24341@kroah.com> References: <20160311184727.GB24341@kroah.com> Message-ID: <20160313084037.GA5652@osadl.at> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Fri, Mar 11, 2016 at 10:47:27AM -0800, Greg KH wrote: > On Fri, Mar 11, 2016 at 01:39:53PM -0500, Wenda Ni wrote: > > Hi all, > > > > For a function that is defined static but without an explicit "inline" keyword, > > is there a possibility that compiler will optimize it to be a static inline > > function? > > Yes there is. > see -finline-small-functions/-finline-functions-called-once in the gcc manual, which are enabled by -O2 but can be controlled via -finline-limit and -fkeep-inline-functions. thx! hofrat