Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1572554pxb; Wed, 4 Nov 2020 12:35:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjFGCDu3n5wvGKOY+4obLRCIo50MqYG2MpFszbG733l4xBgcQL447oAWe8dglP8SrFQQMQ X-Received: by 2002:a05:6402:1bdb:: with SMTP id ch27mr26500261edb.63.1604522150597; Wed, 04 Nov 2020 12:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604522150; cv=none; d=google.com; s=arc-20160816; b=mBej5bydyVTflmFqxwLjapKeN5ZSMpgUI1YOvGvoGuBuP8PW3s4rqIf22GypkAdHwq sUTnp70oIkSroTipQljdEYdI/JuNSQxmUSq5ei1raK/kxmxuwrP5kMjLPKyAg8MUgYh1 ev0oDxUZ7ARpVNozJbuSdOo4rMD6y/3YSNII+V+zD2tkZQUi4Cs012ZaRNT/46k+1yHa 8qrdLP8w9cyi+D3dJBBtBZP0QnB3/n1r6M0NqNXRy89DG5g/oWBn9GRlO4+xTGgQC4d1 0X3Y8mMDK27hF72wrnj/wpfzRwKF155Z84EhqnzQJHab8wHvr2g120D/Hvji4bPUXEhy lJ6Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GpmWgyEf2ElSP4jnHUhAmP7K3AwEb5iwpZy9KQW/2fw=; b=VoGwJgXB0nOGmT6bz5vwjGZQveZSge7GOJ6cM7BTqtx2UO8lOvfAyQGEov6UHPvX8E PKnLho6qSqFZmH+YqW/cEVnR1gBrqZmM8mgGAkFxjfHZSq98m0aToe8j24GeRz1C9/Rx tNA/SXgHQnWnASx21MON+FeYPZUjrUsYa5AWz57jaIfTeyrbohLlynK87VS4wz6G/94E tM1tt0hr1OyAVJ/ldlo5CXAZjHShosgV54lQnLd5zg+icglzmFqBaMRsVTjyVQHXDOgV JVgwnwo0xJ/SmBeqRnFo33F/pZgRYzfXBRb2DknnzmvVJGc2hwWIphwHP+KaISRnTa2G kRzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=kgRCcN5i; 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=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bd28si2077890edb.329.2020.11.04.12.35.28; Wed, 04 Nov 2020 12:35:50 -0800 (PST) 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=@alien8.de header.s=dkim header.b=kgRCcN5i; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730621AbgKDSVo (ORCPT + 99 others); Wed, 4 Nov 2020 13:21:44 -0500 Received: from mail.skyhub.de ([5.9.137.197]:37342 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729488AbgKDSVn (ORCPT ); Wed, 4 Nov 2020 13:21:43 -0500 Received: from zn.tnic (p200300ec2f0ef400317dde2deb3fed11.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:f400:317d:de2d:eb3f:ed11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1F1851EC0324; Wed, 4 Nov 2020 19:21:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1604514101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GpmWgyEf2ElSP4jnHUhAmP7K3AwEb5iwpZy9KQW/2fw=; b=kgRCcN5iQL3yrVMpe6J1MvxgIOk9zsQZFQiqVmReeUAGRwwAnG4vqDRlGiEqCMeo1lJipj dixIQSc9mXOEaflMExAQZXZNDYV2TjGgpOTFYYnK8UNUD3j10wl0C1gdAfaiO69Ml3exMJ Dm7jhq/kwNbSTKXohglMkmVI3UVS48A= Date: Wed, 4 Nov 2020 19:21:29 +0100 From: Borislav Petkov To: Jarkko Sakkinen Cc: x86@kernel.org, linux-sgx@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson , Jethro Beekman , Darren Kenny , Serge Ayoun , akpm@linux-foundation.org, andriy.shevchenko@linux.intel.com, asapek@google.com, cedric.xing@intel.com, chenalexchen@google.com, conradparker@google.com, cyhanish@google.com, dave.hansen@intel.com, haitao.huang@intel.com, kai.huang@intel.com, kai.svahn@intel.com, kmoy@google.com, ludloff@google.com, luto@kernel.org, nhorman@redhat.com, npmccallum@redhat.com, puiterwijk@redhat.com, rientjes@google.com, tglx@linutronix.de, yaozhangx@google.com, mikko.ylinen@intel.com Subject: Re: [PATCH v40 03/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections Message-ID: <20201104182129.GD23298@zn.tnic> References: <20201104145430.300542-1-jarkko.sakkinen@linux.intel.com> <20201104145430.300542-4-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201104145430.300542-4-jarkko.sakkinen@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 04, 2020 at 04:54:09PM +0200, Jarkko Sakkinen wrote: > +static void __init sgx_init(void) > +{ > + int i; > + > + if (!boot_cpu_has(X86_FEATURE_SGX)) Guys, you need to build-test *every* *single* patch - otherwise we break bisectability and that is a no-no: arch/x86/kernel/cpu/sgx/main.c: In function ‘sgx_init’: arch/x86/kernel/cpu/sgx/main.c:172:20: error: ‘X86_FEATURE_SGX’ undeclared (first use in this function); did you mean ‘X86_FEATURE_SMX’? 172 | if (!boot_cpu_has(X86_FEATURE_SGX)) | ^~~~~~~~~~~~~~~ ./arch/x86/include/asm/cpufeature.h:118:24: note: in definition of macro ‘cpu_has’ 118 | (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \ | ^~~ arch/x86/kernel/cpu/sgx/main.c:172:7: note: in expansion of macro ‘boot_cpu_has’ 172 | if (!boot_cpu_has(X86_FEATURE_SGX)) | ^~~~~~~~~~~~ arch/x86/kernel/cpu/sgx/main.c:172:20: note: each undeclared identifier is reported only once for each function it appears in 172 | if (!boot_cpu_has(X86_FEATURE_SGX)) | ^~~~~~~~~~~~~~~ ./arch/x86/include/asm/cpufeature.h:118:24: note: in definition of macro ‘cpu_has’ 118 | (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \ | ^~~ arch/x86/kernel/cpu/sgx/main.c:172:7: note: in expansion of macro ‘boot_cpu_has’ 172 | if (!boot_cpu_has(X86_FEATURE_SGX)) | ^~~~~~~~~~~~ make[4]: *** [scripts/Makefile.build:283: arch/x86/kernel/cpu/sgx/main.o] Error 1 make[3]: *** [scripts/Makefile.build:500: arch/x86/kernel/cpu/sgx] Error 2 make[2]: *** [scripts/Makefile.build:500: arch/x86/kernel/cpu] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/Makefile.build:500: arch/x86/kernel] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1799: arch/x86] Error 2 make: *** Waiting for unfinished jobs.... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette