Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2568462rwb; Sun, 4 Sep 2022 19:38:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR5lYLCK5RMFPdBEphZzfnRzbmDvoQ5Ytinle0gCfXiet2nqT6K8Md0upC5G6O9EHPhw4Zss X-Received: by 2002:a17:906:eecb:b0:73c:5bcb:8eb3 with SMTP id wu11-20020a170906eecb00b0073c5bcb8eb3mr34461980ejb.284.1662345533636; Sun, 04 Sep 2022 19:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662345533; cv=none; d=google.com; s=arc-20160816; b=Yk5QAL6xSnyguOtoHrovqUASkXe3HVtQDH3VBf7yc3r1bZGFyY8tXqS9f1m6OVY5HY xpxP+8s07oBjfZDK1Z9QCFXuD/RTe+rKIMRoxgCpjH7+fVqCwnKcSKPJ40w1MjwLJF6c 0RC2cz/cU/HZtS+onjPCBRSlCuiN91nkFV9pLg5mZkAi3wZHfKWc3W88WBgStrOMNcZp E++Bhf9tIraZB7sG40RNNZkhjV3XvHhNEb0Fl5kLawfj/WGcWPubf82YrLkPIK0R7f4l VAblkqQ+fCGhp867GeTiUvNXenvx68QlQB1GsL+TrJMxnquZpt63GzrVOxLleHDo+/Di bZcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oMPc/LbGcA9BvPEIzltoSggY6/UVDkRqxbZfj5PUnl4=; b=iA+pNNUzc+IySkyxVz4OyrbtgyljDuDkRbohM2k+KDewPFoxgTYuMl3WoDABXWswK5 v24iHfTsVCIOPX63tttDpk4HRSu6tPCKGLaMEQ6qCQkIvSTEL0UCbNPStUH/3HkRmiYt ZIKIuXo6ObKzSx7N5a1O3kW4H3SAHKJx9opb+qscn1rLbAQttpMeeEyOARHz2FEYYfqm pPwbSmLdE8ypgA43pdgWK2qQ6XaKgFizJCpJIEczvMfp8cWa2ox1wn1l5R/UnkAFrCxV dbpf6KhxWzIaYnhmmdm9edVVmshcy52PXSeIti+Mu136I8k4a8B4z/jVr5iHKbbzUxPI nbCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KRUe5eSC; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w6-20020a05640234c600b0044632026ee1si7760195edc.53.2022.09.04.19.38.28; Sun, 04 Sep 2022 19:38:53 -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=@kernel.org header.s=k20201202 header.b=KRUe5eSC; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235565AbiIECEk (ORCPT + 99 others); Sun, 4 Sep 2022 22:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235538AbiIECEh (ORCPT ); Sun, 4 Sep 2022 22:04:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E2852611; Sun, 4 Sep 2022 19:04:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C990FB80E50; Mon, 5 Sep 2022 02:04:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2369CC433D6; Mon, 5 Sep 2022 02:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1662343472; bh=pzByMiqnD9Chpi3CjKiZTWDg/fVKmpfXISvNevXinVc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KRUe5eSC6JVIVF99Scwwmphl8BE3DtvjZ/7ATZxC0kiwHbhLFkHtlAg/U3tJg5VQc 5Yb8BZ1WyGgca2xP70+dFuMbJWM1IYmEPgVo6B1KlUxxX7N0mgfchHFYW6GS1vthCG rh34eLW7bfin2GaJwwH5leHfjNC/FK9OGoVRwEmqIZ9mry5d8rzlBkdZNkD8R4NU/c vxf8EJG4TGJnbj+ipcARb+tcYEdCJX1k6tUN4wfkevMxVFtSH+/roauZR7qi1rF7+p dJ3YCIHc6132cUObJgbFv8Sn8o4WnY4ZGn2F5OAksfPYN8xJ8dDVC8SGLb8v+zTvz3 ME+gyYzZlzBJg== From: Jarkko Sakkinen To: linux-sgx@vger.kernel.org Cc: Haitao Huang , Vijay Dhanraj , Reinette Chatre , Dave Hansen , Jarkko Sakkinen , Shuah Khan , linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v2 2/5] selftests/sgx: Move ENCL_HEAP_SIZE_DEFAULT to main.c Date: Mon, 5 Sep 2022 05:04:08 +0300 Message-Id: <20220905020411.17290-3-jarkko@kernel.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220905020411.17290-1-jarkko@kernel.org> References: <20220905020411.17290-1-jarkko@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Move ENCL_HEAP_SIZE_DEFAULT to main.c because all the other constants are also there, and it is only used locally there. Signed-off-by: Jarkko Sakkinen --- tools/testing/selftests/sgx/main.c | 1 + tools/testing/selftests/sgx/main.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests/sgx/main.c b/tools/testing/selftests/sgx/main.c index 59cca806eda1..a1850e139c99 100644 --- a/tools/testing/selftests/sgx/main.c +++ b/tools/testing/selftests/sgx/main.c @@ -21,6 +21,7 @@ #include "../kselftest_harness.h" #include "main.h" +static const size_t ENCL_HEAP_SIZE_DEFAULT = PAGE_SIZE; static const uint64_t MAGIC = 0x1122334455667788ULL; static const uint64_t MAGIC2 = 0x8877665544332211ULL; vdso_sgx_enter_enclave_t vdso_sgx_enter_enclave; diff --git a/tools/testing/selftests/sgx/main.h b/tools/testing/selftests/sgx/main.h index fc585be97e2f..82b33f8db048 100644 --- a/tools/testing/selftests/sgx/main.h +++ b/tools/testing/selftests/sgx/main.h @@ -6,8 +6,6 @@ #ifndef MAIN_H #define MAIN_H -#define ENCL_HEAP_SIZE_DEFAULT 4096 - struct encl_segment { void *src; off_t offset; -- 2.37.2