Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1932906lqz; Tue, 2 Apr 2024 02:02:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmoiQ/ILQDQw2BCTCM6VC6op1BDWKBw/FVc0UHNdXq0yxCuhSYIDEf80ec8gVR9krN+X2rUKhcTty4uobwgJg8sy7a4IdMvHrEVom9Sg== X-Google-Smtp-Source: AGHT+IFl96dGQefJGUM/g6fj+5QHajWeHSQDoj3i/NmjZnQfihZ7evjeMZOiII68s86nmt0p3Ns5 X-Received: by 2002:a05:6808:2e92:b0:3c3:ef02:6a87 with SMTP id gt18-20020a0568082e9200b003c3ef026a87mr18441454oib.31.1712048537502; Tue, 02 Apr 2024 02:02:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712048537; cv=pass; d=google.com; s=arc-20160816; b=L2r+zogsUfHZyM68PVxuInaVU6sqxjNvbj7Lc5GqllKX/kcJC/U/F9cvIqtxs6kIOi tFq9BpY08SRllxCZ0L9dTOcUDOEp4jynRn01OMDifTJldj8WUZyraFY5FJDGrySJOrHU HKh+I+9veWcogmWY1fAlF2cDAerryyPk1SgKJGe2wAL5yf0J1WlszQr/m21CM+XI+09Z fAYUWTzKD4Ikude+6rX5jE11WYsZDmAfNyGY7ofFFCirkWwLGqawS/GYv6frfp0rIzFS l1TIHPG8CoksQJJ4KlCTQVi8Nf4UccXmenbv3lOkhqaYSTzDcFchhKJd/bkUFPjH1gm3 XgGA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6CrEoMCAGx1Nzu32cm2z3j39ri8qen5ConiLBGk52g8=; fh=6ALrfVzB9SBhEbmcgaMc5CfONlY2HIgW1HyExVzyk/E=; b=t5RC5hnE3FtT9Oi7z/qjH3oBF2K2dMaBGcxNgjUSEmqC0NP5oPWwoftZygdeMlqA2y O/m3KhXh/lJxg+UuL2RpCvZxnHG/WI3c84gFfm+fkCZQyKi1oOlcPiKiLvhDd+T5u1cW /isWZL/eZ7hyXQfu1OIRT1cYgR7csmuCNGDo3G3YI8eaAhBVUX1P3KdaFuXwydJ9Ivy2 op+LGdg8o3ZbQhaPqGHOKxRRkfBSUkUR7Bfb+uL+ah5Hh2I1MIsuqWzbBebmzW/AL7r7 3MeXkG4kTOJj+smxY4LHLyaMhFswwNsowPN6C0ngYCcOdT+qb14xNn7Y/+YPW6zDbdlg piBA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c3khOu2N; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l2-20020a05622a174200b004343a85d28esi304302qtk.497.2024.04.02.02.02.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 02:02:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=c3khOu2N; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-127447-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127447-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 159E71C22036 for ; Tue, 2 Apr 2024 06:36:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 684B22BB1F; Tue, 2 Apr 2024 06:35:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="c3khOu2N" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 8C3A2249E4; Tue, 2 Apr 2024 06:35:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712039754; cv=none; b=ATfO+jxyOjbi2kb6FuuNE8RImKsgM+wXQFdbLfZSnkN1s2p8yhgC58/DP0iA/b/Mk6A2dy8BnmRsrwSmLecCJNfBfm4Tv7dgnNNJ+VPZPD5O0VQOO9KR6z5JgYrLgYBqy6gh9aRN5vMca5q3JkZ5E2c9oHtbCiSnGm42NlrwzKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712039754; c=relaxed/simple; bh=Feqjj4R3LtzqrmfPSc4AxFtg1P9nxO6x1fNkNugNZJw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GOdBmLtyr+qol1ufV9agnc9NRVdyeLA5aNAPyskVw7tYenXbfx4PRp/xg9WGlVr/JURSLxLNTVmL5MMdxlcAOH5skLDGjLVj7yqolnIcJ8PwAyF0IDZEibSW2HEMYr/obCdBGaIrPpDJFnStexcnBpi5jFrkDoAMZNdaE3IxfT8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=c3khOu2N; arc=none smtp.client-ip=192.198.163.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712039753; x=1743575753; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Feqjj4R3LtzqrmfPSc4AxFtg1P9nxO6x1fNkNugNZJw=; b=c3khOu2NdM2V0fD0EqN6gA1l/69wX05ds4CxY8Q/G7b0w7HEwqnBJ8wA VELK99RFIS4HOu89u6253Dld4Uz5y73vqgWRC1yGBoGgy3DlEN9wjACDM S4NQIBHBRO7Lu9QVpVgkzXlTWTDFOdnY7SXN6VP9pRXQLLNu14MmlaZKI wCymdkbZBtlqpEfozJo9wR9ABTjhw/yEjHUETUTFqExV3srOX8mZsTVEy 36J86TTGlC/6tvH/HUk/Mn8SYzgUO0txlwip2RjMJm3I/+K6CKxIe+TyA 2lo1PgMckCi9u7T+QMo/6HEetxFl9kMXNPcczC49WqEgce/waGrrebS2e A==; X-CSE-ConnectionGUID: VoxBJcvFQvSfIUkcPxb2iw== X-CSE-MsgGUID: ddVnmZ9ZS3WW58SS/DlbiA== X-IronPort-AV: E=McAfee;i="6600,9927,11031"; a="17810246" X-IronPort-AV: E=Sophos;i="6.07,174,1708416000"; d="scan'208";a="17810246" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Apr 2024 23:35:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,174,1708416000"; d="scan'208";a="18043933" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmviesa008.fm.intel.com with ESMTP; 01 Apr 2024 23:35:47 -0700 Date: Tue, 2 Apr 2024 14:30:57 +0800 From: Xu Yilun To: Christophe JAILLET Cc: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-fpga@vger.kernel.org Subject: Re: [PATCH] fpga: altera-cvp: Remove an unused field in struct altera_cvp_conf Message-ID: References: <7986690e79fa6f7880bc1db783cb0e46a1c2723e.1711976883.git.christophe.jaillet@wanadoo.fr> 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=us-ascii Content-Disposition: inline In-Reply-To: <7986690e79fa6f7880bc1db783cb0e46a1c2723e.1711976883.git.christophe.jaillet@wanadoo.fr> On Mon, Apr 01, 2024 at 03:08:21PM +0200, Christophe JAILLET wrote: > In "struct altera_cvp_conf", the 'mgr' field is unused. > Remove it. > > Found with cppcheck, unusedStructMember. > > Signed-off-by: Christophe JAILLET Acked-by: Xu Yilun Applied to for-next. > --- > Apparently, it has never been used. It is not a left-over from a > refactoring. > > The address of the 'fpga_manager' is handled via pci_[s|g]et_drvdata(). > > Compile tested only. > --- > drivers/fpga/altera-cvp.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/fpga/altera-cvp.c b/drivers/fpga/altera-cvp.c > index 4ffb9da537d8..6b0914432445 100644 > --- a/drivers/fpga/altera-cvp.c > +++ b/drivers/fpga/altera-cvp.c > @@ -72,7 +72,6 @@ static bool altera_cvp_chkcfg; > struct cvp_priv; > > struct altera_cvp_conf { > - struct fpga_manager *mgr; > struct pci_dev *pci_dev; > void __iomem *map; > void (*write_data)(struct altera_cvp_conf *conf, > -- > 2.44.0 > >