Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp529493lqg; Fri, 1 Mar 2024 12:26:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVwgD4E+R2o9oN4lANNMEZcD6YrjqyR4QKWK35ZpjJGNoOsx4SDm93Nn9HTqz6aimylHJkE99jKH3/jXZeo97/eFdp7wQugRi0uSjkNvA== X-Google-Smtp-Source: AGHT+IF4MAVzeY7qTkLpS3b5jPbBKWaMths2zpG9xOdOuwvk3qzC38kOdkOTkVSZdOuoG5TQKZwP X-Received: by 2002:ac8:5a83:0:b0:42e:c5a4:d477 with SMTP id c3-20020ac85a83000000b0042ec5a4d477mr3156201qtc.32.1709324766183; Fri, 01 Mar 2024 12:26:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709324766; cv=pass; d=google.com; s=arc-20160816; b=c6wcDEvMZQ/8UmZcAXARbFxzjsDvysa3GqGq7A0z5adwXfQNdamHACJXdSzRSW4WV+ qvLJGsGm4KpLp+3ac9571oNWvWUMRC9TtPPhuCUytDmPsBTkHHW5F3wSXHzvGNeQ3UZK Z0VVluWlPpn2Yh+PEX7aTt0Py1VXB0OzKZVL+QC1+zK95pMp08g6vr9tHzJge9CO9rrx I2UBOsBdkue7362cvx/C+ORUa6JiUG2EAx6Nky0T4YnGXpFcg9b1AiWCzhWR9qm8wVHA iCfGbW36FjvQlmD1CU3z2/0muePfsg+qoqT9NVtclSpJUmo3T99ID7we+JlfiYNVjR/F m+Ag== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=QBwXoLLpgFu/uPd0sIAAdZiRIZ76bkWotyt1DwrJTTw=; fh=FIYQufSXpA0aQyrgwyWepwAlZkzGuumKVMw5VZkBkfE=; b=uSSyXKLtM5uWN/oaOAZOwIx3TvXkS9aEgmTTSv/piwx3hyQnR9iiC1pbQ6WGBkRYU0 mYiqyQ57evJ2v8lI8tZ3ziU4TKTaVlIBkKBnaTByGxNMjo59IJ9ynbqcsev5mCMSLX0Z 3+qLpwNYK/S500Swm41m0qeNOhoQRT9/oW9xzgwrvjFcHNCIUnK+8XgENnvPdYfhvOAd 6euKLDw5fgnQ17/9x+fj4gtn8zm/79ZBnksmqtnaXHs3dOM429d2LipqJhVbjnlL0f4D rAi2dN87jq7zpVrRVh4An03Vw2kRf+frzlVTjC8gojHUpQFK1yZCgrMrZ6DlWTs7lPOg cItQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=z6OsBG1m; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-89079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89079-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id b21-20020a05622a021500b0042ed8df0cbesi102844qtx.727.2024.03.01.12.26.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 12:26:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=z6OsBG1m; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-89079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89079-linux.lists.archive=gmail.com@vger.kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DB48D1C23367 for ; Fri, 1 Mar 2024 20:26:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F25A33CF79; Fri, 1 Mar 2024 20:25:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="z6OsBG1m" Received: from mail-ot1-f54.google.com (mail-ot1-f54.google.com [209.85.210.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43B233C46B for ; Fri, 1 Mar 2024 20:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709324752; cv=none; b=f7YnkRH5jsJbUAj0DOkctBwfXscRnnEWLPtFPZ47IO2LmdjjN2whOtFOtu8L8GNNf1k56eE7y6KMsGEy4K54nALoM4DLusKxcyWrt0PTR4uVjS8D5IHeX0pmLK2I7oBSz9U9IOyZKQGCp4uE7rJYI1LZ+oa2wUgArKSlFhBs+/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709324752; c=relaxed/simple; bh=L65CnAU/1fE0bnLVD5fRYtl5Qy3ANgyj2SBr40g08Rs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Vo4Whh3eE0Lc61PjU0RxXeph8hjy+x3a8mnPke2qWw4LUMpaofaK3Zhk9uQZReP0XK5teukL1CSBgXk+1E1oGt+tFJyoMXunuGrgeG/d0DS/O4o7iW2qllu0NbImZRTmbKnWujvc+fnSWDrETS0OtUDjhGpBjMu1/NI9/tq5iQQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=z6OsBG1m; arc=none smtp.client-ip=209.85.210.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6e4a0e80d14so1811903a34.1 for ; Fri, 01 Mar 2024 12:25:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1709324749; x=1709929549; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QBwXoLLpgFu/uPd0sIAAdZiRIZ76bkWotyt1DwrJTTw=; b=z6OsBG1mrZqnrXQzZAeduezjnPYdpu15CaGBiB80XXok1/1KH6Nz/svv+uIPIlaeth buelwAp4PezVGoGqjO6yL0oe8DK/XmqFwegc4nr3vHJfXOMjvHO9qTiqAu8ccQqB3BP2 xAkkJEfkBW7oDVU/RPH7tpxsViwNTGXAjbdqBuq0fiCBrsJTWidVF5W66xYpCrzH1exT ixzlZlRU6L64vME84PabmI6UhMe9vMDjaSF7iKCSnau+ARFrgP7J81e0sXeH+6NmOc60 O9VCE97jVk1c3Y5x93y3VVdAGBQhGF89j+OpLXuYIh5u09ebxTY4yaVvN8rcAWs8xpx2 NOqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709324749; x=1709929549; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QBwXoLLpgFu/uPd0sIAAdZiRIZ76bkWotyt1DwrJTTw=; b=SaqBMKk2jNsiUKuPS0nDlRSxrbHmm7DWOj/DKkMwTdaNTM31Y1BhtgrqYYwQ+nFb8j pE5ASV3vXiDs/l8MNy4LG9fNVrKRRlPGha0nxi5Y/SagTJO+b8EMiyUdQgoI7m9v2CFB cbxox+t+QKZglBvh06PuNhzbvm/C47sWPEZRG3YWx5qCk+Q5f6LricX1dnZxp7OwuwV0 0fOaDgGy3GvRBbBzH2gJgkO7Zuhl2hGMnkGM5C/QczabLZqabCU+cWx/u9h5DJsZ4Vyb hgAVV+eQUBFkoFPoSPZO+70NQCkpqqx6a7m5hVyozKWCiNYxKAqE3Ylq9DMoEhVYdUHU ZGrg== X-Forwarded-Encrypted: i=1; AJvYcCUhqmOskcLC7T/K9sIjiz8oynVskgyYE7fin0QJtVbSFegmVgwZabS0JURHAeUUujIWpln4AeURit96F97wmxzzcccil5YZRAMcD5Wh X-Gm-Message-State: AOJu0YxVS0JQhAOwtzT6z3b4L/GgnAiPiCWBGBApCmFfOjPyXTqcCD3x GkIhdVFxlVi8fwb0C7FK2+5VDNY9QxmTeHzNStaBsJFY/x25Hs+v19fDav48Le4= X-Received: by 2002:a9d:7e8d:0:b0:6e0:b4ac:8cdd with SMTP id m13-20020a9d7e8d000000b006e0b4ac8cddmr2949588otp.18.1709324749500; Fri, 01 Mar 2024 12:25:49 -0800 (PST) Received: from freyr.lechnology.com (ip98-183-112-25.ok.ok.cox.net. [98.183.112.25]) by smtp.gmail.com with ESMTPSA id f10-20020a9d6c0a000000b006e454aa54d1sm806213otq.56.2024.03.01.12.25.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 12:25:49 -0800 (PST) From: David Lechner To: Mark Brown Cc: David Lechner , Michael Hennerich , =?utf-8?q?Nuno_S=C3=A1?= , Kees Cook , "Gustavo A. R. Silva" , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: [PATCH 1/3] spi: axi-spi-engine: remove p from struct spi_engine_message_state Date: Fri, 1 Mar 2024 14:25:18 -0600 Message-ID: <20240301-mainline-axi-spi-engine-small-cleanups-v1-1-241dfd2a79f7@baylibre.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240301-mainline-axi-spi-engine-small-cleanups-v1-0-241dfd2a79f7@baylibre.com> References: <20240301-mainline-axi-spi-engine-small-cleanups-v1-0-241dfd2a79f7@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" X-Mailer: b4 0.12.4 Content-Transfer-Encoding: 8bit The program pointer p in struct spi_engine_message_state in the AXI SPI Engine controller driver was assigned but never read so it can be removed. Signed-off-by: David Lechner --- drivers/spi/spi-axi-spi-engine.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/spi-axi-spi-engine.c b/drivers/spi/spi-axi-spi-engine.c index 6177c1a8d56e..d89f75170c9e 100644 --- a/drivers/spi/spi-axi-spi-engine.c +++ b/drivers/spi/spi-axi-spi-engine.c @@ -82,8 +82,6 @@ struct spi_engine_program { * struct spi_engine_message_state - SPI engine per-message state */ struct spi_engine_message_state { - /** @p: Instructions for executing this message. */ - struct spi_engine_program *p; /** @cmd_length: Number of elements in cmd_buf array. */ unsigned cmd_length; /** @cmd_buf: Array of commands not yet written to CMD FIFO. */ @@ -543,7 +541,6 @@ static int spi_engine_transfer_one_message(struct spi_controller *host, /* reinitialize message state for this transfer */ memset(st, 0, sizeof(*st)); - st->p = p; st->cmd_buf = p->instructions; st->cmd_length = p->length; msg->state = st; -- 2.43.2