From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D403C43331 for ; Thu, 26 Mar 2020 21:17:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C8922076A for ; Thu, 26 Mar 2020 21:17:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="phZfmWFA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727722AbgCZVRH (ORCPT ); Thu, 26 Mar 2020 17:17:07 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33702 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727549AbgCZVRG (ORCPT ); Thu, 26 Mar 2020 17:17:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Date:Message-ID:Subject:From:Cc:To:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=SCWjLyc7I/YWXulGl+SIEuQDZfQjFXYx7zuGrKEkjbU=; b=phZfmWFA/vsprYfiKImR734Mw6 0IAturBfTOo8ozkIAFHwZKKc69mg5nfg/+8VKE0WBr/iWv/bq+T8i9KPuCTbV1IJSkedD4kLWp5oT O4KTmTopr+arH/cDkZYDB2CEaFZ9xLmkCW/Myp0P84fy/kTD5734VrXhMh6ZKyzYwH+XIU3uaH59U w48mvHPrVFkQky6et6y7KpaUrM9Wpjc/+nZd1KGHkvfeEnmhNEjIomCyyGiV3MAeaNQ1QgIlVFg83 MCuq3VuWN3P2NFrx3WTZFy0I6b1GrgIFMsH11ifCvSsutB+eAE4zp2rhpApPl52kXtfPlPjZhmlRF DojgjRHw==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jHZs3-00049F-5t; Thu, 26 Mar 2020 21:16:59 +0000 To: LKML , X86 ML , Thomas Gleixner , "H. Peter Anvin" , Borislav Petkov , Ingo Molnar Cc: Zzy Wysm From: Randy Dunlap Subject: [PATCH v2] x86: jump_label.c: move 'inline' keyword placement Message-ID: <796d93d2-e73e-3447-44eb-4f89e1b636d9@infradead.org> Date: Thu, 26 Mar 2020 14:16:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Randy Dunlap Fix gcc warning when -Wextra is used by moving the keyword: ../arch/x86/kernel/jump_label.c:61:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration] static void inline __jump_label_transform(struct jump_entry *entry, ^~~~~~ Reported-by: Zzy Wysm Signed-off-by: Randy Dunlap --- v2: use Reported-by: arch/x86/kernel/jump_label.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-next-20200326.orig/arch/x86/kernel/jump_label.c +++ linux-next-20200326/arch/x86/kernel/jump_label.c @@ -58,7 +58,7 @@ __jump_label_set_jump_code(struct jump_e return code; } -static void inline __jump_label_transform(struct jump_entry *entry, +static inline void __jump_label_transform(struct jump_entry *entry, enum jump_label_type type, int init) {