From patchwork Fri Feb 18 07:02:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yihao Han X-Patchwork-Id: 544085 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 6F6BEC433F5 for ; Fri, 18 Feb 2022 07:02:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbiBRHDF (ORCPT ); Fri, 18 Feb 2022 02:03:05 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbiBRHDD (ORCPT ); Fri, 18 Feb 2022 02:03:03 -0500 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2129.outbound.protection.outlook.com [40.107.215.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98ECD17AB3; Thu, 17 Feb 2022 23:02:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SOXKkHAAVray7Nt0qJCCdFj4b1oPpVZR+HS4imuxP8QJj97HltgW4vFJjBe4+CGa8FF/xdnQR8uBZbpkt9cEUtI1qJyIaTE1TYUiAGsSZ4Bwhy//GEDufMrhmJKvlYYVqG8PjS5UU16GBH9Z9Ym2hQGvLlwYSUdf8Grq9n21L0+IvFOwKgzEDfcErIDgRkEvI+Nd/He0uCDvpVtR2nENF4H6qML3sy7BoZcFNQY/POi6WLrK7QnJPcpYphR51IzpKminutZz2XtSRMzvtEHDDH6kr0IQblm1v2GRIpCDT2z4pxN6d6B6Ro4Hv6eNyy5hO2gKsZPgpAlAYAjCL+NlfQ== 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=ghv73p1V9L+WcDGzE/iZmVuCzDu2pr4vF6QkCbkV2pU=; b=f9GDGAhG5RurUPeODabeMPkl2HzeAxaaktd3npHQoxfSavH2CTw86icjTTEj06LdrtvHyMhfYSLZRRWFxrxl+HSdHu/BYwUXzOiN7ymxNY9IhdMxSlKJ5Ta4xRyp1rOKa1kZLCC9lqKQYH6KKyTwoRrFrzkdDq2Et14+ClAzgkxXDvybXlWZNEqcDYKpFo4eJWmyw4p8+RBwPDOJFjefqvXG3GYUaJdn8DuqSJRWXmke2adzLmYARldtWn5sDUodxifWAEC1CLHjrHzrfOUadURVACc9OPBB/N9y68yOI2bH3qCoPo6/VwjsfOqeCv+PdhhGE6MmQ+K5KrSrjIVdxQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ghv73p1V9L+WcDGzE/iZmVuCzDu2pr4vF6QkCbkV2pU=; b=lyeJcdifa5zVbYavxjt1VjDCKLGE3Jn7yrCEyEskGfLBA/UNddlCzydrgSg9GCb2H5/L0WftIzD4PlFH8iPCo8aS/sk5atI0+6tsxchmI4ndFOrDPyHnri9FptIGxLw62/lqR6ydnRtt/Ex51r/10sSuLc12q28NA3046NeVemY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB4173.apcprd06.prod.outlook.com (2603:1096:400:26::14) by SG2PR06MB3321.apcprd06.prod.outlook.com (2603:1096:4:93::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Fri, 18 Feb 2022 07:02:41 +0000 Received: from TYZPR06MB4173.apcprd06.prod.outlook.com ([fe80::30ce:609e:c8e8:8a06]) by TYZPR06MB4173.apcprd06.prod.outlook.com ([fe80::30ce:609e:c8e8:8a06%4]) with mapi id 15.20.4995.016; Fri, 18 Feb 2022 07:02:41 +0000 From: Yihao Han To: Johannes Berg , Kalle Valo , "David S. Miller" , Jakub Kicinski , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: kernel@vivo.com, Yihao Han Subject: [PATCH] mac80211: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Thu, 17 Feb 2022 23:02:28 -0800 Message-Id: <20220218070228.6210-1-hanyihao@vivo.com> X-Mailer: git-send-email 2.17.1 X-ClientProxiedBy: HK2PR06CA0015.apcprd06.prod.outlook.com (2603:1096:202:2e::27) To TYZPR06MB4173.apcprd06.prod.outlook.com (2603:1096:400:26::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 67a0b150-cec0-49d3-42dd-08d9f2aca7d7 X-MS-TrafficTypeDiagnostic: SG2PR06MB3321:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:813; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zXyaDFEIxIms6vm/WBr35fb1r44yV9DrBImVFe73VQCQDz5yW/P5bY4hpOcHSvkSeha0aYz0V6QyLagm+EtvlrE5ZCqGffLE7vpFVEcVYzlG3o0Sk12yM8vSCr77acN9vzvlp6xClYODiDeSDiKRlo60tv6fvpBCEVYEwJQmZGVratvHI8j8xOpRsz+YZD/qMmeU12QeC3/+8/n45z1x60tZdCuJdscFf7jiv8keY+wXgS6JSXCrql/eUYQZJuY5lDqdt28A+vRcmzxaGNyF7ueygHtG8VK88bqINZwGWuLcdUgVUVCOF+BH2YGw/oWk87v3RBRHmrbKDwYpflb5hD2pdXvHfm7F9Gvq+ClylrbMGSVxjQVMqqPYDKgdAmduiQU64aeASFYmge+hXvu8px4fr6UeihVYoUUYCbC0r/TnAwnNdF8U0pDeoZQkXVj1nB3gfP8qFvdBZTSOKkamGtWUp6gfQaWdW6kDN/D01SkFMA/Zph7qdB3amtoIQVn3IWbzxZ8oLxjINFQ03d3RpR+li/t+7HPv+tCIVps9j/iT1tcbnb4WJv2OcdQZnBUxHczRXbPfD8q4UVNA3Yyetsn2UXd672R405bSlV+/JhQvvzZAca0FKrZwx8nXp0dv1sF0JdZPElGM4UadgtY0b9osvjo2gzSBVp/PRkmHDivTPpVZSDxM0ZQ47KOELAzZvPTIOqhB7J/JssrekEbSsQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:TYZPR06MB4173.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(52116002)(4744005)(38350700002)(508600001)(6506007)(6666004)(6512007)(316002)(8936002)(110136005)(83380400001)(5660300002)(36756003)(1076003)(26005)(186003)(6486002)(38100700002)(8676002)(86362001)(2616005)(107886003)(2906002)(66946007)(66476007)(4326008)(66556008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jmymBMmg/tmLnsrhEiRwhpNhWEa8o17sNYFlQdMnV7/ZG/9CBpBApem8t6PeKXEp8nbG2pQ2zUkUSxUQSBRonZL0L8sSLMm7Da6zIFdRF+i782KM4XzTyOO5NeiqiaOsFOhsIjgnNjFlfCTn49edsdip1MXK0FQU8hwvtdI74LtLO/vfoY4QB+ccg26L2zae2c/+bFhWflca8kBflVLN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pTc0JsQ98yL16Gx9hXLFEl6yILCGMF+8woCTYm953+/IaRX38mGFsZ1IB6WLvrUjljNInuX8hURKsenHP8ze7e7ydWi+J3V7WbNufpAE54ip7Lt9WcgVX13FkAHyfQm/KvT4EKZewPBXiy+Qnqjn5MWh3O412is9f85+E5jLZVon98XwbV0Ky/VIS9r3Yuy45ua5cctfM6cPR4uYOYwTIzljkf40B8/ybssTXEk/3WJ5PV+RvONkTjww/fcXdaLFHMtZnaa/7zRVxFClsIcm8414nr2T0nvgCP9FQTifnIArGyV9PD2fmubGokE05aE+wbvs6L0QMQd2+iZi3I= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67a0b150-cec0-49d3-42dd-08d9f2aca7d7 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4173.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2022 07:02:41.5709 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hkE4q96/O8bqQAc7aH9Drppdqq0gJmLepAwie34yBGnHLPVChFrDnBXRkpX5YHWbH1LGpHe2t8vgtZaCvOv7jg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB3321 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix the following coccicheck warning: ./drivers/net/wireless/mac80211_hwsim.c:1040:0-23: WARNING: hwsim_fops_rx_rssi should be defined with DEFINE_DEBUGFS_ATTRIBUTE Signed-off-by: Yihao Han --- drivers/net/wireless/mac80211_hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 18a578495c37..a4ec165d4793 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1037,7 +1037,7 @@ static int hwsim_fops_rx_rssi_write(void *dat, u64 val) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(hwsim_fops_rx_rssi, +DEFINE_DEBUGFS_ATTRIBUTE(hwsim_fops_rx_rssi, hwsim_fops_rx_rssi_read, hwsim_fops_rx_rssi_write, "%lld\n");