Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2841214imm; Sun, 5 Aug 2018 13:36:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdgG53SxSMbHkt17NcTMWkhcuWL+Yd8/1xBwesMF2HrU4xgESdnzHMace/U5TtH3lQqRpwY X-Received: by 2002:a62:c60e:: with SMTP id m14-v6mr14237492pfg.40.1533501408397; Sun, 05 Aug 2018 13:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533501408; cv=none; d=google.com; s=arc-20160816; b=p1kHEMtoIxXoKgRg6LdxKzdjZ8HriSZtAXVzFNU9f8fiuapq+LVQq61R/APmwvluqs mt/BhcowiJqyxPjoab9OdYl7kgIRGFQXykISaHD7ByXBi/B9P7oWnCVWkkvtkVJl3JBA ZmuPcN7rSPcDIYD5Xd6NFo6OLPQkgM1V18mcoseMjJMs3ifratIpKFOIc3YvoAfG6mai BFcyvcErVirjNjVSnhx1g8hDMhwL7H8Ly0wQD9IgadF4s+20Ytoa10Jcu8QLPJFtCW7B gwHhMqT53S3OyisntLvGOhmJRD6HRX6M4PUQsS4sJ+frSyDdKlpwMUyy/SXC5bymdsNu wQbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=bHEuHyGI2MnV+WpZZm92MZs6Vw2YUei17aUuLoT1wN4=; b=FtMMBr6CXutwx4WLEqzSCy8MRjZSdiW0yu2g+FdikJ69uYrCSaaDuzRy5pCLLsr99q psNkl50Z7g0F8AINEZsueTN6qkB6haArpLCXo8gKzheaq0H/MnealdEE/IrNnALGANlx VhEHb1ad2j3yedURU0Y26Yi9mY80fpEWuPXAbzEp8JZQLMNoV9JDnuP3Qxw67xe5cEcI tjMtGmHdRjroqKP+sNlG05ZDBdUGXW5+rvXOXSVltLlybVuC/zK/JzbD788i4mhRC9ns LTlguCr6MI+YIxlB0wYscQ+SxrrCc3oA+wVxkc+uU7IeJ0z6352JvBuImLeCiR/HiT5M u5SQ== 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 l190-v6si10973225pgd.626.2018.08.05.13.36.33; Sun, 05 Aug 2018 13:36:48 -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 S1728467AbeHEWj4 (ORCPT + 99 others); Sun, 5 Aug 2018 18:39:56 -0400 Received: from terminus.zytor.com ([198.137.202.136]:52363 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726769AbeHEWjz (ORCPT ); Sun, 5 Aug 2018 18:39:55 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id w75KXp78590855 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 5 Aug 2018 13:33:51 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w75KXnlp590852; Sun, 5 Aug 2018 13:33:49 -0700 Date: Sun, 5 Aug 2018 13:33:49 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Nick Desaulniers Message-ID: Cc: mingo@kernel.org, jdelvare@suse.de, ndesaulniers@google.com, hpa@zytor.com, tglx@linutronix.de, david.laight@aculab.com, linux-kernel@vger.kernel.org Reply-To: hpa@zytor.com, tglx@linutronix.de, david.laight@aculab.com, linux-kernel@vger.kernel.org, ndesaulniers@google.com, jdelvare@suse.de, mingo@kernel.org In-Reply-To: <20180803170550.164688-1-ndesaulniers@google.com> References: <20180803170550.164688-1-ndesaulniers@google.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/irqflags: Provide a declaration for native_save_fl Git-Commit-ID: 208cbb32558907f68b3b2a081ca2337ac3744794 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 208cbb32558907f68b3b2a081ca2337ac3744794 Gitweb: https://git.kernel.org/tip/208cbb32558907f68b3b2a081ca2337ac3744794 Author: Nick Desaulniers AuthorDate: Fri, 3 Aug 2018 10:05:50 -0700 Committer: Thomas Gleixner CommitDate: Sun, 5 Aug 2018 22:30:37 +0200 x86/irqflags: Provide a declaration for native_save_fl 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 --- arch/x86/include/asm/irqflags.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index c4fc17220df9..c14f2a74b2be 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -13,6 +13,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;