From patchwork Fri Dec 1 19:38:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Spooner X-Patchwork-Id: 749371 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=seagate.com header.i=@seagate.com header.b="c+bXXjwx"; dkim=pass (1024-bit key) header.d=seagate.com header.i=@seagate.com header.b="anew9ORt" X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 01 Dec 2023 11:39:22 PST Received: from esa.hc4959-67.iphmx.com (esa.hc4959-67.iphmx.com [139.138.35.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E30710E4; Fri, 1 Dec 2023 11:39:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=seagate.com; i=@seagate.com; q=dns/txt; s=stxiport; t=1701459563; x=1732995563; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=h0jMU7WjZ/hlqRIW35kqLPEcBYhPPTfKUhdvWICUfUE=; b=c+bXXjwx7nWtI4OquaIxmOk558lo/SBEiVL75p8jV8zReQCzOc6bUXl3 hm5iH20D+ktUQDFXWIXIp5LgtPnA4KlqG0DandM69ZiG57Gr8T0DgZeI/ +c+emGUE8EMKyIc6qvGxmBK/9/5OplZXaVYaZ3N4AfOvhO+4qdb9SYxDq A=; Received: from mail-dm6nam04lp2041.outbound.protection.outlook.com (HELO NAM04-DM6-obe.outbound.protection.outlook.com) ([104.47.73.41]) by ob1.hc4959-67.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2023 11:38:19 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E17bcjcYm1em9dLZUxwir0Z9QNL87DBux416GSbeIh4cNk9VquQmtYzcdotyeP5eErtZ70c9Xk4K5YTNWVgaXMlHTG9K3eglXopysszIn21iMg1E9GKj+I7bBsMwgvKzyFPIl31N4YcZ7cyarxpgBxpXUjeEozFvzFAXwLW5/y1OOYKYfYvAf9hXMgD1vIsG/f43V2CIWAUdwe3K5Yb4iT83C4TmnndNMvmhU9sBXVK74eeLuJnzQWyD1h9iYbr9KvTlRYs9hE2EI0VQ7hcMoU/PTBYmHL94VWsUiW9qPw8Xd8pNBJC1l7s9Bo9wHGzNtH7fpnR82g2Yw2qx7U66+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zOyI7d/QdG6K2JsOEZx1fB6Bqn1zXJxaUWZgJg8t6iM=; b=M2Gyxi5sj61a/naeC4f3CZw5s2ag2RA//apdUzn1gktmoVp3HHLyYLnk5sIfUAW+tHLBK/m0nIGo1Q/JKsboaXlaKcKrb0ZrRb6IomkR+ORpYmezgUJAhz0K7zUpbYZkKX2D+dwgKc91VmqyltkEy3Bp4b3K/DD27SpdrbsOmQ67lfECc7Pag1TMkS3KG8z6hdAJ9KfPY7Z0c5KtHI42WCZ/5U1nIJEq7S32ysy6jNJZpJzfWnQ+DsVzrqeHd9FHF4jtt+lvfJoMMX4Yvu2DYwARwKFWPb5KOvQIA34mzGCKDPlFKnTHbbXHAlHuwNJFlSdSVfkqJmO4K9pfwE9N0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seagate.com; dmarc=pass action=none header.from=seagate.com; dkim=pass header.d=seagate.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seagate.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zOyI7d/QdG6K2JsOEZx1fB6Bqn1zXJxaUWZgJg8t6iM=; b=anew9ORtzIlh5VMk12AhvEjliqYtGJ5CJVU9bPGcxb8m8KnZCi9Utiy8X60VLfxVfOgOOp0oExU8PvfsHIO3wXE6snIT3AOn55B8nNZv0WrxJaNoRT+lWNo6OiUCfnR7CaXjvDZNDWnIudN39ZaCX+RBUstRJ6PuLPiSQZMSmbs= Received: from CH0PR20MB3818.namprd20.prod.outlook.com (2603:10b6:610:d9::9) by SA3PR20MB5888.namprd20.prod.outlook.com (2603:10b6:806:318::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.29; Fri, 1 Dec 2023 19:38:15 +0000 Received: from CH0PR20MB3818.namprd20.prod.outlook.com ([fe80::6ea8:3fb6:2432:e1fb]) by CH0PR20MB3818.namprd20.prod.outlook.com ([fe80::6ea8:3fb6:2432:e1fb%4]) with mapi id 15.20.7046.027; Fri, 1 Dec 2023 19:38:15 +0000 From: Nick Spooner To: "john.g.garry@oracle.com" , "yanaijie@huawei.com" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "damien.lemoal@opensource.wdc.com" CC: "linux-scsi@vger.kernel.org" , linux-kernel Subject: [PATCH] scsi: libsas: fix whitespace formatting Thread-Topic: [PATCH] scsi: libsas: fix whitespace formatting Thread-Index: AQHaJIrzpBEYTx4M30uzGoeCOXRQvA== Date: Fri, 1 Dec 2023 19:38:14 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_10398c1c-5e94-454c-bbc4-eb8a4a50b8b0_Enabled=True; MSIP_Label_10398c1c-5e94-454c-bbc4-eb8a4a50b8b0_SiteId=d466216a-c643-434a-9c2e-057448c17cbe; MSIP_Label_10398c1c-5e94-454c-bbc4-eb8a4a50b8b0_SetDate=2023-12-01T19:38:14.629Z; MSIP_Label_10398c1c-5e94-454c-bbc4-eb8a4a50b8b0_Name=Public; MSIP_Label_10398c1c-5e94-454c-bbc4-eb8a4a50b8b0_ContentBits=0; MSIP_Label_10398c1c-5e94-454c-bbc4-eb8a4a50b8b0_Method=Privileged; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seagate.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH0PR20MB3818:EE_|SA3PR20MB5888:EE_ x-ms-office365-filtering-correlation-id: bc9e8d70-51e4-4548-a299-08dbf2a50fb8 stx-hosted-ironport-oubound: True x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /GU822lp9G9vNqiKOPeQzJ19mkQIsFbZ90HuJp6jGXLAgw2dSmoJ1kU64k/YkBaogFi/JUMoYizn3WatIr81Hb3ni3cPeRugvycmdAIap+oQvBA01S0du6AqfPZPubAYU6iFg9BgeifV9R50NYjeRcAgSvOvZk6XbOKTVqsH9aallfWgSWZ5aJ1JS+bkKAkUeXoDETxLROOM4ixnTDNupK1o++pL7C42WG+P9uQm3UZCErtIq3sQJleJDjEd5GgPgPKdXPCYqS8jdUkKjcfpQuZqiU4XfQaLbJPyeafuAYvC5Qp87OcU7nUHHFLRno+3BbFJBG4FPpEDkVn2bgptLnVmN93eW6reXrSBpke3f7RmVQn5yJr6YcPA1dpTX7DDo1KJ+9ES9VUm9hgp4XX0qd2nYxyqd98E3NngzQ5gEzRlGWnxKCo3ZvbvpPPGq398E/C2AcWSCkXoofazj+Wes3We0BWL0jryWpp+XeJi3yD7rMp/lQh25MRi7Kxd1/leISSDUF+iEqD05ExLBidKbktaHgyge82kD/W3VIxpwy8Yzc+N650keYkhqz4/8eP9xM7CIKx8jElJQw/1PSnK/uzWbWoaG1JigL2zwyEdTUSg+BLJund2dsjbGhuyguReX4elBRIdTjEZnBrspyWUAshUjvRtnXQs2UjD0Rnhonk= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR20MB3818.namprd20.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(346002)(366004)(39860400002)(376002)(396003)(136003)(230922051799003)(230273577357003)(230173577357003)(451199024)(1800799012)(64100799003)(186009)(41300700001)(4326008)(2906002)(55016003)(52536014)(8936002)(8676002)(9686003)(86362001)(71200400001)(6506007)(7696005)(316002)(66476007)(66946007)(66556008)(38070700009)(5660300002)(66446008)(64756008)(54906003)(110136005)(33656002)(83380400001)(478600001)(76116006)(38100700002)(122000001)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?UQbCMdNrkKKEuwOv5lcdcEd?= =?iso-8859-1?q?aYSzRzymJLu7Hdaum+eXewAfNrgg2n5axdYMiOOQS3F8aXewwgN0ARviYo17?= =?iso-8859-1?q?cSLg+HEU/Zvp2B9YHW7175zTimgQdatI97rf3frctGS+aF7d1H2H86cW2ryd?= =?iso-8859-1?q?BamJaBIZfahqBNpcVW6Hdd/9f1t0Wcg/0BWMc+Bjnvj8Cklc9RqXnVJF7xlV?= =?iso-8859-1?q?KwSE+ggWNDfSEHPYX/mm7GjICD7L39tTEfoG/pzMw2xlMnVdwyZBToVN10dD?= =?iso-8859-1?q?4jG5sk311ZBf74iS+45f2jLnIs4hFwBw81rTaD2N9oB65SUMeQyjEf+dI1V/?= =?iso-8859-1?q?EnUpQYZt5izdziDhF3Bp4mFvsYrsPf3bmJTp5cL0mnwcBwU4zy8c1+CfavLY?= =?iso-8859-1?q?HfQ7oarFwSHU5aw71pdy2X1+uJy+1ZZooNS1ODIxbVZClL6GjtBV8VnKhK8+?= =?iso-8859-1?q?b5Lm2kkB1fDH+KxHlls6VXSqR3Y/kDvkILNvejVfhm0dSvlalXXl611YB9LW?= =?iso-8859-1?q?Z6AKIO4yM0+kvx3Gy6EDFWJ/VGlLsxAOBWQnfM3tfrmORTkWxPwahP2TBLqX?= =?iso-8859-1?q?NNB1uThlYamVgKEXRcwPVZC3RgJGY2xw/LE4Lh95MQ9Po3Q4eKkQ3mys/ryI?= =?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5Zrfl/0CwT5VMJlpgHpdDUCiKRXMIod61AhfGtqpc2?= =?iso-8859-1?q?vTZpG0YjsG+5lXtOqjrEWcpRQpeubjBVt22Zyz7t/xxOdCdyjyo4rYH5T86j?= =?iso-8859-1?q?pagrouDtSNBVSoj0AY4rWltH8hn7+n4cjmCglMA=3D=3D?= Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 3Z5BixK28RwAQ1SV6QPEiY1PcN9A/r2CilHz04RmNnURXflaH6d9xlF1JSN0JXf94bmlO0j489VBi9EYoZaOpgU8kGo1B4gFEAP1ngP4bnfwuzmsufeLEKr2jujx2N1pouQHxtzLHI1SEJckOGZPBjH48FAh+pu2H18Lx4BLLzOHJIZNTJoF7cDJr1hLQ9ukMbrGt9r243NvqyTmT2VLOg4Leo7WslQHBXKHhlvq/RcwFYcvAdMEjGMNHVSfEV/1NT+/WxAw5n/R2IPWqt8Luqm/00QoFWwy5R8DBfSWpVMM8xxliNMfQll6MsTDyf9SOsmEPa2szV5DWVYju3AhuD9uEjGvGqHBwCsPGiNmbKQl09Pyzk6VX1gBvQlg0CwKSHTBR1VzfHY4MtGLj4GgY+sRJdIIan3D/9sE2Wzn/xZSjNC2YPxzYMATAzWZN4WkwSu6lHaOwP9P7LaY38AwKy/zIkAs7UbyLZ/iuk3dKkC5vXdujevLRCgNBtB+FP1US6K93565WMEO4GYa0zk4W9VMGWBbTCOwEQml7a5Mv6nKgISXIqoIu6ZD4TVP82ZxrizwJt/w0995vUwIMB0LFpGNg5vrlxqfztoPbNDziUCDVQJRYjMJMoL7zAjDLBnOqLM6Quxk5GfWQy2exl49QkWqcT1gkXAig45Hw/tZcM+ieuyRScQTSdjj0vvfzckzT9DkEPLJ+/aHPRqmKa/YTUIwAbwPGnE7VdRUD+g+Ox/c0pekC5wW6GDlSRoELoCBnCFIS7eoA9SVl1NKLv4r6zKljeckp30xs3Wjc6P5pRXxv+8+DqTW4H0kz5EmtpiEmnzz1bpUbP4FloCIi9+z/WvQb9hmGDUJH+iHqPnl1ENjOju0eCCKJbx6bGsV/EEVDuPr3PpG2LugF1gfgBNDL1rShUNHFJqvypZqRjpdDkE= X-OriginatorOrg: seagate.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH0PR20MB3818.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bc9e8d70-51e4-4548-a299-08dbf2a50fb8 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2023 19:38:14.9719 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d466216a-c643-434a-9c2e-057448c17cbe X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1VUe7sgRrcXOgkYM5sJj2x5O1ogdPW11fcfwemf5RXySEwx2Vef8QwRt3UKH2yhurEcWvBBaGz0KdNmMwSBi7tBLHiygDvXWHWZaVpuEiDQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA3PR20MB5888 Resolve whitespace issues reported by checkpatch.pl: WARNING: Missing a blank line after declarations CHECK: Blank lines aren't necessary before a close brace '}' CHECK: spaces preferred around that '|' (ctx:VxV) Signed-off-by: Nick Spooner --- drivers/scsi/libsas/sas_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/libsas/sas_init.c b/drivers/scsi/libsas/sas_init.c index 9c8cc723170d..91946f56b236 100644 --- a/drivers/scsi/libsas/sas_init.c +++ b/drivers/scsi/libsas/sas_init.c @@ -309,6 +309,7 @@ int sas_phy_reset(struct sas_phy *phy, int hard_reset) } else { struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); struct domain_device *ddev = sas_find_dev_by_rphy(rphy); + ret = sas_smp_phy_control(ddev, phy->number, reset_type, NULL); } return ret; @@ -346,9 +347,9 @@ static int sas_set_phy_speed(struct sas_phy *phy, } else { struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); struct domain_device *ddev = sas_find_dev_by_rphy(rphy); + ret = sas_smp_phy_control(ddev, phy->number, PHY_FUNC_LINK_RESET, rates); - } return ret; @@ -612,7 +613,7 @@ static inline ssize_t phy_event_threshold_store(struct device *dev, } DEVICE_ATTR(phy_event_threshold, - S_IRUGO|S_IWUSR, + S_IRUGO | S_IWUSR, phy_event_threshold_show, phy_event_threshold_store); EXPORT_SYMBOL_GPL(dev_attr_phy_event_threshold);