Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp250111pxb; Wed, 24 Feb 2021 00:40:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzavThlrI/2GDu6vTiZYs1e8givGNKnqPGh22U/+p6HWy7etcsQQQfhwJM83UwlsY40Umwz X-Received: by 2002:aa7:c543:: with SMTP id s3mr33060052edr.305.1614156021467; Wed, 24 Feb 2021 00:40:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614156021; cv=none; d=google.com; s=arc-20160816; b=hmUz8P0PjhGjfY7LHW2MswTZ+OC+njnS+YL2ScTzrQaKeB9kZuUv6uj8ATgjFyaqAQ OfoCQ8l1bGwOyR2VkenB6Fs3uFEAlvRMQ1yGQMEVBhWFhG2mmAWgVF7O70MBGDUrW4UW 7b8OJ+1sYx0PeGcEtqkd3jZv915kdfnP9rIGDGHAGCYJxmIpSz2nhmTVIKAua4FhMTuC ZgNjh8mp2vimoQj4ocb8esg3TWu8tISwLZokxDCqDUwLlt+yh9VONLsStx7IiM9OquU3 Irv0oSWtgABoZkoMekpHb+g4eD8qdBSfrc4R8QFJzjYa3g/CFeK6hHd7/vAHEm22HZN1 WCuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=OTz0eLuvALKjWE0wiOIUPCggNPMpjkwxXnBJZHDwNgc=; b=EHymbQcQuPisFTgcl+qZp5L2LoJJrUDsenne9DHJ3LcfFer0bxPToxdLUeR5nm2Z+N UunBfnvfrxt91y1MHpgER4MYTkj80pVEp63mLLhoyGLRnnk6y08A7DCqoM2sJE5qm5Ps M/+jELilUmWHG3ecBAYn3RcvqOYAFd2hz+fr/2KhBXYiJ5dXb0MmoikfUFh60fDAJlJW jlFEYE62RdImy+JLtjSSLrd5FBIsnvLr9+gVN1mOSJAjtT0Z+pafZUe1cwdoudz+39gD 7RxXdHcpz/HjMVyopBlWRSDNlu8Aqlh6hFPUnBplHSQfj/ftcPWeEZ6jRyfl5ApMxWPV +WcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz4si948762ejc.195.2021.02.24.00.39.48; Wed, 24 Feb 2021 00:40:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S233533AbhBXIVQ (ORCPT + 99 others); Wed, 24 Feb 2021 03:21:16 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:50460 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232343AbhBXIVP (ORCPT ); Wed, 24 Feb 2021 03:21:15 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R551e4;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=5;SR=0;TI=SMTPD_---0UPRGZ72_1614154832; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UPRGZ72_1614154832) by smtp.aliyun-inc.com(127.0.0.1); Wed, 24 Feb 2021 16:20:32 +0800 From: Yang Li To: ohad@wizery.com Cc: bjorn.andersson@linaro.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] remoteproc: pru: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE Date: Wed, 24 Feb 2021 16:20:29 +0800 Message-Id: <1614154829-42461-1-git-send-email-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: ./drivers/remoteproc/pru_rproc.c:247:0-23: WARNING: pru_rproc_debug_ss_fops should be defined with DEFINE_DEBUGFS_ATTRIBUTE Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/remoteproc/pru_rproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 2667919..04a9d99 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -244,7 +244,7 @@ static int pru_rproc_debug_ss_get(void *data, u64 *val) return 0; } -DEFINE_SIMPLE_ATTRIBUTE(pru_rproc_debug_ss_fops, pru_rproc_debug_ss_get, +DEFINE_DEBUGFS_ATTRIBUTE(pru_rproc_debug_ss_fops, pru_rproc_debug_ss_get, pru_rproc_debug_ss_set, "%llu\n"); /* -- 1.8.3.1