Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1111995lqo; Sat, 11 May 2024 07:54:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVpmAw+RcWDujipYlkIVn7e3N5n/4Z2rGzlCIPbUMuw0ew1T+KZ5JODjTIoK29YwPsNV0mw8HO9NGSS7NRXubWks1MHZ+CNEvGYBjiG1A== X-Google-Smtp-Source: AGHT+IEFUy44kHCg3LYnwEECCSDOC2mTGCn/xFBDXuo0c8FIcaRKQV6YjY/+kC8ZQQEbEY2hrAXn X-Received: by 2002:ac2:5141:0:b0:51d:34bb:3c6c with SMTP id 2adb3069b0e04-5220fd7b989mr4099132e87.31.1715439279820; Sat, 11 May 2024 07:54:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715439279; cv=pass; d=google.com; s=arc-20160816; b=e7+wnMeGrGbUDFVrkVETci0ARvaoE/uFAGL7UHduhNqTJWsm3JkUjHjr2Ud9pcNg+i 0XB2PMnGkyDlIfeuaLHCqdShp/LNo3myOiIvBx+j2JV7S2p9T40IFmQ/k3XbsJGZC6mI jhcqHqDdR+hsuUpy46zNdDNVRU3XwmEuALFkVocGLzEUjG8FePs/iwTvaARSJ0RhYc00 GlwQrcvG6LuOm357dXxV+jzxzvqmNrltIPPITNEvendCV9ZZH1uEEbprVGPTJM1uXiF1 nWNQ1gKEVszuJt9MIxgEBGDlOyZAN9gZdl/LXf2zGlH3jzkkpgqFduc81xSqOj3Ubk6+ LPAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=cALCYB3IeIk47FzlqUsK3MjBGhbm4QSkkYWY84cdTVM=; fh=WBLWeb+2roH+ujDmvKZxDH8XTCAjaba176h8yCPMDwM=; b=CTQnUm4wGzBZIx5PNYUviub2wFYZiVoYYztUcqCrvZbIKoFixW+dKVDkLw9zC7vQ71 zw+E72fWbj9Lfb+QBGxiwFI9Alb1Ym7jtaX1tbcksqw3poa6UOEwkhN1V1Byi002uAhW O+ybcNcfsjU63CFudGt4ancWfkDTG5HyE/WFqswW045RLGnUVOc09xjSiGtIWykSS66Z XIX+tXyXErYk59mmeuubJaqbfN6/rbSbGy4D+wQCzC+hFawmAIJ9PJt5pvK94l5eogvT Ruox+WnEb9lexPSDUl8uuJeze2zkLlT2DXvluqd8JOwlOrW2NxbsXj3GBW2L+dVZC4ez BU1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=cA8n5jFk; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-crypto+bounces-4132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beace29si3302603a12.3.2024.05.11.07.54.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 07:54:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-4132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=cA8n5jFk; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-crypto+bounces-4132-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-crypto+bounces-4132-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 88E761F21625 for ; Sat, 11 May 2024 14:54:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B8AAE55C1A; Sat, 11 May 2024 14:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="cA8n5jFk" X-Original-To: linux-crypto@vger.kernel.org Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (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 985D7535B8; Sat, 11 May 2024 14:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715439274; cv=none; b=dLykNZ3DF6trlCBhTjGds+bCx217CPjfX/NKtyW+fqqA0IGfQCIDIbckUQAnQO86iaRqZpjbhKQNpAGGxi2Gti+NTdugozTzCQqZslMxgjuxTVdq3NTQKhh7aY54RMdzy+XjM9VP+sbusBeUqd77Vzi8CaLsmGx0s7y4M1/zni0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715439274; c=relaxed/simple; bh=SXT6PmgbNQQJcx82IKaKzZ62KKTm+VyZg7hOe/FeYVs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ftqEE5jDKu/MF/Sg4Y/VgSfCGUHHW7th3OJHpGoyEuOoptS9duoY6GsG/FUuzx8dBxJ9UKale+v4ig0af1S49P+XXn1hgcRqSVnA7AVO6uXizBwX4fMoJGv68byEVYlHObAs5BWwvwIN0JzLpOQJKmP3wMsvovdrvzcukSlQjos= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=cA8n5jFk; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=cALCYB3IeIk47FzlqUsK3MjBGhbm4QSkkYWY84cdTVM=; b=cA8n5jFkFgszNO5N Jv5PFePd+Qn6kg1hkecCYwLlysDKy3hU5/7kgQpejzl9lAJmpMgnYeOKo9oHEzR4498TNkgsMuL0+ 81aSeAMc0LFeOZo+FG0OlEpS7JZls4NETNRFhuGdrri6eKb9tu3/els+lvHRV5ylivbcwT5s6/F8W stR+5xFyeyCqxIrMVQnwjDHx6hfodpeFrHNRlmzpe4jQjtqy98hyplU0W0u6e7As3+XdX9ZP24mYt Jjy3XMWM2eStEfcPAK/CeU9tQJaPQwLQZ4E6570BlHOC4wxgIj4r7Rvborb6j16H1KZ9j9tXlKpHd QSS3DM9C08XOAkqAhQ==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1s5o7H-000W5i-1Q; Sat, 11 May 2024 14:54:27 +0000 From: linux@treblig.org To: herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH] crypto: hifn_795x: Remove unused hifn_*_command structs Date: Sat, 11 May 2024 15:54:26 +0100 Message-ID: <20240511145426.226379-1-linux@treblig.org> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" Remove 'hifn_mac_command' and 'hifn_comp_command' which are unused. They're the same structure as 'hifn_crypt_command' which is used. (I was tempted to remove hifn_base_result hifn_comp_result hifn_mac_result and hifn_crypt_result which are also unused, but they vary, and perhaps they're telling someone in the future what to look at.) Signed-off-by: Dr. David Alan Gilbert --- drivers/crypto/hifn_795x.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c index b4a4ec35bce05..9259915267454 100644 --- a/drivers/crypto/hifn_795x.c +++ b/drivers/crypto/hifn_795x.c @@ -495,16 +495,6 @@ struct hifn_crypt_command { #define HIFN_CRYPT_CMD_SRCLEN_M 0xc000 #define HIFN_CRYPT_CMD_SRCLEN_S 14 -/* - * Structure to help build up the command data structure. - */ -struct hifn_mac_command { - volatile __le16 masks; - volatile __le16 header_skip; - volatile __le16 source_count; - volatile __le16 reserved; -}; - #define HIFN_MAC_CMD_ALG_MASK 0x0001 #define HIFN_MAC_CMD_ALG_SHA1 0x0000 #define HIFN_MAC_CMD_ALG_MD5 0x0001 @@ -526,13 +516,6 @@ struct hifn_mac_command { #define HIFN_MAC_CMD_POS_IPSEC 0x0200 #define HIFN_MAC_CMD_NEW_KEY 0x0800 -struct hifn_comp_command { - volatile __le16 masks; - volatile __le16 header_skip; - volatile __le16 source_count; - volatile __le16 reserved; -}; - #define HIFN_COMP_CMD_SRCLEN_M 0xc000 #define HIFN_COMP_CMD_SRCLEN_S 14 #define HIFN_COMP_CMD_ONE 0x0100 /* must be one */ -- 2.45.0