Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp46469pxu; Tue, 24 Nov 2020 18:09:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4v5HuatYXmcKtxheLs1VStswW81dY0jOJTVx8GIgePBvgY7iGG3o7DFiihqH4/LDNxfmW X-Received: by 2002:a05:6402:a53:: with SMTP id bt19mr1451824edb.26.1606270162313; Tue, 24 Nov 2020 18:09:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606270162; cv=none; d=google.com; s=arc-20160816; b=wHHt6+vKHk1kelPCdDOGVNEADbY6wVJg0YOpfngBYqCPvsudGmh07V7Qjt6fiM1D4O pj1ymzG1POPs71+2RXt1RZKBg/RkcjQqS09iwJjFIr5+0Vk93iH0KynNu0WjljRodOdG +QiAtsuXwC2YlduKB3yQZRRJjnuluv4RyaiUiHOagLfaLjmEhPano5rnHUaejHsDpcnt YdXTerl1YXmsxEFGmGjpKN3lvTJmY6NQcG+mQstFNRa58tX6t1zuqEwsr/BwnPoJDUoh b2SonXCUqo8nhrqbK8xncVz9YjLWHjF2g7nRvWOL9aI2dU5bD82wuJIOk6HcJKhMyczY ddCQ== 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=NcGZEMoE8/OoazRbMXmgCCoABg8lK7yn+JEu89ArpnQ=; b=cQRoGPxXn71DLhlUUPwgdT0PUKaLQn/3WtevG1IthINAtvRzTOQQi8AShYv3UBHPQc cmdXH8ccq7sOFVIdI8FRmsNCfR9KUccwm3en1A1Dl0VVLFUGCYbFVDPJmsBa8L53x37y zJs7WOb9P2iQefkV6q9WwK0TrlQd9KbTY4U4FTyQTFqKm+YMrPpbJdQ5mGfslw2Nschn BdpWPV7Qo8kLViF5sFmGz58T6V2+bB6UeQrZ9c9JCxPejHrMev4DjQKusMfT7e8UbEfs sZzOggobkAHretlTcJEireXGo8n+rEiWBI/d+9XDHHpRLbJP5lpHAV96FJqf1al6TLEH mFNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j93ka3XD; 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 y3si382022edm.138.2020.11.24.18.08.59; Tue, 24 Nov 2020 18:09:22 -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=j93ka3XD; 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 S2390257AbgKXQPd (ORCPT + 99 others); Tue, 24 Nov 2020 11:15:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389424AbgKXQPc (ORCPT ); Tue, 24 Nov 2020 11:15:32 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21322C0613D6 for ; Tue, 24 Nov 2020 08:15:31 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id p22so2890500wmg.3 for ; Tue, 24 Nov 2020 08:15:31 -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:content-transfer-encoding; bh=NcGZEMoE8/OoazRbMXmgCCoABg8lK7yn+JEu89ArpnQ=; b=j93ka3XDSybeGE/pqWJYn2ugb5acGTe1U1xoLFPC3rS+FnLngGQ/CEdhDnhgXYkDYB ywPtr1zK89hhYJTSWiLxhqTtKnVjmycWxyxMn/+PD1zNxsCTBuYniOq8ObFSt+8av8Zy NsBOY6/hQStk/JA904y+gj4bVxZ9SnKiXk6I+x3LBHwieKqhS97HUGRD/f14srocrcVp hQD44Pt3ZsYUibWqgxNuslN+xiuChSOIqMFO+dx8AxGNNJ6Fc7jJjwbTWd8h08aB7Tf3 IW6i51J7etgCp/XOGQ5jmHa2nASp7EkCzZvE7ACmQePc4lnrzN07casFyNrGJJM56u87 o03A== 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:content-transfer-encoding; bh=NcGZEMoE8/OoazRbMXmgCCoABg8lK7yn+JEu89ArpnQ=; b=Mju333uNt8ED8XzFla70+W+ZODN3nASSkOA9NXx07WOraTmPjxRmxH6PNEJcX/yha+ ahuZWMmgZtx5H9xSm5gOqe5btG+VDutYwpfDbeThpki8SWS5AF48b9iaQfniCAIGm1Ck FHo00a4tWsNLv6jEUgyE68DsApucI4DzX/WPUt+E8jjun91yVU99GZiGZmHiAAegpekC sHuopM748DZ5vFRP19t0BgXWaF/BBOXN+9/JLDTmptMKbGLUnx77FaPoMjwtA1mMqPBW cSolOGExM8vCuOMzib0LNK8wXg2tzZgwJ7nI38Kx6HNORMsy2PDhIVIqSpUDnk6nAm3O zXdQ== X-Gm-Message-State: AOAM530oAY38nHUq6m6zBJ86swhcgjTBhePeYwUVK+1n0wrJ3dPt5xrl /UDerglrWkWTKHZ6ErS7ao/M46TR1dIe1iJIJzA= X-Received: by 2002:a7b:c157:: with SMTP id z23mr5277089wmi.70.1606234529909; Tue, 24 Nov 2020 08:15:29 -0800 (PST) MIME-Version: 1.0 References: <20201123111919.233376-1-lee.jones@linaro.org> <20201123111919.233376-29-lee.jones@linaro.org> In-Reply-To: <20201123111919.233376-29-lee.jones@linaro.org> From: Alex Deucher Date: Tue, 24 Nov 2020 11:15:18 -0500 Message-ID: Subject: Re: [PATCH 28/40] drm/amd/include/sienna_cichlid_ip_offset: Mark top-level IP_BASE as __maybe_unused To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , Likun Gao , =?UTF-8?Q?Christian_K=C3=B6nig?= , Hawking Zhang Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 23, 2020 at 6:20 AM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > In file included from drivers/gpu/drm/amd/amdgpu/sienna_cichlid_reg_init= .c:28: > drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:186:29:= warning: =E2=80=98USB0_BASE=E2=80=99 defined but not used [-Wunused-const-= variable=3D] > 186 | static const struct IP_BASE USB0_BASE =3D { { { { 0x0242A800, 0x05= B00000, 0, 0, 0 } }, > | ^~~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:179:29:= warning: =E2=80=98UMC_BASE=E2=80=99 defined but not used [-Wunused-const-v= ariable=3D] > 179 | static const struct IP_BASE UMC_BASE =3D { { { { 0x00014000, 0x024= 25800, 0, 0, 0 } }, > | ^~~~~~~~ > drivers/gpu/drm/amd/amdgpu/../include/sienna_cichlid_ip_offset.h:158:29:= warning: =E2=80=98SDMA1_BASE=E2=80=99 defined but not used [-Wunused-const= -variable=3D] > 158 | static const struct IP_BASE SDMA1_BASE =3D { { { { 0x00001260, 0x0= 000A000, 0x0001C000, 0x02402C00, 0 } }, > | ^~~~~~~~~~ > > NB: Snipped lots of these > > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: Hawking Zhang > Cc: Likun Gao > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h b/dri= vers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h > index 06800c6fa0495..b07bc2dd895dc 100644 > --- a/drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h > +++ b/drivers/gpu/drm/amd/include/sienna_cichlid_ip_offset.h > @@ -33,7 +33,7 @@ struct IP_BASE_INSTANCE > struct IP_BASE > { > struct IP_BASE_INSTANCE instance[MAX_INSTANCE]; > -}; > +} __maybe_unused; > > > static const struct IP_BASE ATHUB_BASE =3D { { { { 0x00000C00, 0x02408C0= 0, 0, 0, 0 } }, > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel