Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7149811rwb; Wed, 23 Nov 2022 02:56:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf637nOB6l9/5vUrinUMp+/cgKIAkgOJ6sq87Vh3V1xl8mfANPm4OO4HvOkLnK3n8lizfRT+ X-Received: by 2002:a17:906:6a0c:b0:7ad:9f03:aa46 with SMTP id qw12-20020a1709066a0c00b007ad9f03aa46mr7509500ejc.175.1669200988237; Wed, 23 Nov 2022 02:56:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669200988; cv=none; d=google.com; s=arc-20160816; b=g2MXwk7ccopGKviaCb7+120VTZeGzkyWLtVAN+DxhITQe0AqyP8l2RvRFn0bK3KdMR 5sX9L+7L79SB5RvyPbL9VlLnR+kSYLPWHyXtaKx/YQsLm26wS+x3qVpyW3JuuCTjE1Zf +HFF3G5d7nEgdYxGm7rYtfyfK8fc8CsrtB43JzbQ7F1RnM6K0gPdVBcdN0kyMlRkMeL9 cYPHAd2keuG37HWDSGEi2OWFcoIeiC9vTGggG6LSuf0N5zXXMcR+9QPeixRNhYetil8Q U+C0w2kKqEGpCc9zM9UaIKBE+x2PDJtVUsRs2zhldWZFvnZ9Bx4oybUETtBAUqHTFkNB sCGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:mime-version:message-id:date; bh=Q1tXxx7QcTWAFWfiwgO0y9PfHLVFd6SJR+0z2sHleZo=; b=OwiuDRK/BfCtbC2eG1iFn5/hY78my1jZazC4oprgv29tFwKSCe8VHn/+Oa2Fwm0HcT to/rqCmf86pGcoY0dfMK0BSpgGmXiFrUgLwF/VfZRQ6hei2/mQPb68wiCPXorZBZTjgr pxjNLpaGk4axHQP8QrkGvx72f5nwuzyFOC1z9hs0sD8ObQbXv/qPNFdUvtRibrOK9Qy+ 8ygony4ew2IEzBy6iYiGjgvbJrW3dGhfJfLloYgLuUMT84bCXa17y/2BtiKzotqjInNj 0oAM+kYGhlK2Zvc5Pe7OxemHG3tJwCKndbB6VJYrkT3Ei8se37SDrHrBNqOZQEmCr1g7 DAgQ== 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=zte.com.cn Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g38-20020a056402322600b00461c12f1f4csi6530567eda.478.2022.11.23.02.56.05; Wed, 23 Nov 2022 02:56:27 -0800 (PST) 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=zte.com.cn Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237063AbiKWJHZ (ORCPT + 88 others); Wed, 23 Nov 2022 04:07:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237155AbiKWJHB (ORCPT ); Wed, 23 Nov 2022 04:07:01 -0500 Received: from mxct.zte.com.cn (mxct.zte.com.cn [183.62.165.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A85B1055AB for ; Wed, 23 Nov 2022 01:06:46 -0800 (PST) Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4NHFc36spTz4y0tt; Wed, 23 Nov 2022 17:06:27 +0800 (CST) Received: from xaxapp01.zte.com.cn ([10.88.40.50]) by mse-fl1.zte.com.cn with SMTP id 2AN96HLb057157; Wed, 23 Nov 2022 17:06:17 +0800 (+08) (envelope-from zhang.songyi@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Wed, 23 Nov 2022 17:06:19 +0800 (CST) Date: Wed, 23 Nov 2022 17:06:19 +0800 (CST) X-Zmail-TransId: 2afa637de28bffffffffb1842df1 X-Mailer: Zmail v1.0 Message-ID: <202211231706198927223@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , , Subject: =?UTF-8?B?W1BBVENIIGxpbnV4LW5leHRdIHBvd2VycGMvY2VsbC9heG9uX21zaTogcmVwbGFjZSBERUZJTkVfU0lNUExFX0FUVFJJQlVURSB3aXRoCiBERUZJTkVfREVCVUdGU19BVFRSSUJVVEU=?= Content-Type: text/plain; charset="UTF-8" X-MAIL: mse-fl1.zte.com.cn 2AN96HLb057157 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.251.13.novalocal with ID 637DE293.000 by FangMail milter! X-FangMail-Envelope: 1669194387/4NHFc36spTz4y0tt/637DE293.000/10.5.228.132/[10.5.228.132]/mse-fl1.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 637DE293.000/4NHFc36spTz4y0tt X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY 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 From: zhang songyi Fix the following coccicheck warning: /arch/powerpc/platforms/cell/axon_msi.c:457:0-23: WARNING: fops_msic should be defined with DEFINE_DEBUGFS_ATTRIBUTE Signed-off-by: zhang songyi --- arch/powerpc/platforms/cell/axon_msi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/cell/axon_msi.c b/arch/powerpc/platforms/cell/axon_msi.c index 5b012abca773..ab080b5022ff 100644 --- a/arch/powerpc/platforms/cell/axon_msi.c +++ b/arch/powerpc/platforms/cell/axon_msi.c @@ -454,7 +454,7 @@ static int msic_get(void *data, u64 *val) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(fops_msic, msic_get, msic_set, "%llu\n"); +DEFINE_DEBUGFS_ATTRIBUTE(fops_msic, msic_get, msic_set, "%llu\n"); void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic) { @@ -475,6 +475,7 @@ void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic) snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn)); - debugfs_create_file(name, 0600, arch_debugfs_dir, msic, &fops_msic); + debugfs_create_file_unsafe(name, 0600, arch_debugfs_dir, + msic, &fops_msic); } #endif /* DEBUG */ -- 2.15.2