From: "Jan Beulich" Subject: Re: [PATCH 3/3] x86/HPET: cache MSI message last written Date: Fri, 19 Oct 2012 10:40:11 +0100 Message-ID: <50813C1B02000078000A289E@nat28.tlf.novell.com> References: <5081241402000078000A2837@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Keir Fraser Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 19.10.12 at 11:32, Keir Fraser wrote: > On 19/10/2012 08:57, "Jan Beulich" wrote: > >>>> That wouldn't be correct: The function _is_ unused (and there's >>>> no issue if it was used afaik), and the __used__ attribute ought >>>> to tell the compiler to keep the function around despite not >>>> having (visible to it) callers. >>> >>> Perhaps our __attribute_used__ definition should change, then? >> >> I don't think so - this has its own value as is. We may want to add >> a Linux-like __maybe_unused, though. > > Could you do that, and add comments to the definitions of __attribute_used__ > and __maybe_unused, describing exactly what they are to be used for? Sure, will do. Jan