Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp484344pxy; Sat, 14 Aug 2021 13:14:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvG9V/GBsZFhWxg7gKZ09XSkaw65Ko7ZNtzIbvEdfUAu25lR1kfdAjF+V7Q2ziFUptVbNc X-Received: by 2002:aa7:cd9a:: with SMTP id x26mr10671763edv.26.1628972046726; Sat, 14 Aug 2021 13:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628972046; cv=none; d=google.com; s=arc-20160816; b=BBJSuXWAZI4o/+4W+MU946ePOQnjEBviGFGkXY46Dw6OLtNQN4M+sK3NrWS0Gm8ssL Q4ifxoConLAKvPv6UXAU/Zyo5m+/T6kFaJmTZK5leT9otM+qc9exMeqGtrL5xuyFEgdk m9Gv84eFeFtfXZKkmX0XV+bVVGMjZCyDc04YUz6NjNvFZxffJHDJOmQImOIhgATX1plO aKYUcXfCvUfODAMJBiiHvJbAXSEf5dYpxF5LjvLKZ90y0rjbniDpiIB4C89vE6clN9sq lx4fd3aZtb1k1abbDVIcaL4wYZ/8kuzaU0FlWujTBs0+W7KlFRwbBu1J+6juUnTBzT4b 93og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9BuMHZCK/3y9CRDPc/hvQGRGcyrxlBAyc1hOdgLXm00=; b=XhRTr5P4MeNWPzZMu2/a7QoyFzZUsiKjNPqR4pHVkXb9BjY1lOiHzuo2/7mcdZGo9C bMyziL6Lq/ISCI+tMwNqjIqqdU9v09uD2+Epn/OAVYqxEPo27f01Jy4Z7GkOZoekdOuK M1/H00rMbxm3fgvMQvuhrrstMxCQh1wTddXpc/DDD6crZADqtnvOKy7v/T//6f9z2Fcx MY8P67h54oGiNUTzwvOVYEGPGqfOefSca3tLhAR8RJeMz00JUkanWQoBkWAQZ7khN53l XSXT4AD7CuyHzuKE0G/Pnu/jT2jfwRqzcc5UT6OzohkROcJabztIEQx8IP8ytfudRnpz WD6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ek5ibqaB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si873605edb.229.2021.08.14.13.13.44; Sat, 14 Aug 2021 13:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ek5ibqaB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232609AbhHNUM4 (ORCPT + 99 others); Sat, 14 Aug 2021 16:12:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbhHNUM4 (ORCPT ); Sat, 14 Aug 2021 16:12:56 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80E26C061764; Sat, 14 Aug 2021 13:12:27 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id q2so16181215plr.11; Sat, 14 Aug 2021 13:12:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9BuMHZCK/3y9CRDPc/hvQGRGcyrxlBAyc1hOdgLXm00=; b=Ek5ibqaBQZ4Nndleea5q9lbyU351R5pXkslE7iM/mUSanQzJy5gXj2cr7Sd6BmwPYj wF8zjo+GR58fQuZCXq3SAJHvK3Yj3reVRzoQcSSXqfCi0zZsDuaPT4fXE0H/EjPLdvod bJRIfHIgqfeUXjkeqzVHlYtHoAdHJw/uCalQm+vu9tXY+bo4BdVpq1YV584t82qPOAzu 67jyl03ITMIndzo5u3tq+PKH3YXQGzH/l2Aru7mn5sK9+GWTJ9eewYz08yf63ivrF4cR xk6r6v6i6pUN5oeZMbviVS4YefpjWvXUNrBi1A8o9kaKAsHcDW7gLgyr5oUtP8U1X1TF nvIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9BuMHZCK/3y9CRDPc/hvQGRGcyrxlBAyc1hOdgLXm00=; b=r4V2NADs9RPYn06/qYRqtVR06FlY06L/n23HmMLMlHLemIuAu2gcUrK5pDfebIsHvQ hcMZW6Q7w6pG93jZKcxFnWGi5lp4ZIrYZZ9dH8ysreANVs0xZQdOL1Mg5OPUsxAFy2tm VVsjp2VrOMLthI2yhOOZpip0Xr5wZATWoMO9mzdfihYlZRxX4o1ugQa89ieDrU8Ka39c YmdKmJSmgrCV1PKbQWLfrWKTIav9kvYazm6ZWQf/Kbn2WY/RpjOLzQTqGn+2fIWRlcIQ FiUQy513HLQNQl4paBeXfZL40WvfMljo5o8vS/AJKob9+YAo+b7cQC9ja2g+GZgXfI5S +5KA== X-Gm-Message-State: AOAM531QkorewC5Z9g86YPt7aF4ZGOJpQdfBHSTaBmNnXYLv36Ud37Ck D/V5Mbxxl2jWtLRH/kos8WU= X-Received: by 2002:a65:5acf:: with SMTP id d15mr8036596pgt.217.1628971946947; Sat, 14 Aug 2021 13:12:26 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id r14sm6511132pff.106.2021.08.14.13.12.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:12:26 -0700 (PDT) From: Aakash Hemadri To: Bjorn Helgaas Cc: Shuah Khan , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] PCI: Missing blank line after declarations Date: Sun, 15 Aug 2021 01:42:04 +0530 Message-Id: <7631ef94afd60f1e0ff90ada695db1bcf85bea40.1628957100.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch.pl WARNING: Missing a blank line after declarations Signed-off-by: Aakash Hemadri --- drivers/pci/slot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index 751a26668e3a..6ee4ccaf30b3 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c @@ -20,6 +20,7 @@ static ssize_t pci_slot_attr_show(struct kobject *kobj, { struct pci_slot *slot = to_pci_slot(kobj); struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); + return attribute->show ? attribute->show(slot, buf) : -EIO; } @@ -28,6 +29,7 @@ static ssize_t pci_slot_attr_store(struct kobject *kobj, { struct pci_slot *slot = to_pci_slot(kobj); struct pci_slot_attribute *attribute = to_pci_slot_attr(attr); + return attribute->store ? attribute->store(slot, buf, len) : -EIO; } @@ -123,6 +125,7 @@ static char *make_slot_name(const char *name) for (;;) { struct kobject *dup_slot; + dup_slot = kset_find_obj(pci_slots_kset, new_name); if (!dup_slot) break; -- 2.32.0