From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753092AbcL2QVS (ORCPT ); Thu, 29 Dec 2016 11:21:18 -0500 Received: from mail.skyhub.de ([78.46.96.112]:54673 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752442AbcL2QVR (ORCPT ); Thu, 29 Dec 2016 11:21:17 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <1483025343-28932-1-git-send-email-augustocaringi@gmail.com> References: <1483025343-28932-1-git-send-email-augustocaringi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [PATCH] x86: mce: Fix build warning when !CONFIG_X86_LOCAL_APIC From: Boris Petkov Date: Thu, 29 Dec 2016 18:21:16 +0200 To: Augusto Mecking Caringi , Tony Luck CC: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On December 29, 2016 5:28:49 PM GMT+02:00, Augusto Mecking Caringi wrote: >The mce_irq_ipi() function is only called inside a #ifdef >CONFIG_X86_LOCAL_APIC block, if this option is disabled gcc gives the >following build warning: > >arch/x86/kernel/cpu/mcheck/mce-inject.c:97:13: warning: ‘mce_irq_ipi’ >defined but not used [-Wunused-function] >static void mce_irq_ipi(void *info) > ^ > >Fix it marking this function as __maybe_unused. See http://lkml.kernel.org/r/20161218083748.GA1034@gmail.com -- Sent from a small device: formatting sux and brevity is inevitable.