Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp513018ybi; Wed, 3 Jul 2019 00:15:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHazn2m7Sj6fwIl5/MbvlK256VvpjtFeW4RfjsVRnoDm8Wg6ngkHQXv9FhfVFBpqAe9JRv X-Received: by 2002:a17:90a:342c:: with SMTP id o41mr10883048pjb.1.1562138112849; Wed, 03 Jul 2019 00:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562138112; cv=none; d=google.com; s=arc-20160816; b=eEnFJL1plkXS/TvkJvTAyqmOA8jMakbpB+1BEB3/HKrI9TJGbicQFKBQHc0iMF6exm 2C1Z6Daciu0ZOu4Eqz1I7Y0kBLJXpEhEZ5YgCB6pMsnISjS2mbOFx2GBnhM3LKa2Thxb 9UsRtrkkumFxJY1i+UT9tK7XSGx7F3zCWiGt0hT7+q17oK3JHnw2ZVZO6dELOX1p+a8i JZxTNrGVm2PvfrRog5cejwMchu9SyK9IzbzdfVzARXoHr/t1U+LoKwFv3+N60ZslPgyO 400pICAPhKEu5y/aAbtvlkdFeWH4jupJBL5wTJwjtMHXQP7vrC1jg3AUOAxxLAjZyZVQ soIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=oNzMSmaWLx00il8JQPTjgh6sfAflPGpRegLNDDXyJJ0=; b=ayack3+8AI0S7/D/PbV5qlNdsedw2YjWJdJHOUerm/X/urM13r1/EvyKeth9JOCU8w y4TvR052KhftYOGObzC2rzkfm42QN8XPFR6pVD/lQW2LoUwPTWjSwRz28DQHJjYBsLdu nHcCBziuHj5aKDf1kTOPFKQCZ2RA1RrphonVz7awO6qr3G/2vVg0CyTBeDnjfvffm3rk Popdn9plUWqhnjGflJb8wX/TJQAzCmqxJ2rf+vf/GdWcJG+tqXPZwpf8mcO8W4ir/e8s 5+tAwtNTwFkeOPH9q932tBqSj5sRznjH3xFXyV/NgzfoVNlBjdjtTOVmEBkmxusXvkmI knPA== 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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64si1504469pge.307.2019.07.03.00.14.57; Wed, 03 Jul 2019 00:15:12 -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; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=vmware.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727314AbfGCHOS (ORCPT + 99 others); Wed, 3 Jul 2019 03:14:18 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38776 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727261AbfGCHOP (ORCPT ); Wed, 3 Jul 2019 03:14:15 -0400 Received: by mail-pf1-f194.google.com with SMTP id y15so769892pfn.5 for ; Wed, 03 Jul 2019 00:14:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=oNzMSmaWLx00il8JQPTjgh6sfAflPGpRegLNDDXyJJ0=; b=ZiNslELQW1Xi/9nWDIIa/YrLX0YbpO1YLxeDZEAJs82gmIEzCESa+nOejJ5cO9h36g 1ARSQM1LjMZ4fpHSwh5nbIjdpz3Q8Ai+aTFNCLWjncvSZJE1KB1ReFesz+odO9csJrpZ XgbSfx/MrnHT4pJm10j2WogsBEbeg7mUNiohCoEgEIsOgnBrNJncH4fZKW7AZoeSy6T3 zkK07kX4T+e3U/Y5wv3anBhM81sJ/KV2XR6nvmN+fwzBIcPgaJfeJAVSX5WiPK3LWnwU PLBGPUd23NDjc8Ke/Bc6oQaVYXdGh0Bqj9aDrgyHcLkNGXW6Pn+78yjH8lB29wxnyP4N pqOw== X-Gm-Message-State: APjAAAV39pLgL1nhhZK/Pke0Cnve6H2ezfqmrKPMSbJ80USVZ1vgPLCn hM9NCqOIuIgvnAxH/2R513QtELM0454ibg== X-Received: by 2002:a65:498c:: with SMTP id r12mr34526449pgs.27.1562138054782; Wed, 03 Jul 2019 00:14:14 -0700 (PDT) Received: from sc2-haas01-esx0118.eng.vmware.com ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id j21sm1256593pfh.86.2019.07.03.00.14.13 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 00:14:14 -0700 (PDT) From: Nadav Amit To: Andy Lutomirski , Dave Hansen Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Nadav Amit Subject: [PATCH v2 9/9] x86/mm/tlb: Remove unnecessary uses of the inline keyword Date: Tue, 2 Jul 2019 16:51:51 -0700 Message-Id: <20190702235151.4377-10-namit@vmware.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190702235151.4377-1-namit@vmware.com> References: <20190702235151.4377-1-namit@vmware.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The compiler is smart enough without these hints. Cc: Andy Lutomirski Cc: Peter Zijlstra Suggested-by: Dave Hansen Signed-off-by: Nadav Amit --- arch/x86/mm/tlb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c index 64afe1215495..48a3d4453e50 100644 --- a/arch/x86/mm/tlb.c +++ b/arch/x86/mm/tlb.c @@ -189,7 +189,7 @@ static void sync_current_stack_to_mm(struct mm_struct *mm) } } -static inline unsigned long mm_mangle_tif_spec_ib(struct task_struct *next) +static unsigned long mm_mangle_tif_spec_ib(struct task_struct *next) { unsigned long next_tif = task_thread_info(next)->flags; unsigned long ibpb = (next_tif >> TIF_SPEC_IB) & LAST_USER_MM_IBPB; @@ -753,7 +753,7 @@ static DEFINE_PER_CPU_SHARED_ALIGNED(struct flush_tlb_info, flush_tlb_info); static DEFINE_PER_CPU(unsigned int, flush_tlb_info_idx); #endif -static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm, +static struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned int stride_shift, bool freed_tables, u64 new_tlb_gen) @@ -779,7 +779,7 @@ static inline struct flush_tlb_info *get_flush_tlb_info(struct mm_struct *mm, return info; } -static inline void put_flush_tlb_info(void) +static void put_flush_tlb_info(void) { #ifdef CONFIG_DEBUG_VM /* Complete reentrency prevention checks */ -- 2.17.1