Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29804rwd; Wed, 14 Jun 2023 11:44:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4KRgwr8KNYn/zV/L8tJMS+uC6XZOkhsLhOOlZUCTfV+BlPcCGC4UU1QY9vcwzlmL5w+btc X-Received: by 2002:a17:90b:4f82:b0:253:38bf:9757 with SMTP id qe2-20020a17090b4f8200b0025338bf9757mr1949261pjb.43.1686768275270; Wed, 14 Jun 2023 11:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686768275; cv=none; d=google.com; s=arc-20160816; b=oAQoM3G2xR597wD8hIFMA13Np5AHFFD3BfsjmI6xeyP3p0mRfRcdulvTlKXmDCTsuu o/Q1evVDNdnfdrvYO28+x3gn6htO0eBjILzXyEGj0W6tdlCbo5xrrMjrorcoAF5394mz a4JMDoduJer7Z2KSj28l/PpzcX5pnqB1TmZbd/EIF93UFMvAN9DR2oUmHvZHzHN2hHNz vwEw4P9w+WbOt8dnDbqsHC3tQgrCtMsbNrS+azv9l1h5GXcIhM7QkgJJ2RdTUyFgcDV6 BGz0n+vuVE48Rrhf6Qzofeqa8EoP6bf8NxERLO97KJTd12ewbyNsZ/RijENLXB7DzTlS y1+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=v47fa20yL03uNpkdZke6SvoeqVPTIkZjRylvq25/Bwg=; b=th71FqRB2K+U9H61z1HQKaHhESfQG4VD76LHb7SsBDGmtU0TNosx+Es4ITW8Sevj4m co0PFL3BKY2Mr5pRP4TQKCv+7yL3Wlnv6Q5xrF1BbEN73IncyzJjKOVIx06dU2ZowzAG 8eTqEcCNPcQlV5H6aAdQb4v2sma260c+9IgG9FJcfKJ0hJtSwqqQajwXJcbZpiqkewf1 KPQI3INKYQMagrY83xqJidpPKIRleadhaDDNRP/QH2dd68WRz9x534TFi0XjzgZAjt1U qrdT6ZrvNj6OJl8jb036rVO/lPDCf4xGfD/sLtCnMtqn5RuU/QEiPXvoMWagiUDN4M8j LVgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OB1EbLJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb14-20020a17090b4a4e00b0024bc03cfa95si8489636pjb.156.2023.06.14.11.44.23; Wed, 14 Jun 2023 11:44:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OB1EbLJZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234920AbjFNSnZ (ORCPT + 99 others); Wed, 14 Jun 2023 14:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233196AbjFNSnN (ORCPT ); Wed, 14 Jun 2023 14:43:13 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCFD3212B for ; Wed, 14 Jun 2023 11:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686768192; x=1718304192; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8BZWivFgrNDBQ4NBD9/UgphMadDCQU4QXbeHYdRwhkc=; b=OB1EbLJZ+81YzHmAJ/1tvd+P2YIQJpzZSKfFfmk/M4ayfo6UNdHQ/yia IqzuolqjFuhL+w4k+9xCyXuuCCPRhQe9/BziGZPI2tUid3+WQjMVdmb68 YGo7Ho0tubzJwUh+PpC2lqtg0O/zbsJJy1EMnMySyuGZVf9Eki1YmZch6 vj5Z0PukaFbZpu1ZT99LjZNEoO9AdNrp/1IQtY3nkOgxgwfh2eywupTQd Ndou7/MDfqeMrpn5o6V5/xyjqJApc7oxJN7GNThY3xSePmdC38gUBNKrT OlqXO0yUGLckMDIod1kpDcaCVEflfEOct8hVIVaV0gS3xWJW2D+IwCC75 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="338337625" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="338337625" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 11:42:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10741"; a="712164261" X-IronPort-AV: E=Sophos;i="6.00,243,1681196400"; d="scan'208";a="712164261" Received: from pompl-mobl.ger.corp.intel.com (HELO box.shutemov.name) ([10.252.62.32]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 11:42:18 -0700 Received: by box.shutemov.name (Postfix, from userid 1000) id 44FE9109F66; Wed, 14 Jun 2023 21:42:15 +0300 (+03) Date: Wed, 14 Jun 2023 21:42:15 +0300 From: "Kirill A . Shutemov" To: Borislav Petkov Cc: X86 ML , LKML Subject: Re: [PATCH] x86/mm: Remove unused current_untag_mask() Message-ID: <20230614184215.otffkpay2pjhr6n6@box.shutemov.name> References: <20230614174148.5439-1-bp@alien8.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230614174148.5439-1-bp@alien8.de> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 14, 2023 at 07:41:48PM +0200, Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > > e0bddc19ba95 ("x86/mm: Reduce untagged_addr() overhead for systems without LAM") > > removed its only usage site so drop it. > > Move the tlbstate_untag_mask up in the header and drop the ugly > ifdeffery as the unused declaration should be properly discarded. > > Signed-off-by: Borislav Petkov (AMD) Acked-by: Kirill A. Shutemov -- Kiryl Shutsemau / Kirill A. Shutemov