Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4629708ybl; Wed, 22 Jan 2020 01:36:04 -0800 (PST) X-Google-Smtp-Source: APXvYqxHnkVqkHP4p/OpqiGsudcNgJNCmDT21+Dw+v38higJzLgH7ekQMtmIYxFIKDGpG4V6KCoL X-Received: by 2002:aca:bbc6:: with SMTP id l189mr6318134oif.53.1579685764693; Wed, 22 Jan 2020 01:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579685764; cv=none; d=google.com; s=arc-20160816; b=xmbedH8Ml2LdgRKxfAi0xwJ21hRcveNp40SABJFmE7ouebubLQeY68eBGojkk9dh6I tR0YAABRh3dUl5xGRvctzxeOErc4ATZ45ri8PNaLm4OpIyOjnAkZ2UqDFhoX8ygfoG2v QtOyr9mqdv2oeMKsQUASJdSZPMH62Rg/LRdoOXD9OXco0JgNvFUzQ4H1EAokHmoEDMvY 9FvZQm/90PotcstgGVgwswptZBGT9KJBsY2JETGi7ul65g7YCCsYr0aK/UlL0hTojmcR 3vhdbPgTRZhyhuKSISA19gQtlKjMCaxsiDP5SIGSEqfxG1uN0VnwINXnB9Oy6li/FXaF Wfyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ynAECvucuhMvbP8cwS6QYymonzK/uMzxWqNsu6RxVOQ=; b=pB0Wf8L8n5jAEm2VEsMC3Y9yT4rk2EykY/8o/dgUM3R8G5683+claosTzWhaPE1mOX ULwvHO6SARN37DBmsK+bz0pC6qje9ttXYs8qWpBzvmeqA2yzgVReOSdRRelEO5AshjlF K5nNLYhg0Vm/Rt+Ftt3LaYXb6tGq3fGsRkrWwtSaU4XpCtlGdBXxr3IyHEXtmctE24yF kWmHlOJqPtbpx5vNOPkwnizMlGknJt9lR7yVmKpQs07OVTIO7yY+TWYSK6Fu9Wyi4SsV 6Oq5lMCAW2jLaDKf6y1ShfCVtDh7mmWYxfJAeP/+mIvjNeXt3zcVbFkUGtf+2mkLl+OJ YlPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zDMOYEs9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z16si23751832oti.143.2020.01.22.01.35.53; Wed, 22 Jan 2020 01:36:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zDMOYEs9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730265AbgAVJeg (ORCPT + 99 others); Wed, 22 Jan 2020 04:34:36 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:33756 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730926AbgAVJee (ORCPT ); Wed, 22 Jan 2020 04:34:34 -0500 Received: by mail-oi1-f195.google.com with SMTP id q81so5512723oig.0 for ; Wed, 22 Jan 2020 01:34:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ynAECvucuhMvbP8cwS6QYymonzK/uMzxWqNsu6RxVOQ=; b=zDMOYEs9suLo1wloXAuvTs9YuKNSsBp5Hh/My3IXvDI6pIh0N2z5UqrziYJxv+bYpB l50xJH65RISb7s2LXKuIi/E7S9p056wetT4ckJ4EMLpqz4XK9oULN60ECDbtiqxoQdSX +GzjIx8Y4IuBR1HS2aQGWRlscUJXE6WEueyP7X2B83ydNU9jzKEIk4xz9xds8p+yd4pU VaOQr8TdMNrp/PtAhkXAF8yr/DOaO6CX5qFTzirH7j7WXFn8E/P4d7ncmuNOKz2IaUe3 Bu9s/PMnIIuYfwZV/Nem2ypzDq9hT9n+hhZdnhfwK2wwXuU3hIEjMRqwHUHKzsQBESJU x+qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ynAECvucuhMvbP8cwS6QYymonzK/uMzxWqNsu6RxVOQ=; b=lESAPWWUKMOHduvqprCLDcKi/GBBTyguRNhgWkzB/YPwD94fLTevOVnjAKGqL5dI4P XDNvcWvo5m8NIbmh5w9NB1k8uzbjN86iEvWgCUWDGLQ+wJ9TtoA7jsLN1lac7Y2jc1jI zXhK8QlHjCantdCQLxsJAXOksabsJVRPukVTCKtEMIn/xo72gWD+pvTzjYTECkYVY2bC AmlvQlICR8bKKmR/w50UJGRU3mcNZpBYeMCbh6OcGBckMacF2YaDpiWwG0oFa8AeBh/G OEiSmdwT4Mv28Du563EHrpcTcNXqwJ5mJiJLsosuBjwEB5CnztmsAhbm/r7R1YZDRpPd eMdQ== X-Gm-Message-State: APjAAAVnE3yMHfoQsJ/w+Yz4yk5u8hfdQhu3HoX2U0Dwid1gFJZtT5xp Yx7MzXuc9k6y7CVj4LfxwKMp7AYnGngQDQsmrktbnw== X-Received: by 2002:a54:4f14:: with SMTP id e20mr6057794oiy.84.1579685673521; Wed, 22 Jan 2020 01:34:33 -0800 (PST) MIME-Version: 1.0 References: <20200122091238.65484-1-yaohongbo@huawei.com> In-Reply-To: <20200122091238.65484-1-yaohongbo@huawei.com> From: Jens Wiklander Date: Wed, 22 Jan 2020 10:34:22 +0100 Message-ID: Subject: Re: [PATCH RESEND -next] tee: amdtee: amdtee depends on CRYPTO_DEV_CCP_DD To: Hongbo Yao Cc: "Thomas, Rijo-john" , chenzhou10@huawei.com, "tee-dev @ lists . linaro . org" , Linux Kernel Mailing List , "Rangasamy, Devaraj" , Herbert Xu , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 22, 2020 at 10:17 AM Hongbo Yao wrote: > > If CRYPTO_DEV_CCP_DD=m and AMDTEE=y, the following error is seen > while building call.c or core.c > > drivers/tee/amdtee/call.o: In function `handle_unload_ta': > call.c:(.text+0x35f): undefined reference to `psp_tee_process_cmd' > drivers/tee/amdtee/core.o: In function `amdtee_driver_init': > core.c:(.init.text+0xf): undefined reference to `psp_check_tee_status > > Fix the config dependency for AMDTEE here. > > Reported-by: Hulk Robot > Fixes: 757cc3e9ff ("tee: add AMD-TEE driver") > Signed-off-by: Hongbo Yao > Reviewed-by: Rijo Thomas > --- > drivers/tee/amdtee/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Jens Wiklander Thanks, Jens > > diff --git a/drivers/tee/amdtee/Kconfig b/drivers/tee/amdtee/Kconfig > index 4e32b6413b41..191f9715fa9a 100644 > --- a/drivers/tee/amdtee/Kconfig > +++ b/drivers/tee/amdtee/Kconfig > @@ -3,6 +3,6 @@ > config AMDTEE > tristate "AMD-TEE" > default m > - depends on CRYPTO_DEV_SP_PSP > + depends on CRYPTO_DEV_SP_PSP && CRYPTO_DEV_CCP_DD > help > This implements AMD's Trusted Execution Environment (TEE) driver. > -- > 2.20.1 >