Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp119908pxb; Tue, 7 Sep 2021 19:31:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTFw+/Tm5u4ipKypiL9JIg0hLelFAtxw6tYJ5IRxyO5eqsZ7Jqs4nl/smTIdPGFx51XenJ X-Received: by 2002:a92:194c:: with SMTP id e12mr1090271ilm.3.1631068263611; Tue, 07 Sep 2021 19:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631068263; cv=none; d=google.com; s=arc-20160816; b=dM+GDcl2qpIa6IMHukXzlcWWLS9T6X1xNYut5+Rjkm4gLcy2Qa97U02XmGoOBIWjY0 6JEsNGpRBTPWFRg6HWu6piGFbcJeGLy4JbCYlqG+LxR3tBsg+ivGL0fP8UbKuWPKTeYp a3v7FpZ1ap9NeA/RHUtwBV8EFyNpgRrK0fEcsbsoql8+ITkr0k1jOyMnMM5FCMPrYBbw TDLQu+NLVFONgwWl0ML8JHdjahZHa5v6YxEA/0tCRA2FjWpQcBUALOGHNNsSA/D5RL/F OhPwwj9IFytH6xB7NtmzNmHDmTW1Pz9ajhHXGyCxjiP9n4sFuYIFdkWUpFsnOGrqOd1d i1mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=JhJZWLPxZetxNlG1RFUDUGFWSZ/6Xdfv1We2iCjoEPs=; b=O5NTmREvYnoQVUSMoKPtmiATQm0ESarvpE+6HzEAP+1j0bA4ArkU7gXcD+LDEJM0x2 /khdRBqFJlkU6STzmB0Xw8+ORP8TjCcX/urWgC1Kpk/sQ2vvp/2WKlcpXXRQ7Y4QDd9F b9yXJIr6grQpZilVjIxmAeWfakJAiWVYEpSkYopDRnbyjmDH5Fqv58AK3tIEzwedH9f9 nN97pKo1Uhpgc+PSW83dMg1PCWzluidGIGMU0mAcvKyftELsKIInSfPagOfFPwgbT+2U miRkkC1bVcts/i9SLREGDaHotpRB2WvrJ2BGC2zEXmHmojGoVeKgo71N8XbB+6tKm/DE RIZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tHnRDv6N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b60si754834jai.29.2021.09.07.19.30.51; Tue, 07 Sep 2021 19:31:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tHnRDv6N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347297AbhIHCaZ (ORCPT + 99 others); Tue, 7 Sep 2021 22:30:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:37378 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345608AbhIHCaX (ORCPT ); Tue, 7 Sep 2021 22:30:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0847160F0F; Wed, 8 Sep 2021 02:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631068156; bh=JhJZWLPxZetxNlG1RFUDUGFWSZ/6Xdfv1We2iCjoEPs=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=tHnRDv6NKvSzxm68VtH9Voyq2o19bE10bE+/25F1f1z3QakgpoxbzAYdVUJs24lHF aD9F23f3S61h/9sYvq/9QvzBba/8iDCBfGBECWyjgydxs45lrd7VHyRaWQERR8G5Mx K9CRYuG/wmnWpFU09vPOybEKVwHwCaEKnz9ctd4hAFMB/Jy22vXvuBCFxAAVDfnEIy IR9KCTOrIEiIy/SFU1Y7uUCiNd5iYRdjamcFiLGSehH7fYAkItxC694R3h1EQ4FtW9 WwFwfsOyLVZ2vkHyVnFvRKaCMHxSsSpKm1MPUEDs946vDemk/5zxfkhLowthi83R2y u3JG7GjLCw6Tg== Message-ID: <97928561eb5b4a7fd677eaba3d376c83352571a2.camel@kernel.org> Subject: Re: [PATCH v4 5/6] x86/sgx: Hook sgx_memory_failure() into mainline code From: Jarkko Sakkinen To: "Luck, Tony" , Sean Christopherson , "Hansen, Dave" Cc: "Zhang, Cathy" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" Date: Wed, 08 Sep 2021 05:29:13 +0300 In-Reply-To: References: <20210728204653.1509010-1-tony.luck@intel.com> <20210827195543.1667168-1-tony.luck@intel.com> <20210827195543.1667168-6-tony.luck@intel.com> <49fccddbbf92279f575409851a9c682495146ad8.camel@kernel.org> <681d530d72de842c8bf43733c11f3c3f2ebf8c6e.camel@kernel.org> <25db682402d14c34af9ba525cffe85c5@intel.com> <848905ffa20cf234446b16682cbbcf1e56853950.camel@kernel.org> <40da1a9a7d5f41bb9b82ea2cbebce73a@intel.com> <250de8f97efe2458afc39f080c3ef6a55f42623c.camel@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-09-07 at 17:46 +0000, Luck, Tony wrote: > > Would it be too obnoxious to flag that include in those files? >=20 > Jarkko, >=20 > You mean: >=20 > #ifdef CONFIG_X86_SGX > #include > #endif >=20 > in mm/memory-failure.h? >=20 > That wouldn't help. I need the do-nothing stub definition on other archit= ectures. >=20 > I'm going to explore Dave's suggestion of changing the names to something= less sgx specific. >=20 > -Tony Ah sorry, I get it :-) Yeah, Dave's suggestion makes much more sense. /Jarkko