Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5931354rwd; Mon, 5 Jun 2023 10:23:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5uaUnCjgHd8WMwLmBuHh8GspYJ/DDuEXQFQIamaNRk6captnZP/b13XsvLvYy0fwt7EIeD X-Received: by 2002:a05:6a00:1822:b0:65c:2ea:25c1 with SMTP id y34-20020a056a00182200b0065c02ea25c1mr379914pfa.5.1685985798847; Mon, 05 Jun 2023 10:23:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685985798; cv=none; d=google.com; s=arc-20160816; b=QgzNFfiO3cLLdnhYz/XXHCdvukoKkPsZClaw6eftyzlhv0SPOSTw/r31nl3oVJxgE0 MpKPXMlNdWX1nOLsOrCUvu+E1KhHJPLpRSeeUATKbk6pwC8GsZfiNrqCYynT6Rg0mzbj N0lEBS63Sh18WDd/jqBP1qgqMVzp+jHRy6go0L/DryWiXKLu/JuSLW6yMZZuBp5svrTT rd5XGqiH1I1YhRrJxdewf5jX2n7u25sdzBPzlOKgD1WZcNWnXOuK/MM6IhSTmEfgI2Cp 3hpU2lhEbjw3dSn6t35dpyZ0cLiFKvnGHvztSHesmQ2thn1D2GO1pSW+NgKw0Ua78X3R J4rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=sUsPK5qT+Od/SIBa5UUhtpAmbErx2EC2+EeGGcYa5rU=; b=lGgE2Y/A6mfh+sld0+k9byX1pvC8pFBz5jks3jVNNdQ7yNTkAipwgNVxVf09ss96PT 5tiMhlPmu+MvX3g4bAPIpm2+fdC8KiXlkE+DZWmlk0IjogvzbUIy2XBmLrSq2LKBHLnT zSpZThoonPpLfPXCV7sWhiKt18a2+YQSPz/aamhov5ZtubIGPblErpSgvFxxHOqNCflG SY67jwADRd/BZ6WWx40a4Y4bxVwM7rpAMi+zbYt8F04Ka24LoaiX7PbUb6MEsh6pB95r XK1YyzXn1c+1TCxnG4nLdEU6RUxs+5XRDmrsz4SuYHYjSQkfcymn2YLZDZLlP9ehdRP/ o12g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=J6mjvwgX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z130-20020a633388000000b0052872c32995si5694926pgz.724.2023.06.05.10.23.05; Mon, 05 Jun 2023 10:23:18 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b=J6mjvwgX; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233469AbjFEQlv (ORCPT + 99 others); Mon, 5 Jun 2023 12:41:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233042AbjFEQlu (ORCPT ); Mon, 5 Jun 2023 12:41:50 -0400 Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D1BB94 for ; Mon, 5 Jun 2023 09:41:48 -0700 (PDT) Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1a2ad8f4075so3561500fac.2 for ; Mon, 05 Jun 2023 09:41:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685983308; x=1688575308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sUsPK5qT+Od/SIBa5UUhtpAmbErx2EC2+EeGGcYa5rU=; b=J6mjvwgXki3I4xMigCdrzUJtNhQwAFBtz+p5o8skfFXfPZFfgCEimm/AmxMpQJ4P1J 6k4+JhydIkYRZuLgFEVXH3fHJBF0eQgDuJGZFmaGeIiSG9nkxqrWEvZiBmWHt7nuwisW G8omI0M6sfveLCICXm/frZh0InwJRKvH0F4J+jozB1+ioi5bCD056Ddx3oFTA3sf0/iL EFj5fFczA6AIdJoqBgVUUWg5cgDInGFJ4uSzdaOXJZW1xrMhBN1739vGobQ/oRgsknBI PgSxh+kjnKiB/Kpzooy8QJp59MUa+rH6nQvW0Tk123hXjp7iTFtUbE8mtPxgfN/Ty0yv RFEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685983308; x=1688575308; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sUsPK5qT+Od/SIBa5UUhtpAmbErx2EC2+EeGGcYa5rU=; b=csgB7lql9+YC3wPFSZnYd7ryah584oykQRULhp4YCM5g1Zfwhc4JlYdDPjJvnzYg8l BSPhcRXfSo/FS+8W7S9KG/krJW49A86kOoUWmgByBz8Vhxc1AxPHwUjWJxoVy9e2Dlw8 KtMe2j9krlx9x1/ywlMgmTN2yzYxgwan33Oksul3uNTdliZvXuWqmh6rQB43HhnBPGvq pkrvGpitC8GuGQEsD64eAg/8A7jXiUE1g0QV74V+r/xoDQ4jCJVogb4SFS4ixq3pOXBl hxKJX0Xo30Mj3BK6bE+k33YksmWscUi65HvERH4eksL+Kyv9CYAkHaJzCz2ms69Jmw/3 XcpA== X-Gm-Message-State: AC+VfDz/dA40FbEON6i2ycpt7+P+y/iAndL/SSotZsUv1bu3YniNoZzy GYkXuUgcH1AhEyFcwpcIiMpM9foDWtqGjTuM09wBwEz8woY7/A== X-Received: by 2002:a05:6870:3651:b0:19f:e1ed:4cc7 with SMTP id v17-20020a056870365100b0019fe1ed4cc7mr245378oak.0.1685983307836; Mon, 05 Jun 2023 09:41:47 -0700 (PDT) MIME-Version: 1.0 References: <20230605105834.702945-1-arnd@kernel.org> In-Reply-To: <20230605105834.702945-1-arnd@kernel.org> From: Alex Deucher Date: Mon, 5 Jun 2023 12:41:36 -0400 Message-ID: Subject: Re: [PATCH] drm/amdkfd: mark som eclear_address_watch() callback static To: Arnd Bergmann Cc: Felix Kuehling , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Jonathan Kim , Mukul Joshi , Arnd Bergmann , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Le Ma , Ramesh Errabolu , dri-devel@lists.freedesktop.org, Yifan Zha , Hawking Zhang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 On Mon, Jun 5, 2023 at 6:58=E2=80=AFAM Arnd Bergmann wrot= e: > > From: Arnd Bergmann > > Some of the newly introduced clear_address_watch callback handlers have > no prototype because they are only used in one file, which causes a W=3D1 > warning: > > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c:164:10: error: no pr= evious prototype for 'kgd_gfx_aldebaran_clear_address_watch' [-Werror=3Dmis= sing-prototypes] > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c:782:10: error: no prev= ious prototype for 'kgd_gfx_v11_clear_address_watch' [-Werror=3Dmissing-pro= totypes] > > Mark these ones static. If another user comes up in the future, that > can be reverted along with adding the prototype. > > Fixes: cfd9715f741a1 ("drm/amdkfd: add debug set and clear address watch = points operation") > Signed-off-by: Arnd Bergmann Thanks. Srinivasan already sent out a fix for this. Alex > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c | 2 +- > drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c b/drive= rs/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c > index efd6a72aab4eb..bdda8744398fe 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_aldebaran.c > @@ -161,7 +161,7 @@ static uint32_t kgd_gfx_aldebaran_set_address_watch( > return watch_address_cntl; > } > > -uint32_t kgd_gfx_aldebaran_clear_address_watch(struct amdgpu_device *ade= v, > +static uint32_t kgd_gfx_aldebaran_clear_address_watch(struct amdgpu_devi= ce *adev, > uint32_t watch_id) > { > return 0; > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c b/drivers= /gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c > index 52efa690a3c21..131859ce3e7e9 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v11.c > @@ -779,7 +779,7 @@ static uint32_t kgd_gfx_v11_set_address_watch(struct = amdgpu_device *adev, > return watch_address_cntl; > } > > -uint32_t kgd_gfx_v11_clear_address_watch(struct amdgpu_device *adev, > +static uint32_t kgd_gfx_v11_clear_address_watch(struct amdgpu_device *ad= ev, > uint32_t watch_id) > { > return 0; > -- > 2.39.2 >