From patchwork Tue Oct 26 21:09:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qian Cai X-Patchwork-Id: 12585689 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E4E1C433EF for ; Tue, 26 Oct 2021 21:11:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2816560F6F for ; Tue, 26 Oct 2021 21:11:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2816560F6F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=zg0zNaQVl4KztpodbZadu+Jv7nSBCPLTX5O1w5cYNSU=; b=Dt6vF8B0JmnaRx ni0kpi3qJf8R5CjG1vjAqafi38d749t0BT0PWW3jdIEfsC/gBCw9hQF+3IquYBckQMKhTN7j8DBSO xfUIAv3w7lEJgeFCL9zvUSgVlK/jDEk93E76wJUZ2xDND9QajgdFRwq81nEdgrUnKGUvDsZ2+7ike /jU9S2z5w++VCy4aD+DUBNm4QSOlkgkKehU5WfUIlk3qGvZKmDZ+YUiKt5rceCEGuaq5Nfy5XTgvs WZky0EycnlAtyZ+sD9EdQANzQ7tae7eD5LbR/WDsbKRC0UNwfJKgAr42ALDDD3voPCsa5FJWSalaR ONyQkolbW1Xisgu+T2Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfThX-0035AG-7e; Tue, 26 Oct 2021 21:09:43 +0000 Received: from alexa-out.qualcomm.com ([129.46.98.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfThT-00359T-9r for linux-arm-kernel@lists.infradead.org; Tue, 26 Oct 2021 21:09:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1635282579; x=1666818579; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3ypMBrk+3j6FxYmtaFh1XZoPQs9JHaCVhfPDEWck3j4=; b=UYOWfUxaokMs5THo/5N2U9L5UDhQ9/kDp6frgCwDUkQBnFVZyPke1UN/ uHtrIgX469S7bIlgwTcfGeVCGNbpaYv2D7DC510umiMws7lwVgvIfVIHQ 1Dn2mIKksW/XLORlJ83ggULHlGUJlTfEcVA1vJoEeQP9TXSpNlC16tt0J 4=; Received: from ironmsg-lv-alpha.qualcomm.com ([10.47.202.13]) by alexa-out.qualcomm.com with ESMTP; 26 Oct 2021 14:09:38 -0700 X-QCInternal: smtphost Received: from nalasex01a.na.qualcomm.com ([10.47.209.196]) by ironmsg-lv-alpha.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 14:09:37 -0700 Received: from qian-HP-Z2-SFF-G5-Workstation.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.7; Tue, 26 Oct 2021 14:09:36 -0700 From: Qian Cai To: Marc Zyngier CC: James Morse , Ard Biesheuvel , Alexandru Elisei , Suzuki K Poulose , Catalin Marinas , "Will Deacon" , , , , Qian Cai Subject: [PATCH] KVM: arm64: Remove unused TRNG_NO_ENTROPY Date: Tue, 26 Oct 2021 17:09:13 -0400 Message-ID: <20211026210913.57006-1-quic_qiancai@quicinc.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211026_140939_444624_C9E127D5 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org TRNG_NO_ENTROPY was unused when introduced and now. This is also caught by GCC (W=2): arch/arm64/kvm/trng.c:17: warning: macro "TRNG_NO_ENTROPY" is not used [-Wunused-macros] 17 | #define TRNG_NO_ENTROPY ((unsigned long)-3) Signed-off-by: Qian Cai --- arch/arm64/kvm/trng.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/kvm/trng.c b/arch/arm64/kvm/trng.c index 99bdd7103c9c..6a46b3ac3970 100644 --- a/arch/arm64/kvm/trng.c +++ b/arch/arm64/kvm/trng.c @@ -14,7 +14,6 @@ #define TRNG_SUCCESS 0UL #define TRNG_NOT_SUPPORTED ((unsigned long)-1) #define TRNG_INVALID_PARAMETER ((unsigned long)-2) -#define TRNG_NO_ENTROPY ((unsigned long)-3) #define TRNG_MAX_BITS64 192