From patchwork Thu Jan 13 08:55:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 532417 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC454C433EF for ; Thu, 13 Jan 2022 08:56:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232031AbiAMI43 (ORCPT ); Thu, 13 Jan 2022 03:56:29 -0500 Received: from mail-dm6nam11on2047.outbound.protection.outlook.com ([40.107.223.47]:10080 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233100AbiAMI4Q (ORCPT ); Thu, 13 Jan 2022 03:56:16 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jdzoOA/0ZmqzJvpuE6PJppbK/OHoUTcKD4+Fqv+5iJnjHTCxKHAa5pmGYgUzPpxPfLvILd5l8L1G2vdbyAdAsGTTEn87t3LQJhPf9QIgeewQbeuFGmh4M8tKMZW2nbOF30xGEo2fgVMLhFOA6IFDUIv968+p3C2xzyh7WtpWsB24MmhjPZQSH0yyKp4g1rhnZT59O6vwy6e8CGXAzR/9UpBS5Xlig02K62HbxdMxMdKF2Jw6IG/Cnx19fNl1+Mee2s6jlA5ItJ5n6fuJXOR/HnkgN+tvPEBVkRa/o3ltMktlj9mzEJTy7M6ZnYPJpo90nuCJKlFoIFWa1NTH7wN1Dw== 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=QQSaVvzV1eIIDCtdl1lThLOPAXga4ycquPHAuRYACvA=; b=YgLXcu+6pVYDeuffJFSJ5aC0czx1obFHMEVR34E/T3NFcZz7ji0gOWrZ8MraI2wPmFICgBRLGDmI9Ea2TLTJmozD3SnBquR6cKt6pPJC59LgK+MToT9PLU3/nPmLpAXWg26sHyvYs45Fn7q8Q/Ra6uL6OSp10qa6aUgViegls0pjOCoAdqnaPunfjWnR/6x3VtSGi7hQySbQ+7eLmFlipbW2L1s1Pz2+A7rd4thk3DQLdAwp7xPb0bdbbZWXDJO8xZ3ZRyfyjxYGzts+qG465W6iuH07QeLP4psv3V9BOCH586m9oaw0oBLc/uFVbnM4N93udw98eYyvzC60V81tlA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QQSaVvzV1eIIDCtdl1lThLOPAXga4ycquPHAuRYACvA=; b=bxm3zykJbU5v82YNwpqyiQ4XaNuJaBd0GC6ngsOLwKz6iqCtILYb2w6QtIA98DDo8kt2JE4hYt/3QIKs4QbEzdluwst0CbGCudWcVG6j9k7TrkvPaGpQynOXW7Ko3aIqRr5jQVDva0OI7c7ju8IFVaMhdPpUz1uDZdsN3CLQOtU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by CY4PR1101MB2071.namprd11.prod.outlook.com (2603:10b6:910:1a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.9; Thu, 13 Jan 2022 08:56:11 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4%5]) with mapi id 15.20.4888.011; Thu, 13 Jan 2022 08:56:11 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 17/31] staging: wfx: prefix tx_policy_is_equal() with wfx_ Date: Thu, 13 Jan 2022 09:55:10 +0100 Message-Id: <20220113085524.1110708-18-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113085524.1110708-1-Jerome.Pouiller@silabs.com> References: <20220113085524.1110708-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SA0PR11CA0117.namprd11.prod.outlook.com (2603:10b6:806:d1::32) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e44efd5e-585d-4d12-17f9-08d9d6728c05 X-MS-TrafficTypeDiagnostic: CY4PR1101MB2071:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XnGQAPp8DbjiqJWYUP6dIfWbSJydqnrDageWwfC6Bt0A+GzmaD2t8YNTnrBNl/JOENXTco/5m4cS4ylBEa4Xd0SGdFhXYfQHG9JSj2tPI6w5BzywF8/YqdJE/mfVq/0QpWIZ5qlYUGSmrquRz6jJGuqN1lMdcLtjrHnXu5BQI4RUAXT+4/oH3KlJtzn63duFPMcGjf8A2bqkj07HfqtIDdRqt2AlxwQouoP4onUcDr2bdG4Vjs/opndCJoD6MTBKjceGEVVlh19i0PSqTu+IHxgIuVyvOmOl7bnqQRtEUKpcJzmPvIm5CxAbGlzhZX2HhBu95yfynd8LU4113B+DTOKOG/6eaSnP5mtZZxIRpsEYg5mkDi6MawWxeTuPI4EEtDCDbf3+yXJ3JelwUj5DVnTXzO6z2iD2GfVDRZyNUY6+rk1Ng6I9xYOiBt1iz+jkSCyTMCUqk37kz3FUjCjnNt53zozF8vVNPoadhktRZievH3Nm/MC6Qgj/+ulKDcIZQrRX9VAnxTeO7q6gaZ3gKPfPfH9tx2I6lZqxYGmj/jkh77AWj1nwfSE62bplmB9YDVGBdb9QezVX1TKMaaIhVJSXhmbmfiq+kB+/8zAfa+cEHdpiptC9RJwNe6BE/+E6gkPGcJuY+pR/iDZVOHF6ng== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5657.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(2616005)(66476007)(52116002)(8676002)(6486002)(4326008)(38100700002)(8936002)(83380400001)(6506007)(107886003)(66556008)(36756003)(508600001)(2906002)(5660300002)(6512007)(1076003)(86362001)(186003)(316002)(66946007)(54906003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HaofEGOB48ASQCMH1CPJGkbsOgYu?= =?utf-8?q?Du3VwZHGwUHRLHxpN5jnLVveNbpLQjoRFfK5TO4rYJj87rWsXHbfGSLM+Po1Ff2mK?= =?utf-8?q?HQ6u2vLJhoua1ve4scSAn8CK8XK68Ag4HhTK0BRYhex4I+U2J6CoYdi1jE3/Psesc?= =?utf-8?q?G1Q+mHwaiuzDUpUZhEt6al1PO31ugIV0HvYRCyf15TTLMFveEY8Ho1AbfBBJfUINe?= =?utf-8?q?lRwxXCV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eUdGoprRs16SNmiEbi+amz40n+ytWkoiZmjPHLUlQ1N2HpaYPz7NPhfC3LrZ?= =?utf-8?q?rsqGA3BNtVCCArAuGrpMQrPSY3KzhEgnAB7aU0sUQGxxaPPUEO7Nk2X/IOlY+pnHm?= =?utf-8?q?7xxxfwebmCcAncAQ0OKZqaF8rUo/s0i7CcIHgjeHjpn20Oiypz/a23SqMDVyCkHxP?= =?utf-8?q?YKV2GBI3Tirl7x5tmR622LyoiTTzN4GCg6emathPx8gZZL9d0iEfIGODIrJ4RYMuT?= =?utf-8?q?suTGQnYwtQpZiWeoxkQysd0ALt+s71Jh18kumAPdyRkL5WY62aIiaKPdk6BnT9lf5?= =?utf-8?q?WgHydjDs2/D7Qe9QqOZWjh6hdg5PIm8mJSClEQcHqkqFFuDttGei3S5maznDUHiQO?= =?utf-8?q?pvMQyOEINb4vX+Y9ZqwWduDRiEOPc/0FOktnzMyoe8YXY4Fw5Qi+LoUNWlJ9/udTa?= =?utf-8?q?0u2UDoNH5XYVxX3dQbnffpEDy5kEAWqmoskquhAULVUhWiz5Qcpa6i1B+LKxuBAAl?= =?utf-8?q?CO2EidT1b3JL9UELoaHA99f5dHLldH7UQPDe/tkl2pQuqiYWjFurZk=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: e44efd5e-585d-4d12-17f9-08d9d6728c05 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2022 08:56:11.5594 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gIp8TVxR6Krt7E4Q8IwY/HeFeo8TNv7n7SAt/jY1OVzMsWGv1YH+/fu7BllSmS5+vw21r5Kid8+uxBQMPu/clA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2071 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller tx_policy_is_equal() was the only function from data_tx.c without the prefix wfx_. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/data_tx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c index 54ff9bca78d6..c3efbcdcc8c3 100644 --- a/drivers/staging/wfx/data_tx.c +++ b/drivers/staging/wfx/data_tx.c @@ -66,8 +66,8 @@ static void wfx_tx_policy_build(struct wfx_vif *wvif, struct tx_policy *policy, } } -static bool tx_policy_is_equal(const struct tx_policy *a, - const struct tx_policy *b) +static bool wfx_tx_policy_is_equal(const struct tx_policy *a, + const struct tx_policy *b) { return !memcmp(a->rates, b->rates, sizeof(a->rates)); } @@ -78,10 +78,10 @@ static int wfx_tx_policy_find(struct tx_policy_cache *cache, struct tx_policy *it; list_for_each_entry(it, &cache->used, link) - if (tx_policy_is_equal(wanted, it)) + if (wfx_tx_policy_is_equal(wanted, it)) return it - cache->cache; list_for_each_entry(it, &cache->free, link) - if (tx_policy_is_equal(wanted, it)) + if (wfx_tx_policy_is_equal(wanted, it)) return it - cache->cache; return -1; }