Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2338957imm; Sat, 28 Jul 2018 14:57:23 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcdCVrQGMC0x4VDwnk4NwwzLpkuhRDb41OHjXJJ4sncDU+JnIaMVL/fPawCJXmUvJ2HNPrR X-Received: by 2002:a63:b349:: with SMTP id x9-v6mr10893141pgt.337.1532815043768; Sat, 28 Jul 2018 14:57:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532815043; cv=none; d=google.com; s=arc-20160816; b=xJb5KcQeXgtmxeJck1g8hzHK/G4AeU1g7RccT+YFlhYtsEGXsx7gmtrDqsoPSL6plW uuDbTI0n3iZkWSjcI5rmwzwA5UZXNsWzLB4iiE6RIaQwpzctl/fQdRvgKVwqcjLmIu+n F5WEi6BpvVkIVh2ywQWjHLc/Cm2BhpKldDKC+wScm6m4aGhzs16rUro+RiCrkwD92Oqj 9RCP3mgUrEo40Ov71iUs7ezRl2/oh0j36/A6UAfbZKqyM0qHn/KR+DIZJnGGv3qx9TKM 41Mb3Wee9wEf1h5bGSfQY6Q8YcXZuwG+JEeDRs6kQmfoT71XXpJlFLPFtUVIWqkwHopz gRmA== 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:arc-authentication-results; bh=G+MBwoSPgSxX1T9yQJR/RdssL5SAX1reQ9+Vv2v5Dw0=; b=TlJ9IYYrPNhmS96LhcL10aKtNKUq6Cbdj6IUQ9Hl8VmnzmWs7iiTTKgDHb6fGifNdp Lb4R1+AIQy791S4l1Xf9TboeDGKdHx7tQOx8/JXZRcgYFZTbb4ALssC0E6C6QNQohORu 6Gzt+nXyi0afcZtk0z/6Yi6nPAaWt7eoBFo4BzyAiXiXFcACTFoHqwjl9QAPwct5VmU5 C84lksLaQfj2CoTmlUeLQrYPMtWIrVpxo5Jq9Py8XptLjsplyPAZWq/IPc6btYP+IpVt 9MWWMK/uq8zpRIBHeJJffvRmG3JeJPpnxSPXN0cyK+RzUWz6A9J+0p/M6QezyDpVevZm ViCg== 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 b6-v6si1450588pgj.211.2018.07.28.14.56.33; Sat, 28 Jul 2018 14:57:23 -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 S1731507AbeG1XWh (ORCPT + 99 others); Sat, 28 Jul 2018 19:22:37 -0400 Received: from shelob.surriel.com ([96.67.55.147]:44234 "EHLO shelob.surriel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731430AbeG1XWW (ORCPT ); Sat, 28 Jul 2018 19:22:22 -0400 Received: from imladris.surriel.com ([96.67.55.152]) by shelob.surriel.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fjXA0-0000QZ-O7; Sat, 28 Jul 2018 17:54:00 -0400 From: Rik van Riel To: linux-kernel@vger.kernel.org Cc: kernel-team@fb.com, peterz@infradead.org, luto@kernel.org, x86@kernel.org, vkuznets@redhat.com, mingo@kernel.org, efault@gmx.de, dave.hansen@intel.com, will.daecon@arm.com, catalin.marinas@arm.com, benh@kernel.crashing.org, Rik van Riel Subject: [PATCH 05/10] mm,tlb: turn dummy defines into inline functions Date: Sat, 28 Jul 2018 17:53:52 -0400 Message-Id: <20180728215357.3249-6-riel@surriel.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180728215357.3249-1-riel@surriel.com> References: <20180728215357.3249-1-riel@surriel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Turn the dummy tlb_flush_remove_tables* defines into inline functions, in order to get compiler type checking, etc. Suggested-by: Peter Zijlstra Signed-off-by: Rik van Riel --- include/asm-generic/tlb.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h index e811ef7b8350..eb57062d9dd3 100644 --- a/include/asm-generic/tlb.h +++ b/include/asm-generic/tlb.h @@ -309,8 +309,13 @@ static inline void tlb_remove_check_page_size_change(struct mmu_gather *tlb, * pointing to about-to-be-freed page table memory. */ #ifndef HAVE_TLB_FLUSH_REMOVE_TABLES -#define tlb_flush_remove_tables(mm) do {} while (0) -#define tlb_flush_remove_tables_local(mm) do {} while (0) +static inline void tlb_flush_remove_tables(struct mm_struct *mm) +{ +} + +static inline void tlb_flush_remove_tables_local(struct mm_struct *mm) +{ +} #endif #endif /* _ASM_GENERIC__TLB_H */ -- 2.14.4