Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp123363pxm; Tue, 22 Feb 2022 18:30:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrKpGNDmgWDTSvYWVKXBfqaAe9NjmG0DNV0JpJPdvnxuxM6RSNHkSJsiu9cNZdqU1xsk/O X-Received: by 2002:a17:906:9f06:b0:6ce:36da:8247 with SMTP id fy6-20020a1709069f0600b006ce36da8247mr21322211ejc.651.1645583402965; Tue, 22 Feb 2022 18:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645583402; cv=none; d=google.com; s=arc-20160816; b=THE+eRMd7JcLHbr3evojaqwhNsUiMI5lSyDNnpOMIwIDwftcqd6e1F6tVXcs7bS+x6 DRQUfp4TF/7KCbqrjAe6BQATnJyXMCPPWxDOgPVjW7jZvUKGymJSs8sIMryPyYcj41Wr dCKy9GOM1/PUeSnHVJXJOH7k/VKTiYGCVCY0vUCMsxwBeDvg9UX1BvGkl0KPGAS2weUl s1gBXR8LH2NBfObQ0Z+w4dMu/4APF6V8TRTZV7vssbPhmLlFe3YjUOJ97TRRwSu3HWlh aPMZ4zDYHUvbUkIqYM+FYSTiKmyZOJxELMoHNDDkSM9QuA5G8eH2mglL9DZTTiv37n4m Uw6A== 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=Wc0yqHfoagRsyXzdU2Y5/dAqtfWLM+jPqSQjyf20DAQ=; b=JtKe37uRz4g6DL0Q+cF5Yh5R56+2byXdInn1gxYvLoHgJP2EqNWuIFYx/7dv4gc/Su PAh3sm9jfRglWmL9XzssoS5EQdvYCmF5PWU4gRlWdmI+bPJXal7lNRDcRCae3gjzCCVU HIG0uJ2mnyygnKV5HCOFllJ8sJyZB9A7Qfn4U/UwD1ML5Vi9rGVAhdBU+QZTQaDEmvvI pqKF9Q0RU1ePImuzI//OMkMI6AeJNFFtU69omzYvyKaCCi+hk+OTwpU/Bql81gkc0QsF OOby8Y2Tgdsamr7draWBaSQRRH/PB6yhNTYI+0mUtpLC2XBLehmhJ/bbk3hz2Hv7h2rE j5PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OHvXsiq6; 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 z67si15249057ede.475.2022.02.22.18.29.40; Tue, 22 Feb 2022 18:30:02 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OHvXsiq6; 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 S234007AbiBVQ2M (ORCPT + 99 others); Tue, 22 Feb 2022 11:28:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231893AbiBVQ2L (ORCPT ); Tue, 22 Feb 2022 11:28:11 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCE93129BBB for ; Tue, 22 Feb 2022 08:27:45 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id 12so7074736oix.12 for ; Tue, 22 Feb 2022 08:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Wc0yqHfoagRsyXzdU2Y5/dAqtfWLM+jPqSQjyf20DAQ=; b=OHvXsiq6g3Rnm/ksDpKM0+8vS0aMDT5I0AZgHcAPddmSWj23yidnTLsiT5ki1k+pXC 1p9cfzcgh6jCI28Jxy5mljhTRq8Z2cxKb4SM+a+RJa3Tmz+BA4IEosYgK1omDVW96b6w De7m1v1lUngpKTVZdoXCcVvmPiZ55am3YZIE5Gu09L7Hh/sVJ2f8JMI2cW5sni7V3eVs PLDdZlHkN2Tz/vPzC1rhAXKbr+uJD6LrNvLVoASYseP+j2wUmW1ADbLBvLoytPM+XP9q l7zb1W7wU69C+O3FHe3by/W1BzYzFpHV3NH0xOygMopJWD78LuX2GkmdNhGz4wUtX/hF /a9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Wc0yqHfoagRsyXzdU2Y5/dAqtfWLM+jPqSQjyf20DAQ=; b=4E1H+3pj+aAZayQccX+b/9EammRPC1PL+GKNZHg7neWXURjw5Xf7qBsgKVjRTdKxE9 UzyUkHMPQ9OaBx/5rS93kwDFVDrmJG6YoBrFkv9I+bpY+32bzQhx3g6ZIGD/HzVkCNtE up1+mDlEOr5qEXfSsdUzKcK1TUqaCgVzDd5RzfaRO3JIEXrfDnXZRresHVt3WgH9+57j 9W1L9HHZvb8ons9Z/qWe5LmV7JLUCQTyLKARzyTGoPZNNZifA0uEjcn0F422kQUsm1s9 uzEgUkwcLyi4Lew6mb4gR9Aav1H9/OUSnmktOFhwYeL2oGbpCBAVHdcbDB0qayzfdu+7 wfFA== X-Gm-Message-State: AOAM5322baIk5wJi4rTNMSEkY/6uMe+Wua4W8/1CGn53F1oKnXhfJRIC cYozLVbbhDmvkZDAEd9gCAuofqiJ0Rxgt9IAoRY1OSAN X-Received: by 2002:aca:ab4c:0:b0:2d4:7c7d:606e with SMTP id u73-20020acaab4c000000b002d47c7d606emr2360947oie.132.1645547265176; Tue, 22 Feb 2022 08:27:45 -0800 (PST) MIME-Version: 1.0 References: <20220222131701.356117-1-maira.canal@usp.br> <20220222131701.356117-2-maira.canal@usp.br> In-Reply-To: <20220222131701.356117-2-maira.canal@usp.br> From: Alex Deucher Date: Tue, 22 Feb 2022 11:27:34 -0500 Message-ID: Subject: Re: [PATCH 01/10] drm/amdgpu: Change amdgpu_ras_block_late_init_default function scope To: =?UTF-8?B?TWHDrXJhIENhbmFs?= Cc: "Deucher, Alexander" , Christian Koenig , xinhui pan , Hawking Zhang , John Clements , Tao Zhou , "Chai, Thomas" , "Tuikov, Luben" , "Stanley.Yang" , Dennis Li , "Joshi, Mukul" , "Wentland, Harry" , "Leo (Sunpeng) Li" , "Siqueira, Rodrigo" , Anthony Koo , Magali Lemes , LKML , Maling list - DRI developers , mwen@igalia.com, amd-gfx list , Isabella Basso 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. Thanks! On Tue, Feb 22, 2022 at 8:17 AM Ma=C3=ADra Canal wrote= : > > Turn previously global function into a static function to avoid the > following Clang warning: > > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2459:5: warning: no previous prot= otype > for function 'amdgpu_ras_block_late_init_default' [-Wmissing-prototypes] > int amdgpu_ras_block_late_init_default(struct amdgpu_device *adev, > ^ > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c:2459:1: note: declare 'static' if= the > function is not intended to be used outside of this translation unit > int amdgpu_ras_block_late_init_default(struct amdgpu_device *adev, > ^ > static > > Signed-off-by: Ma=C3=ADra Canal > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_ras.c > index e5874df3c9ca..dff5240efcc7 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c > @@ -2456,7 +2456,7 @@ int amdgpu_ras_block_late_init(struct amdgpu_device= *adev, > return r; > } > > -int amdgpu_ras_block_late_init_default(struct amdgpu_device *adev, > +static int amdgpu_ras_block_late_init_default(struct amdgpu_device *adev= , > struct ras_common_if *ras_block) > { > return amdgpu_ras_block_late_init(adev, ras_block); > -- > 2.35.1 >