Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4806243ooa; Tue, 14 Aug 2018 10:48:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPz6rWHytmf/r+bKfPkcxzaW1TqAzt4olT5BFvBAnKhuMHcXMqIuW8XfEZPI7kcqR4PwBrG6 X-Received: by 2002:a62:5dd7:: with SMTP id n84-v6mr24417273pfj.68.1534268917321; Tue, 14 Aug 2018 10:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534268917; cv=none; d=google.com; s=arc-20160816; b=VD5Jg6yDL7q1zLOF5NTHWUSa5ROFIUqCP3+sKJo1PwabpJAYe9C/0ow0HboFJw3uo9 gEI3RFhmBfTJpWlBz31irSNTolBsqDCg8vS776no/VGv2azJqC0Nb2DfjDvpxLZ5nhgN fWIiWaEzTTdbLFZBKWsaoYzTO1yT9Fh2XM6jjvGGfNQF/KceBn9YONPJxwqxNBnF4FZB eg8hkj0YJIP98lzyJ25iIWEa4EObhsaG47yT3erYgcY4YTV9o+KAjbV3wkrfLI1KC79w Fe0ExhY53D9TTjf4D+vmfbZW15596GaZUhRRvgrZHY9RqWnD/DepL/t1tpjs0JtsB7t4 Cgug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ked/q/FVy7zqku1wgc1kemH3MomJOrY/X761Y3zHiqg=; b=t5swsgU/Z7/Q52pMkT9QUuI+1mdNTQX0CKM++Ka+wbtECU82xT9q1yMWs5FZe31jX/ 66qOMojpdm+/XfnVkEymKnt/mHCUyP3wqxti6gD38P7wZZ4SMDDtd5d3bj/Edu6YrzL1 43xTbFgwQJNFIee6b4ENjk9n37oLL+wiTcLXIi/5rTAwRLg7DVm8S7wdeKn6d9dr+GM/ 281it9fxdVoXTiGu3BKaIo85M6nFclwSdwGjF0iBJsI8T7WpnSw1VEWg9Xlqn0A/RKcq BqXiL6CwMQX8RWxAH5wf4dK7Zw9ucWFPi+rk2K+bVvJxMoak5LRadNhZIUNM+3Sm2n+g wTRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6-v6si17308842plo.264.2018.08.14.10.48.22; Tue, 14 Aug 2018 10:48:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391100AbeHNUes (ORCPT + 99 others); Tue, 14 Aug 2018 16:34:48 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60466 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390706AbeHNUes (ORCPT ); Tue, 14 Aug 2018 16:34:48 -0400 Received: from localhost (unknown [194.244.16.108]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 7B360D16; Tue, 14 Aug 2018 17:46:35 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, David Laight , Jean Delvare , Nick Desaulniers , Thomas Gleixner , hpa@zytor.com, jgross@suse.com, kstewart@linuxfoundation.org, boris.ostrovsky@oracle.com, astrachan@google.com, mka@chromium.org, arnd@arndb.de, tstellar@redhat.com, sedat.dilek@gmail.com, David.Laight@aculab.com Subject: [PATCH 4.4 20/43] x86/irqflags: Provide a declaration for native_save_fl Date: Tue, 14 Aug 2018 19:17:56 +0200 Message-Id: <20180814171518.462477079@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180814171517.014285600@linuxfoundation.org> References: <20180814171517.014285600@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Nick Desaulniers commit 208cbb32558907f68b3b2a081ca2337ac3744794 upstream. It was reported that the commit d0a8d9378d16 is causing users of gcc < 4.9 to observe -Werror=missing-prototypes errors. Indeed, it seems that: extern inline unsigned long native_save_fl(void) { return 0; } compiled with -Werror=missing-prototypes produces this warning in gcc < 4.9, but not gcc >= 4.9. Fixes: d0a8d9378d16 ("x86/paravirt: Make native_save_fl() extern inline"). Reported-by: David Laight Reported-by: Jean Delvare Signed-off-by: Nick Desaulniers Signed-off-by: Thomas Gleixner Cc: hpa@zytor.com Cc: jgross@suse.com Cc: kstewart@linuxfoundation.org Cc: gregkh@linuxfoundation.org Cc: boris.ostrovsky@oracle.com Cc: astrachan@google.com Cc: mka@chromium.org Cc: arnd@arndb.de Cc: tstellar@redhat.com Cc: sedat.dilek@gmail.com Cc: David.Laight@aculab.com Cc: stable@vger.kernel.org Link: https://lkml.kernel.org/r/20180803170550.164688-1-ndesaulniers@google.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/irqflags.h | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -8,6 +8,8 @@ * Interrupt control: */ +/* Declaration required for gcc < 4.9 to prevent -Werror=missing-prototypes */ +extern inline unsigned long native_save_fl(void); extern inline unsigned long native_save_fl(void) { unsigned long flags;