Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp725747pxb; Thu, 25 Feb 2021 13:30:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJztSdWPW55mLdTOGANZb7bg5uHesg44bqqLVxJ0/5a4f2PMDgUZMYXfTBi5LKGSorkrpf0S X-Received: by 2002:a17:906:128e:: with SMTP id k14mr4636357ejb.427.1614288655148; Thu, 25 Feb 2021 13:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614288655; cv=none; d=google.com; s=arc-20160816; b=XxJwt9Ex6cRwrNkJSRs6ww1wqxGYM9273R5tv4/GZflhbn5RKJEy33UVIOjeONOcFs UGwFOi3Ovat+YHjBieQs+ML+EuBs+s12DboWsmof0r+7GjdCmdEgcH7Fe5zoPLYT9A3L qaktQ1xao5UbwKr96hLpzWGO07KFZvwNXHDJ9H03Oavy1pM+A9pd74a9Znno5BgCzdOx n14oq9VYdxidjJGOfdePrSFQpts8S7zKhckXLkyMErvKX9M6p3cUyufIoDBhD5eV1DU9 FZGBJUyCxJmteoglD+1/6bfUWZn8Q/Hs2BmVieeA7qVQ2yQC6SbCNRPhM8YflnKVwTQS +f8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=vNmAJW/zyB5XEgw8h6FvBxPzYo4y5t37treLZpDOceo=; b=oZJgAgMeBAON8MsA9PwdqfQkQyRapu3wbN2duw6lnlqK169HUfMhlop+pQLcosEPeT 6c/fAHI8D6OOVjZxZby1oPf4c4EFy6tkL4Xw+DEM/uXA000sBI1o9NjO4V1NavxRL641 /GYoX+yh3QiVBibsWH4CEkIHpuUQFLHpHp19tT8hLlLLp+S4rwD8stCWKibzlierxt8o GbXUOWZb/L5T/RsYbQLOP14JfsCpBldqbt6QIUFDIkOV9eRvmaI1b7pG/9r7vsDwVTGv OyaLhehx9eLZOxM7ytlh/10RX4I4gu+rhfiGCgGrCo0dZvXAaLQBJPCEoiliOo39imoz gvxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sCz9tTsa; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u16si3934378eds.13.2021.02.25.13.30.31; Thu, 25 Feb 2021 13:30:55 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sCz9tTsa; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231721AbhBYV3z (ORCPT + 99 others); Thu, 25 Feb 2021 16:29:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbhBYV3w (ORCPT ); Thu, 25 Feb 2021 16:29:52 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 703FEC061574; Thu, 25 Feb 2021 13:29:12 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id z126so7593875oiz.6; Thu, 25 Feb 2021 13:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vNmAJW/zyB5XEgw8h6FvBxPzYo4y5t37treLZpDOceo=; b=sCz9tTsaYlGjyP3OVvfQHFE1Jq6AsnZXv+DwdO+YsX5JKbirG+dxUiAQcZel9UnGqe 6wGtCpgN4+68XYtWekQ6PmZOEBre3BbkSMKVINyqWimLyYkrhbZqL7I+Pb6YzzwEQZhT gm+7dCJdIkCE6jhtx+dyFrKO+viz0wd7E2zM+HVtjx1Gp/NN2nuwMudtsDs3lmM46eHc R8NWfSK2tB8EAIYdNkB2CGiGq+JL77iXK2UEhm7e6lABHemU0KDRpjD3lR1BCtVoSZjd KrHd5WrbJXGoIp9ZylUcomEIHcByTk90TUvzltlJ9lASAaQPDvdZP7/7qPrA1Zfj2fu+ gxdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vNmAJW/zyB5XEgw8h6FvBxPzYo4y5t37treLZpDOceo=; b=E+MV7xulRY9eneszjfsJhJmP3g17xylAoEsMHnLTHH+Fl9VAqwg1iUgH8sRPBMHItK Cl0WLU+676YV+r8AuGZPyYonLfmgOsU9wiVUrFCVgkc4GurtU36eCE3trTR9QbgDFABR y3mtcL6MUNy4ghQKdaltrRB4ITZPmAz7X2wvofVQMZ/cKr+6EUnM8rrXkU+iQ36Pmo0t tN2k2RUYL600pCeOWa91qDwSt7J9bIdFJ8hXqmJ7VFJmfyv96n1F27UKHOypIbZipggK /qgz8pswN+4tQ7WVkweFXEYhJae3xKroSefvZu3oTUmm9eIa2soZvJD5WFg1rded3czV ZjxA== X-Gm-Message-State: AOAM5338L5X0xASPxhVHeRO0Uv0piKhEk1WEkLqTPA33XOpqrRU04AzI E670MWFBXaxkhPkc+e3fcJLgCqJf3HgdEftyT0M= X-Received: by 2002:a05:6808:f15:: with SMTP id m21mr254325oiw.123.1614288551794; Thu, 25 Feb 2021 13:29:11 -0800 (PST) MIME-Version: 1.0 References: <1614243728-52952-1-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1614243728-52952-1-git-send-email-yang.lee@linux.alibaba.com> From: Alex Deucher Date: Thu, 25 Feb 2021 16:29:00 -0500 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE To: Yang Li Cc: Dave Airlie , LKML , Maling list - DRI developers , Christian Koenig , "moderated list:DMA BUFFER SHARING FRAMEWORK" , amd-gfx list , "Deucher, Alexander" , linux-media Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 25, 2021 at 4:02 AM Yang Li wrote: > > Fix the following coccicheck warning: > ./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1589:0-23: WARNING: > fops_ib_preempt should be defined with DEFINE_DEBUGFS_ATTRIBUTE > ./drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c:1592:0-23: WARNING: > fops_sclk_set should be defined with DEFINE_DEBUGFS_ATTRIBUTE > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c > index 0a25fec..52ef488 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c > @@ -1586,10 +1586,10 @@ static int amdgpu_debugfs_sclk_set(void *data, u64 val) > return 0; > } > > -DEFINE_SIMPLE_ATTRIBUTE(fops_ib_preempt, NULL, > +DEFINE_DEBUGFS_ATTRIBUTE(fops_ib_preempt, NULL, > amdgpu_debugfs_ib_preempt, "%llu\n"); > > -DEFINE_SIMPLE_ATTRIBUTE(fops_sclk_set, NULL, > +DEFINE_DEBUGFS_ATTRIBUTE(fops_sclk_set, NULL, > amdgpu_debugfs_sclk_set, "%llu\n"); > > int amdgpu_debugfs_init(struct amdgpu_device *adev) > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel