From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.6 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B7D2C433B4 for ; Mon, 10 May 2021 15:29:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C760A61108 for ; Mon, 10 May 2021 15:29:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C760A61108 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 08AB46E4AB; Mon, 10 May 2021 15:29:37 +0000 (UTC) Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1125D6E4AB for ; Mon, 10 May 2021 15:29:35 +0000 (UTC) Received: by mail-ot1-x333.google.com with SMTP id u25-20020a0568302319b02902ac3d54c25eso14795608ote.1 for ; Mon, 10 May 2021 08:29:35 -0700 (PDT) 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=k95ih2ffkgkY95e2EU15G37daHl01gPBVHAFJpuGyaU=; b=I0xcw5/NbuXhmMGTGJqW5AfWBvxK+ZLxU4yUrsF9rj6gbcPt2vL+1fvp6yG2h2Zkkd aI7YmaYFYV1zFJbLmkkASsXsuCvTuk36P8gClCNgwHzj/Y3bd87MNgMtD+GOEnL1cp1Y fycaJN4zL/UaNrRRszAWG4ayukd8Okjbz+aopRocjTk11NPoc65Am6mZNhjD+Q1VoyHD RY0JfWmWCjlzcgd911ynNvqlMZ3fgA/rZ9KYQCFVVP4OEqZHhWSXwtPMY6r+TBENR4yj Dw7R0H5lSoK34lk4aQUl+EqpB3IvbhbSgP3cReX39Np1wt1lknwkC+zR07WBWzfXg6uu X+HQ== 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=k95ih2ffkgkY95e2EU15G37daHl01gPBVHAFJpuGyaU=; b=AfhS3lOYHA8kKVPQHewdP+UBp2ANcepi+uar+TC+rv6e2laMP8nxRtvuZ+KScvnWRG ihozjstHsCpwrhIluSnfD4UYMEGduzlHQ322TWF8vHTfpvYOGPuW3gtJs+Txam92PkhD L13MTAmO5RfLo2RsRHUwiZADK1uTms1a0u1OJHOKbQe7b2AGmsNhj9W6k8DLiErYWJwo arMPQtIUAc07iqubOK6YHfcRpGXXKr22MZit7S8HAtXF3wEs1a6pXkM3omwZ1V7sasC6 ms+EJ5BJRGHyXmL6l+xvMCOvKulAHal5TnyPo4zpGXP/bn5jeq6zw/99QkeRJ6u71xtn tijA== X-Gm-Message-State: AOAM5321KmP+8vOiNP+UAZaea2zPLrw3E62W/eyTMGQ1ucduywreaGP6 YTD7m08F10pGITouJHZNne97gm7RQk1XeGa0cE0= X-Google-Smtp-Source: ABdhPJwpAw9IQWW+EYi8SurGMFtmT59DlJ0+ItGo0bVIXaLZ8jcYWjXnpGTwFBasaje7NKAGgPyfra8EWfiM36NbuIM= X-Received: by 2002:a9d:74c6:: with SMTP id a6mr5912009otl.132.1620660574438; Mon, 10 May 2021 08:29:34 -0700 (PDT) MIME-Version: 1.0 References: <20210510145218.10322-1-tzimmermann@suse.de> In-Reply-To: <20210510145218.10322-1-tzimmermann@suse.de> From: Alex Deucher Date: Mon, 10 May 2021 11:29:23 -0400 Message-ID: Subject: Re: [PATCH] drm: Include iff CONFIG_AGP is set To: Thomas Zimmermann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jason Yan , David Airlie , Lee Jones , Maling list - DRI developers , Christophe JAILLET , "Deucher, Alexander" , Sam Ravnborg , Christian Koenig Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Mon, May 10, 2021 at 10:52 AM Thomas Zimmermann wr= ote: > > Platforms without AGP don't provide the AGP header. Only include it > if CONFIG_AGP is set. > > Signed-off-by: Thomas Zimmermann Fixes: 04dfe19a5ed6 ("drm: Mark AGP implementation and ioctls as legacy") > Cc: Thomas Zimmermann > Cc: Alex Deucher > Cc: Christian K=C3=B6nig > Cc: Maarten Lankhorst > Cc: Maxime Ripard > Cc: David Airlie > Cc: Daniel Vetter > Cc: "Christian K=C3=B6nig" > Cc: Christophe JAILLET > Cc: Jason Yan > Cc: Lee Jones > Cc: Sam Ravnborg > Cc: dri-devel@lists.freedesktop.org Reviewed-by: Alex Deucher > --- > drivers/gpu/drm/drm_agpsupport.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsu= pport.c > index 07c10443770e..a4ad6fd13abc 100644 > --- a/drivers/gpu/drm/drm_agpsupport.c > +++ b/drivers/gpu/drm/drm_agpsupport.c > @@ -35,7 +35,9 @@ > #include > #include > > +#if IS_ENABLED(CONFIG_AGP) > #include > +#endif > > #include > #include > -- > 2.31.1 >