Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1275767pxb; Thu, 24 Mar 2022 16:40:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjyoS34i2OH9+0eC+AMreAczK1zUV4g0mjpPr1YD35rs1+2PTSs8L7zIR9dM0AZTOMHovk X-Received: by 2002:a17:902:f54d:b0:154:6794:ab38 with SMTP id h13-20020a170902f54d00b001546794ab38mr8398243plf.114.1648165253659; Thu, 24 Mar 2022 16:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648165253; cv=none; d=google.com; s=arc-20160816; b=TX6f/GlOiEAdznvC/KVZZZmrdeRDhsYRynmEqBUbScp0vBEq03W5EouEJeiCiVl40e QWZtLHlJT32NCrMmqH9E5YlYA2Xz9+SoOgCQwo0k/Aqzx0mEvmC3HKMSMEktsHQwqLnM xLeeZceJM4qj2dHAKd7FouHpe7k+QsnrTITIghT498IpXCm5B8EcmRz4o2iBgcHTzpem UV/v8OEiXy/jH8AHRtrj7x6qXLfIw4GlXlsZoJpA94sJqrX6+y8AZx5oyFfK7Ka+tGD2 9VGVFiY0W6TauGyz8wtnSccvmCG78p73W8r3HGfo7gve+EciaJ453jtrCaLhFredd+PO K5yw== 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 :message-id:date:subject:cc:to:from; bh=yMHFzzXjatk1MS7Z+QpGDUJXDtTXlMxR77Hc3LMbKsM=; b=G2uYkuuKfVNba55fLBHgFjf93bVGADQgA/s9B/Dl6Dopj0HQqbxVR3d7rMG2xk87DJ mpjuyNl0JzhwJdW7vKbQAGUyLtiv2IFJHRP/u1glviKq3RnttaTEi5KK1C/25wlaO6Kg mL4WpfjueI0C26JEeUiwx9YyPZBpIMJhfe5kzqa4hP70ah0slqyo+RqmnQekhR3i5MXw /wJLvLytvMOG8ALtvLLo2qalodtfVRWk1tQtWiNEibEHbQaQvmTSjB8GUcXjMegXSAho rDFfy3HLvXU0xAiI0q0uMLSYU0703dL7KXlDfsKqaSZvoUJIScjCAJB0ONbmX5gdy3uN gFxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y30-20020a63b51e000000b0038643088817si693651pge.517.2022.03.24.16.40.40; Thu, 24 Mar 2022 16:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230304AbiCVXym (ORCPT + 99 others); Tue, 22 Mar 2022 19:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbiCVXyl (ORCPT ); Tue, 22 Mar 2022 19:54:41 -0400 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 719FB5D182; Tue, 22 Mar 2022 16:53:12 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R331e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V7yMQzf_1647993189; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V7yMQzf_1647993189) by smtp.aliyun-inc.com(127.0.0.1); Wed, 23 Mar 2022 07:53:10 +0800 From: Yang Li To: jlayton@kernel.org Cc: xiubli@redhat.com, idryomov@gmail.com, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] ceph: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Wed, 23 Mar 2022 07:53:08 +0800 Message-Id: <20220322235308.9770-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./fs/ceph/debugfs.c:389:0-23: WARNING: congestion_kb_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li --- fs/ceph/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/debugfs.c b/fs/ceph/debugfs.c index bec3c4549c07..05d15a0bbd9b 100644 --- a/fs/ceph/debugfs.c +++ b/fs/ceph/debugfs.c @@ -386,7 +386,7 @@ static int congestion_kb_get(void *data, u64 *val) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(congestion_kb_fops, congestion_kb_get, +DEFINE_DEBUGFS_ATTRIBUTE(congestion_kb_fops, congestion_kb_get, congestion_kb_set, "%llu\n"); -- 2.20.1.7.g153144c