From patchwork Thu Apr 18 07:59:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 13634308 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 8BF8B757F6 for ; Thu, 18 Apr 2024 08:00:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713427206; cv=none; b=VFTNJin12igFW3dibaMvDLrZckKgaU6J95jpxZl/TDTgnXFd5LIP+bcj0XdraILTqAfDEFe1Udl0K9q8Y8XW6idEv3WpJlx9WhFwgi3z2lkgIlCgSGz/kaE5016X33OxVh+jvZC/efhLJiuRt2Dxx+j5Q5ihqnKlhrM0jkEbXrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713427206; c=relaxed/simple; bh=4YnNYGgVOhX9XUOB8UHSWyvalI0+TtY35J+ckM/ljv4=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=tkRf1AI3kfxaDe0N5KGThBymnvSTghnyM7knLVacpgHhsAtfd9k6932337xrTQtAxWx2MeSCdw80afMC1xXrhYaiCOy1S619tKi29kAP3ZpSGfkxRGZk4DJXXDbyVabiKNN1rClD/4O9PSyACakD921nXfbBRTDOkNf/qxJwwPM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=UfCWYajQ; arc=none smtp.client-ip=209.85.214.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="UfCWYajQ" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-1e65a1370b7so6233105ad.3 for ; Thu, 18 Apr 2024 01:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713427205; x=1714032005; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=XrGSZ4gIHI++Gh6B5QRi9SlQW6fGKWlC41/w97ih1MY=; b=UfCWYajQzdGIL9Mc0+wJmYAhgqYBk/+1PJencdaXAd73+ZZwBy8z0K4bNv/FXX2XBz Rbp1Feqw9BP9PJx+XTgmQBPpatDF59QjjvSWOmHCDtsya8wQzS+OYRf4Ovw4HlTqjBE/ qYRoStLQplngZyhzgwtQGOSlsABZTtTe2vlGWWGLiP6pekc9Zm6y6ZGLFGLbg0Y+Ct3t N31mP2p65f8DbycXBfbGgL2dD0dMoTHXpaPru7Sqc5QHS7Me11zjzdkZZZyCtcK3WHNI h9VEM69RMs6Re8W3ASIcH8ZbjXsjgB6ZdLo3CiHDf1rmH7VXDloNZ9S+coWN3bkLLlLb JGhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713427205; x=1714032005; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XrGSZ4gIHI++Gh6B5QRi9SlQW6fGKWlC41/w97ih1MY=; b=lfnHjnrpOcwgG4D4IGIiSVhYNtfBqJjNvrm5n4BL6WVxptITod3erlKWeNJhB1q1h+ M4++Dc4htSV+XAbxjaah1zDHYrGRo9KXFUyte+YODcb1+p/DIlamdJdN5HOmNGhgexeN RP/Vl5jPJrjHkOskUL0mS/57dHIn2VlWXFxfYszTKYZz7KbSWmmVfeRpGNc1SQPhZkZk DcRN6R9pf5aj3lsnu3LBEwOuPiin4jNmWXfgIimt7AjrLwhlccO4UWydZoM8HOyxwnNP 1klg8LuShrK+QQ/aDKmSy5SPJF1dqerwpQtPHydw+QIzdKgTnAfJOfj18S/ArUz16Sl3 oFiQ== X-Gm-Message-State: AOJu0YyCMAdT+8EXUZoGRp8MbtAMJYjYo2SXZOE4zbd96sesZiW435v4 MtHuZU+hnbfabrzYToxODM41Gxwv9uERCtV/bpQUCA/Pl284p41qcbhBanv4cg== X-Google-Smtp-Source: AGHT+IGxGAJBI8PL5TlTgHXNWuERrnZ4u8IUAqfdFizOq/kSWBGL4deE48MPZ6GRT2DcxtqkSlOR8Q== X-Received: by 2002:a17:902:8696:b0:1e2:9676:c326 with SMTP id g22-20020a170902869600b001e29676c326mr2283826plo.29.1713427204644; Thu, 18 Apr 2024 01:00:04 -0700 (PDT) Received: from [127.0.1.1] ([120.56.197.253]) by smtp.gmail.com with ESMTPSA id lo8-20020a170903434800b001e546a10c50sm889956plb.286.2024.04.18.01.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 01:00:04 -0700 (PDT) From: Manivannan Sadhasivam Subject: [PATCH v2 0/2] PCI: endpoint: pci-epf-test: Cleanup the usage of 'pci_epf_test::epc_features' Date: Thu, 18 Apr 2024 13:29:57 +0530 Message-Id: <20240418-pci-epf-test-fix-v2-0-eacd54831444@linaro.org> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAP3SIGYC/32NTQ6CMBBGr0Jm7ZjOiD+w8h6GRYUpTGJo05JGQ 7i7lQO4fC/53rdCkqiSoK1WiJI1qZ8L8KGCfrLzKKhDYWDDtanpiqFXlOBwkbSg0zcym8YK81N uBsosRCl6Tz66wpOmxcfP/pDpZ//EMiHh5XzqG6KBnLX3l842+qOPI3Tbtn0BObFJMrEAAAA= To: =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Niklas Cassel , Manivannan Sadhasivam , Dan Carpenter X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=openpgp-sha256; l=1091; i=manivannan.sadhasivam@linaro.org; h=from:subject:message-id; bh=4YnNYGgVOhX9XUOB8UHSWyvalI0+TtY35J+ckM/ljv4=; b=owEBbQGS/pANAwAKAVWfEeb+kc71AcsmYgBmINMAAuepBRZH3MDyeWzVacCxqwMoBBoAI59JH os8gWAWsL2JATMEAAEKAB0WIQRnpUMqgUjL2KRYJ5dVnxHm/pHO9QUCZiDTAAAKCRBVnxHm/pHO 9eQUB/4z7UZoNHoGOFY3lX20++2OMe2rnar7Cs2z5Rxper88059mfXzIun4k3Ti1SHg5b26JD4w KlwXTz1Ju2M4LVfEklgQw9zzACauOoqoo6h/jCJ4AYA9VTndIo4p3yfhFQXYGxVavSrBiLaBqq+ 8QCCmIl/Z1ySa+04nfxAyfYFR6ALC4REMENi3RN0joRKKGENrSSsC1DpWd8LLw7ywwrzUFvfRm6 a21HT3v+E74zzVHJmgDLVrM5Ux02/huIkqi9yo7ZwDbyACKnNg5zcCZBbaB0Z5s41tX7/5L3x09 VHa+CkjM2jkfl5bGSel0/TceiguWuSGyxM8BmMGZWeXPBl9D X-Developer-Key: i=manivannan.sadhasivam@linaro.org; a=openpgp; fpr=C668AEC3C3188E4C611465E7488550E901166008 Hello, This series cleans up the usage of PCI EPC features in the pci-epf-test driver. First patch fixes a smatch warning reported by Dan Carpenter and second one is a cleanup suggested by Niklas. - Mani Signed-off-by: Manivannan Sadhasivam --- Changes in v2: - Modified the patch 1/1 as per comments and added Fixes tag - Added a new patch 2/2 to cleanup one more instance of 'epc_features' - Link to v1: https://lore.kernel.org/r/20240417-pci-epf-test-fix-v1-1-653c911d1faa@linaro.org --- Manivannan Sadhasivam (2): PCI: endpoint: pci-epf-test: Make use of cached 'epc_features' in pci_epf_test_core_init() PCI: endpoint: pci-epf-test: Use 'msix_capable' flag directly in pci_epf_test_alloc_space() drivers/pci/endpoint/functions/pci-epf-test.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) --- base-commit: 6e47dcb2ca223211c43c37497836cd9666c70674 change-id: 20240417-pci-epf-test-fix-2209ae22be80 Best regards,