Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1351071rdb; Mon, 19 Feb 2024 12:23:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWdMp1f89NeaElBHF4YtgEoCuGGZkJcoUTfJnYaW6GE4nuPZ74cSCBd4Te/fzBfFUk3Xq9vS/EhyKUZhBVk/wVHQ6IZ9MXLAFrJZRWI6Q== X-Google-Smtp-Source: AGHT+IFdyrkRboA4gKs1hmHD+Zy68uWUJsQgY1T6IGKMwAECvNFizN0oT48/CsEFMWO/mJuBZfUV X-Received: by 2002:a05:6830:1609:b0:6e2:f22f:333d with SMTP id g9-20020a056830160900b006e2f22f333dmr10608161otr.4.1708374215650; Mon, 19 Feb 2024 12:23:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708374215; cv=pass; d=google.com; s=arc-20160816; b=h7TpmYHaHZ9yZ7/+DKbH7Ra1KAt+rr/wB8y8dHAInnieRkqUJIgcmKanvO25J70yNU /6wOv+g2nBj+HipEZlS0RqEjTWNlyWIaS4M9plq6QPmBVr05D6B5H/JxJG2UZ1/YTTG+ HYPlVFgF9G/SK5FMXLeMgFHoyA7uL7A8f/k5up6tTNVHsudcmEKmc7MYyY2qC0ZghjQc q1GG2zpRFN9UVTldQYdw89nlSv/aTdVo54FUsIo/dG1VEgohGoclfFNneMqstYqF4xgF 0uWfFdSqoNUtOMpXrzb90seS/ZP/lXlD/NguC7jBW/3BFywDrC+SOD4cgq9mk3GZZX6h HG8A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:references:subject:cc:to:from:message-id:date :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=tf3toF+rQC2m/6vuiIE2z2jBmO2KjLybNfpeVTlZLVM=; fh=jnVYuOOrpfnb1Gsitq6nLYEnCZyV3+xche39p34hQLU=; b=lz9cD7WfYAd52PLrZVATNkeXMBLVOViGKMAs1mDw+3APyr/I1yHJqkCiMvuKRfDwqI bNsBNtTDK94y7Xtkx4EKw/bEUg5InmDNoOdxSAcpGcuyQRxSorWWtPgrcQdPqNwRMgiF q64eYXkmbsB+yYDi66CLB9gKoou569jPvB1tMeIwqZ9vnFIaftqB8B9tT0HpMargNTm0 /iy58GqFjKOM0IDRRQFy5UgsjSA9GBWtAsdOx/033evOcVDfWsnFU4/sAODe2JfpQomX wkmDhxoMwM0ikP6yMpI2BPH1IlBH08AWclxF1FJj2mzq2eEewxxfupMxOTMRIG/I/ZW9 a6mQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OjpUcB1I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71956-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l5-20020a05622a174500b0042c57ea16bbsi7704341qtk.282.2024.02.19.12.23.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 12:23:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71956-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OjpUcB1I; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-71956-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71956-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 57C6C1C215F3 for ; Mon, 19 Feb 2024 20:23:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9E77535C9; Mon, 19 Feb 2024 20:23:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OjpUcB1I" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E655A52F9B; Mon, 19 Feb 2024 20:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708374210; cv=none; b=fjba62Ar33FrTx/M5Jx6hKgXiw2FQLN6cAL5mECYn2oNrEZqtIqdOGnIj4dg80ecHqyj6TLY4KB+KGriSglLuwl24iq+hh3epZAGrH8cSaMMgTo4dlOCU5D5TpENYB6CxDEn0tRpOHnZU4ZGmC0eZD1xpjl//UMNXDpLB4JqoL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708374210; c=relaxed/simple; bh=ixHV3knXhwlKaNm/H5VZf90xSon7xbNx8HdzY1OHTaE=; h=Mime-Version:Content-Type:Date:Message-Id:From:To:Cc:Subject: References:In-Reply-To; b=Dpehsvbmg6I9Ca1ZlsApovOj41KiM472ygwU72XtYhNAeYqEAWtquSUeKQdUbcLzagDQpZD3CiC9XssYoExRi/Kg8saz6N7ZoeKOtl07YcpoMk3G3zQcLI93qk8DleYBhTl9lNlJ+Ar2bFr3jEKaC2/mKTg4fzXaSAgdG1HqvQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OjpUcB1I; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3F0DC433F1; Mon, 19 Feb 2024 20:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708374209; bh=ixHV3knXhwlKaNm/H5VZf90xSon7xbNx8HdzY1OHTaE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OjpUcB1IXEiERVGSZfOvbUCkCuR4TmpnrjXZViMy49DFN74vJyxOHJLpZnI/mluoy 5t+48D1/yfNRnngCi3+O0k93X+tzsXNC7dAfSJM1dwk67yAW2JS1kc+dPAxzYGD9Va OV5MRb5nxQL8BnJo8n/GRJqfacljYIXCAX4FOOisF+xFEjguF/rcH7Lmv+D3rQGvaA IQbOSumem2riEQiubkyQhsh9xN9QoS7/OMHYNw+DwKzoexy78hpiAEfsMZdIvzZ3w7 OWAMjZu1i7F0TgNnDh9tR9RVkP93uO1muS6llIweMUmrsexc+d2ZHttmbOHLbMQJlU T3j5ctixMwO1w== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 19 Feb 2024 20:23:23 +0000 Message-Id: From: "Jarkko Sakkinen" To: "Haitao Huang" Cc: , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC PATCH] x86/sgx: Remove 'reclaim' boolean parameters X-Mailer: aerc 0.15.2 References: <20240219153957.9957-1-haitao.huang@linux.intel.com> In-Reply-To: <20240219153957.9957-1-haitao.huang@linux.intel.com> On Mon Feb 19, 2024 at 3:39 PM UTC, Haitao Huang wrote: > Remove all boolean parameters for 'reclaim' from the function > sgx_alloc_epc_page() and its callers by making two versions of each > function. > > Also opportunistically remove non-static declaration of > __sgx_alloc_epc_page() and a typo > > Signed-off-by: Haitao Huang > Suggested-by: Jarkko Sakkinen I think this is for better. My view point for kernel patches overally is that: 1. A feature should leave the subsystem in cleaner state as far as the existing framework of doing things goes. 2. A bugfix can sometimes do the opposite if corner case requires some weird dance to perform. BR, Jarkko