Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3077891rwd; Mon, 22 May 2023 08:20:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4AWWD+ATfcSXXtRXmO2x3/ZPYkyAmuL4Rm2ELUuTi+LdIaLTtV1s9QPeKK9QXfWViD/u72 X-Received: by 2002:a05:6a00:1803:b0:63a:ea82:b7b7 with SMTP id y3-20020a056a00180300b0063aea82b7b7mr13060037pfa.28.1684768837459; Mon, 22 May 2023 08:20:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684768837; cv=none; d=google.com; s=arc-20160816; b=ARbRen7cFlnFWwzTiAiigAcxgKZN1irERjGQy7BvKgGlXHwH5x4IE1D42zHMTZex0M i2XvwgW0tH8VIRfDFaQS+KYgRNlWjPCfJCmMTjFP8iRLelsbKK5F7MTnaKIRJvuaDtiM 0JBbloBK2MEiYfvQT6DqgKq3oLIJvnUy/kmqty+lvG5aDYL/A3Dv7vTb+mPJJqfldzsw NKgBjaUsjI4UUgFwYAzckLIqNfMe9zG76pRfNkRVVoBA0dHNZwmBETgTPzMM8O+7G5xB 3aLygOSvuyXSQTAqb3O4y8aSm2CoaR3ZOS7AP0ssPmmoYWQy3afCEKZW/ilOplKjHTxl AKLA== 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=/zEQv3FIbNS1PaTN4avSONv8aFWRzp4oZp63VmdRfIQ=; b=qzh8Bntt0Hpitoc2OdjmYKCuaV+tcS1F1WbQRHsDDQYyAHwAbv/3k2rWGGlhHcfjNR 7DN4A++vjlcYZcn5zV1el7gksK+NSFURODG8QuymThcR3YmCS0uyA34tNfMhc9FXZJl7 FDyE6N7y1ycVKuxbNIJsWIdAjIr1zwRZeQAv7dMybv6cpHLR7Z0fR1XwUolF+eabtmdR sj97J7lxwpUYmhuatNLhqLiOIQnX1Na68TIg09yvG/ljGJJ7Pl8xOGGAfCdBnYfXLR3B LtvSDsfY5rjsQVEFpBBumZQr474vzIBxlWtpcUy6cSgFpgUeCWhp3tETbBJ1GJ9ldyb3 VBdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=APxy0p2J; 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 t24-20020a639558000000b0053416d0b54fsi4666302pgn.165.2023.05.22.08.20.24; Mon, 22 May 2023 08:20:37 -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=APxy0p2J; 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 S233265AbjEVPJB (ORCPT + 99 others); Mon, 22 May 2023 11:09:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232836AbjEVPJA (ORCPT ); Mon, 22 May 2023 11:09:00 -0400 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6A4CA for ; Mon, 22 May 2023 08:08:59 -0700 (PDT) Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-55254414406so1685247eaf.0 for ; Mon, 22 May 2023 08:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684768139; x=1687360139; 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=/zEQv3FIbNS1PaTN4avSONv8aFWRzp4oZp63VmdRfIQ=; b=APxy0p2J1/Z9SeVZDSFJRP7VppH2mbN9g1a/A+OCaoF1awvld8+JcU3RndpAbDoGvw rlWlQcqxw5nbtDVdCMt0IPNiavwuDHKx37xbTu8bs4Zn+SIE0eWt4OnKpGPCyyhgDppn X+gs3+Kc/G+uNygq8Sc/vu6h5PKVXKcD6QzTmkc2DpANpfixnQn2+IMXhrwu5Dic+vyQ hv/4oPqypp/Jvww2ra1CRNWOHmvPB0/T6MM4DaLrXS+Ku6uqh7eMTeWZfgJ/HPwYsNJV fTn3aKfUqH/A0eWJZcVoXfMpjIvSnqRz2mR6EDbXmM5XqrVUDcdUMbXSMhbhj9B+gGyM 1EqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684768139; x=1687360139; 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=/zEQv3FIbNS1PaTN4avSONv8aFWRzp4oZp63VmdRfIQ=; b=Z2GnuNbbUphftFXZBI63epIc0I31Bywdjb7L8+AR/lE9+z9BVrVU0uxLsch6Dvv7yg 4g5l7bsAp6KfinH5kOxUYyDBOpnSnoav6sWjXhqmz4aq9llut2kmGZAJnMbyLAGqmaeN wjuMo/webIjQNbtJ7zqUgf8tgljY0tBMfdEkDtkGoNEJkcZM3DrW2Z0jDYTSJMZoMT/8 xNaZzIjJvxkmkkGapGFZy18cP6GE0qYYWHO4M/DltmK5rsRR6FIMMYt+l8p6VH1FxHci Q78RweYqC5t/NHur38F4Jee9N/labwY+NNAZtupWukWtdA1wXFf4c5L4gDeMzWmADJaS X4kQ== X-Gm-Message-State: AC+VfDyYq67cOnl8T+mivqZct/lKWKMiwrNeK350c3zL8RknRWlpRXq+ XhMhdUI2o6Q73rtxl8YP6tdp5kZB/UVWgKA7VC0= X-Received: by 2002:a4a:924d:0:b0:552:4bca:a9df with SMTP id g13-20020a4a924d000000b005524bcaa9dfmr5154196ooh.3.1684768138804; Mon, 22 May 2023 08:08:58 -0700 (PDT) MIME-Version: 1.0 References: <20230522115047.1169839-1-arnd@kernel.org> <20230522115047.1169839-5-arnd@kernel.org> In-Reply-To: <20230522115047.1169839-5-arnd@kernel.org> From: Alex Deucher Date: Mon, 22 May 2023 11:08:47 -0400 Message-ID: Subject: Re: [PATCH 5/5] drm/amdgpu: fix acpi build warnings To: Arnd Bergmann Cc: Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Lijo Lazar , Le Ma , Tim Huang , Jingyu Wang , Arnd Bergmann , Bokun Zhang , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Hans de Goede , Mario Limonciello Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Applied the series. Thanks! Alex On Mon, May 22, 2023 at 7:51=E2=80=AFAM Arnd Bergmann wro= te: > > From: Arnd Bergmann > > Two newly introduced functions are in the global namespace but have no pr= ototypes > or callers outside of amdgpu_acpi.c, another function is static but only = has > a caller inside of an #ifdef: > > drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:902:13: error: no previous proto= type for 'amdgpu_acpi_get_node_id' [-Werror=3Dmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:928:30: error: no previous proto= type for 'amdgpu_acpi_get_dev' [-Werror=3Dmissing-prototypes] > drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:860:33: error: 'amdgpu_acpi_get_= numa_info' defined but not used [-Werror=3Dunused-function] > > Avoid the warnings by marking all of them static and ensuring that the co= mpiler is > able to see the callsites. > > Fixes: c34db97b8217 ("drm/amdgpu: Add API to get numa information of XCC"= ) > Fixes: 1f6f659d06e1 ("drm/amdgpu: Store additional numa node information"= ) > Signed-off-by: Arnd Bergmann > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/a= md/amdgpu/amdgpu_acpi.c > index 873532c4adbe..1dbcd0e62478 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c > @@ -899,13 +899,15 @@ static struct amdgpu_numa_info *amdgpu_acpi_get_num= a_info(uint32_t pxm) > * > * Returns ACPI STATUS OK with Node ID on success or the corresponding f= ailure reason > */ > -acpi_status amdgpu_acpi_get_node_id(acpi_handle handle, > +static acpi_status amdgpu_acpi_get_node_id(acpi_handle handle, > struct amdgpu_numa_info **numa_info) > { > -#ifdef CONFIG_ACPI_NUMA > u64 pxm; > acpi_status status; > > + if (!IS_ENABLED(CONFIG_ACPI_NUMA)) > + return_ACPI_STATUS(AE_NOT_EXIST); > + > if (!numa_info) > return_ACPI_STATUS(AE_ERROR); > > @@ -920,12 +922,9 @@ acpi_status amdgpu_acpi_get_node_id(acpi_handle hand= le, > return_ACPI_STATUS(AE_ERROR); > > return_ACPI_STATUS(AE_OK); > -#else > - return_ACPI_STATUS(AE_NOT_EXIST); > -#endif > } > > -struct amdgpu_acpi_dev_info *amdgpu_acpi_get_dev(u16 bdf) > +static struct amdgpu_acpi_dev_info *amdgpu_acpi_get_dev(u16 bdf) > { > struct amdgpu_acpi_dev_info *acpi_dev; > > -- > 2.39.2 >