[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2023070342-human-spill-a62c@gregkh>
Date: Mon, 3 Jul 2023 15:05:28 +0200
From: Greg KH <gregkh@...uxfoundation.org>
To: Eric DeVolder <eric.devolder@...cle.com>
Cc: linux-kernel@...r.kernel.org, david@...hat.com, osalvador@...e.de,
corbet@....net, tglx@...utronix.de, mingo@...hat.com, bp@...en8.de,
dave.hansen@...ux.intel.com, x86@...nel.org, bhe@...hat.com,
ebiederm@...ssion.com, kexec@...ts.infradead.org, hpa@...or.com,
rafael@...nel.org, vgoyal@...hat.com, dyoung@...hat.com,
lf32.dev@...il.com, akpm@...ux-foundation.org,
naveen.n.rao@...ux.vnet.ibm.com, zohar@...ux.ibm.com,
bhelgaas@...gle.com, vbabka@...e.cz, tiwai@...e.de,
seanjc@...gle.com, linux@...ssschuh.net, vschneid@...hat.com,
linux-mm@...ck.org, linux-doc@...r.kernel.org,
sourabhjain@...ux.ibm.com, konrad.wilk@...cle.com,
boris.ostrovsky@...cle.com
Subject: Re: [PATCH v25 01/10] drivers/base: refactor cpu.c to use
.is_visible()
On Thu, Jun 29, 2023 at 03:21:10PM -0400, Eric DeVolder wrote:
> - the function body of the callback functions are now wrapped with
> IS_ENABLED(); as the callback function must exist now that the
> attribute is always compiled-in (though not necessarily visible).
Why do you need to do this last thing? Is it a code savings goal? Or
something else? The file will not be present in the system if the
option is not enabled, so it should be safe to not do this unless you
feel it's necessary for some reason?
Not doing this would make the diff easier to read :)
thanks,
greg k-h
Powered by blists - more mailing lists