Message ID | 20230525163827.548058-1-hamza.mahfooz@amd.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp512395vqr; Thu, 25 May 2023 09:52:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69Xr+Nb7sS2UAuKPQw6tu5W3iUGA/o58sA/iGjsIIvjo1WGWmTtmJb+w0aoEaZrpbX++iS X-Received: by 2002:a05:6a00:139d:b0:64f:3fc8:5d3a with SMTP id t29-20020a056a00139d00b0064f3fc85d3amr10343781pfg.16.1685033526229; Thu, 25 May 2023 09:52:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1685033526; cv=pass; d=google.com; s=arc-20160816; b=clUFPrEpbyXXh/D91hWuoo53Wx2IrgHKbIVU7fUObZKSLcYTtkl0d0da/e51PBRZN8 lyApeudJYMnTMz+HlUpYlMmbCC7uSmtOvNzIVZgRwqxUr2ZX2L+elRQsmVqVZ5C3WWfJ Z63D3Jz04A0D05jBFh7CVAHKbt9CM84c6JlUfKLr2EjV15BmdiFMEIfGWbt44yY65aYL ftZK/kuf3xPlJuWGFV8aKyZQzstnu9diEphoqsv0U/vj1vNi5H1fOgqTHazv/GePYPxx BqNXJNW2wPnl6vB0FJ2zgpOLisGZ3TFU8rEgba/sCaEkScU9jDNtBBQkHxH20D/8JNZj IWLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LhhN/R8Ita8LChAfEREBXYsgPdfxULOlAQGoDpdFfOc=; b=eqtev3Ts0MbhIhz4GGkklQHYXKDYBFKBLJWk7aYiHoljGrhOikXzscJYAPe/tdN6dZ evwlT6IREPAi0Kp17TJZUYZyVxgHE0Ml26llkETtvEPs2PX3uwr75tQpcNssMR4UwgX4 fD+FlZuErEVkoOylFmTN2ApIZMdg6K3OzRYDbaZm9B4j0lmqL4wddTNgaw0EArAiidFp NWJM2pFiuS/V3JxtNbwU0gLbn8yOSliA5oD81AA2GxlrclwdTPlnLf7g6F3FpCOPkjDO jMYjxDdUjiTkwDcR4gQbus2sUT8dLDTNqFUBEEaKhGNgBYbwUjleh5xe8bs7VIqN52aA MRJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=5U865sFm; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x14-20020aa79a4e000000b0064d5cd354a7si1945360pfj.82.2023.05.25.09.51.52; Thu, 25 May 2023 09:52:06 -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=@amd.com header.s=selector1 header.b=5U865sFm; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234123AbjEYQjl (ORCPT <rfc822;ahmedalshaiji.dev@gmail.com> + 99 others); Thu, 25 May 2023 12:39:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233391AbjEYQjj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 25 May 2023 12:39:39 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2084.outbound.protection.outlook.com [40.107.100.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 650F597 for <linux-kernel@vger.kernel.org>; Thu, 25 May 2023 09:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f95IRCxZOHYeOl1gTOojry7wq+3MxbAk9QjKsamLImHtFvU2Z7UhtjjelG5WWRCytCPwWQMv73Wf/BHfvxkgliPEfXiFsvClrx0IEHk6KyYDPYaX3VD3PgoAo9CHEDkBt94OBH7V6Wkpa+8k/PXwvv3RThMEYSx+2pa1Jch57NjRHzFlxhdMGCdiq1Gl+ozVw7sfBVV+GHbFdWHR4SmxvUZGP4oKiF3nBeVauu8ugVP5TmoMdtbSqk4M8yEPeZu2BW0qJAOL61OLrNqQNCOvlml0CUhcuTB5cGYLhZ7LA/z0l6YNLmQ9diHWQK81Fq/SLFfg+WeLA42qV77dY+RscQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=LhhN/R8Ita8LChAfEREBXYsgPdfxULOlAQGoDpdFfOc=; b=ay02YBfPAb1HJt0FJraoURUj81SrF0UzBEoTkGsU+JSSDDSX+i+LwwZVP1dro8swP2PDwf8tWxkKbMXkNhXWsbbKMURE4nbvrLvy0foqvpUY2lfbxF5T4po1RcZHkj2PX2EVbfayEOjMa1QszEMh5o2AsTXbccyY9P+lsfYUB+qHdUVl800maCORxn5acy+daLyTUhaEkjByA1V5FWLRH2UZtK1/nJgEc199a3B3cGfKURqlUaa2o9OttnWW2BlfAhZS5F8SUVnHk3zfrC12dvzQ4H1/IzbaBw1nNjqESnB7I5gXSwQ2U+YaKlrN1PWFcKJsQ2/hVXWig6VcPB+FoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.freedesktop.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LhhN/R8Ita8LChAfEREBXYsgPdfxULOlAQGoDpdFfOc=; b=5U865sFmZCc4os7aztbhNA3GPxgk6mvpPUgnuvIVAZ16B1BoBX50Z9ri4moCw6sPg1qU+7UR6Kg054asLfFgtsOh14OoCCVffQyhITKJsJbfqXhwQ5Mv/3wotN+dteAvxa8Kvtvct4o7l2CEd6pERcuCIYTi3ItRPyb2ydYoFWU= Received: from MW2PR16CA0035.namprd16.prod.outlook.com (2603:10b6:907::48) by CH3PR12MB8879.namprd12.prod.outlook.com (2603:10b6:610:171::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.29; Thu, 25 May 2023 16:39:34 +0000 Received: from CO1NAM11FT094.eop-nam11.prod.protection.outlook.com (2603:10b6:907:0:cafe::be) by MW2PR16CA0035.outlook.office365.com (2603:10b6:907::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6433.16 via Frontend Transport; Thu, 25 May 2023 16:39:34 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT094.mail.protection.outlook.com (10.13.174.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6433.16 via Frontend Transport; Thu, 25 May 2023 16:39:33 +0000 Received: from hamza-pc.localhost (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 25 May 2023 11:39:31 -0500 From: Hamza Mahfooz <hamza.mahfooz@amd.com> To: <amd-gfx@lists.freedesktop.org> CC: Hamza Mahfooz <hamza.mahfooz@amd.com>, Alex Deucher <alexander.deucher@amd.com>, Kenny Ho <kenny.ho@amd.com>, Jani Nikula <jani.nikula@linux.intel.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, "Pan, Xinhui" <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Felix Kuehling <Felix.Kuehling@amd.com>, Harry Wentland <harry.wentland@amd.com>, =?utf-8?q?Andr=C3=A9_Almeida?= <andrealmeid@igalia.com>, Andrew Davis <afd@ti.com>, Peter Foley <pefoley2@pefoley.com>, Hawking Zhang <Hawking.Zhang@amd.com>, Le Ma <le.ma@amd.com>, Tao Zhou <tao.zhou1@amd.com>, Lijo Lazar <lijo.lazar@amd.com>, James Zhu <James.Zhu@amd.com>, YiPeng Chai <YiPeng.Chai@amd.com>, Candice Li <candice.li@amd.com>, Yang Wang <KevinYang.Wang@amd.com>, <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH] drm/amd/amdgpu: introduce DRM_AMDGPU_WERROR Date: Thu, 25 May 2023 12:38:26 -0400 Message-ID: <20230525163827.548058-1-hamza.mahfooz@amd.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT094:EE_|CH3PR12MB8879:EE_ X-MS-Office365-Filtering-Correlation-Id: da65f617-1cd4-4d9e-ce97-08db5d3e9f0d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: HD6tqzE9fNulyjpXMCkI+2VRQx4rl346061rokF63l8oNKt36nSbPZ10ZdSjIza34zPAq3E+2BNJAATX4cuGpw2df1dXAtGXDWI06y/g7fJ88zgRyhbWOz0wp65Z1iltkkcm0T7mvZ4AZNvgzDnbtRHfa+A7Soi55dBDYyENqDbMkiFuPWtjpDiaql6224lrBIJN7pN/ioNcSo0Q0Dm5Ieq3ZxQ1ethuhE1ABmYDxuYuJ/mQSrDe5jLOig0bDAW6JR3KRRSNWaSaeudfOKqvO+J+TS7yA75Eet7Nuhnxneu1pcl1NuVLbn6El5vWpVLRSwMMdffCp4ai/3f1tIqOSux+s6Mn4yu3xbv3n67ny4Rae6xddmOTH292m8dg4IPIMFYfWvprew+J8nYNdlEbWtizwCqM1TBSGu/R+WXTV7dJ6hkpFOOjCI2t/7rGdlKsS5nD/KpOgUXHrk0bh05rE6MOTmSJgAGKxoUMNzYRAqVl/PWtLLd3aIEj5zjACflRgAKY5Tj2s8Mdey8IYpHY0luudxtfHW87rU1i8TnIxGhKlvKq4zWdSlu/bTCEFIGQP2juvmu4vdzTpGa07LbO4IKl1iCSCxL0T3qy4yyasqj/ae3KGxPbGftPApR7bOvPNHKbuU+EtmrruEyU/KiIzUjHtbyR1pj/jQVSvDmeHdfem1Fncr8i8HjHb7OZ3IXQMRPP6dEwxp5hl1h8JOVwHmUWCGmLo1yRmcBUdbDr6uMoyflVUZEKahlbZpmFdCMtp/Pq+3m0aLASOZUJqi1H6m5frGIWnEqpLPzMPD/7WUjwT/MvMZfht9yLCrcSZrKs X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(376002)(136003)(346002)(396003)(451199021)(36840700001)(46966006)(40470700004)(44832011)(41300700001)(316002)(82740400003)(26005)(1076003)(6666004)(40480700001)(81166007)(356005)(8676002)(36756003)(5660300002)(8936002)(40460700003)(86362001)(478600001)(82310400005)(2616005)(36860700001)(54906003)(83380400001)(426003)(336012)(47076005)(2906002)(186003)(16526019)(70206006)(70586007)(6916009)(4326008)(36900700001)(16060500005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2023 16:39:33.9488 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da65f617-1cd4-4d9e-ce97-08db5d3e9f0d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT094.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8879 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766885714325210681?= X-GMAIL-MSGID: =?utf-8?q?1766885714325210681?= |
Series |
drm/amd/amdgpu: introduce DRM_AMDGPU_WERROR
|
|
Commit Message
Hamza Mahfooz
May 25, 2023, 4:38 p.m. UTC
We want to do -Werror builds on our CI. However, non-amdgpu breakages
have prevented us from doing so thus far. Also, there are a number of
additional checks that we should enable, that the community cares about
and are hidden behind -Wextra. So, define DRM_AMDGPU_WERROR to only
enable -Werror for the amdgpu kernel module and enable -Wextra while
disabling all of the checks that are too noisy.
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Kenny Ho <kenny.ho@amd.com>
Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
---
drivers/gpu/drm/amd/amdgpu/Kconfig | 10 ++++++++++
drivers/gpu/drm/amd/amdgpu/Makefile | 9 +++++++++
2 files changed, 19 insertions(+)
Comments
On 5/25/23 12:38, Hamza Mahfooz wrote: > We want to do -Werror builds on our CI. However, non-amdgpu breakages > have prevented us from doing so thus far. Also, there are a number of > additional checks that we should enable, that the community cares about > and are hidden behind -Wextra. So, define DRM_AMDGPU_WERROR to only > enable -Werror for the amdgpu kernel module and enable -Wextra while > disabling all of the checks that are too noisy. > > Cc: Alex Deucher <alexander.deucher@amd.com> > Cc: Kenny Ho <kenny.ho@amd.com> > Suggested-by: Jani Nikula <jani.nikula@linux.intel.com> > Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com> I am able to get clean builds with this enabled on GCC 11-13 and Clang 15, at least as of commit e786aef0869c ("drm/amd/display: remove unused definition") on amd-staging-drm-next. > --- > drivers/gpu/drm/amd/amdgpu/Kconfig | 10 ++++++++++ > drivers/gpu/drm/amd/amdgpu/Makefile | 9 +++++++++ > 2 files changed, 19 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig > index 07135ffa6d24..334511f331e3 100644 > --- a/drivers/gpu/drm/amd/amdgpu/Kconfig > +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig > @@ -66,6 +66,16 @@ config DRM_AMDGPU_USERPTR > This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it > isn't already selected to enabled full userptr support. > > +config DRM_AMDGPU_WERROR > + bool "Force the compiler to throw an error instead of a warning when compiling" > + depends on DRM_AMDGPU > + depends on EXPERT > + depends on !COMPILE_TEST > + default n > + help > + Add -Werror to the build flags for amdgpu.ko. > + Only enable this if you are warning code for amdgpu.ko. > + > source "drivers/gpu/drm/amd/acp/Kconfig" > source "drivers/gpu/drm/amd/display/Kconfig" > source "drivers/gpu/drm/amd/amdkfd/Kconfig" > diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/gpu/drm/amd/amdgpu/Makefile > index 74a9aa6fe18c..7ee68b1bbfed 100644 > --- a/drivers/gpu/drm/amd/amdgpu/Makefile > +++ b/drivers/gpu/drm/amd/amdgpu/Makefile > @@ -39,6 +39,15 @@ ccflags-y := -I$(FULL_AMD_PATH)/include/asic_reg \ > -I$(FULL_AMD_DISPLAY_PATH)/amdgpu_dm \ > -I$(FULL_AMD_PATH)/amdkfd > > +subdir-ccflags-y := -Wextra > +subdir-ccflags-y += -Wunused-but-set-variable > +subdir-ccflags-y += -Wno-unused-parameter > +subdir-ccflags-y += -Wno-type-limits > +subdir-ccflags-y += -Wno-sign-compare > +subdir-ccflags-y += -Wno-missing-field-initializers > +subdir-ccflags-y += -Wno-override-init > +subdir-ccflags-$(CONFIG_DRM_AMDGPU_WERROR) += -Werror > + > amdgpu-y := amdgpu_drv.o > > # add KMS driver
[Public] On 5/30/23 11:24, Hamza Mahfooz wrote: > I am able to get clean builds with this enabled on GCC 11-13 and Clang > 15, at least as of commit e786aef0869c ("drm/amd/display: remove unused > definition") on amd-staging-drm-next. Did you try intentionally introducing a warning to see if the build indeed fail?
On 5/30/23 11:50, Ho, Kenny wrote: > [Public] > > On 5/30/23 11:24, Hamza Mahfooz wrote: >> I am able to get clean builds with this enabled on GCC 11-13 and Clang >> 15, at least as of commit e786aef0869c ("drm/amd/display: remove unused >> definition") on amd-staging-drm-next. > > Did you try intentionally introducing a warning to see if the build indeed fail? Yes, I tried a couple of different ones.
[Public]
Reviewed-by: Kenny Ho <Kenny.Ho@amd.com>
diff --git a/drivers/gpu/drm/amd/amdgpu/Kconfig b/drivers/gpu/drm/amd/amdgpu/Kconfig index 07135ffa6d24..334511f331e3 100644 --- a/drivers/gpu/drm/amd/amdgpu/Kconfig +++ b/drivers/gpu/drm/amd/amdgpu/Kconfig @@ -66,6 +66,16 @@ config DRM_AMDGPU_USERPTR This option selects CONFIG_HMM and CONFIG_HMM_MIRROR if it isn't already selected to enabled full userptr support. +config DRM_AMDGPU_WERROR + bool "Force the compiler to throw an error instead of a warning when compiling" + depends on DRM_AMDGPU + depends on EXPERT + depends on !COMPILE_TEST + default n + help + Add -Werror to the build flags for amdgpu.ko. + Only enable this if you are warning code for amdgpu.ko. + source "drivers/gpu/drm/amd/acp/Kconfig" source "drivers/gpu/drm/amd/display/Kconfig" source "drivers/gpu/drm/amd/amdkfd/Kconfig" diff --git a/drivers/gpu/drm/amd/amdgpu/Makefile b/drivers/gpu/drm/amd/amdgpu/Makefile index 74a9aa6fe18c..7ee68b1bbfed 100644 --- a/drivers/gpu/drm/amd/amdgpu/Makefile +++ b/drivers/gpu/drm/amd/amdgpu/Makefile @@ -39,6 +39,15 @@ ccflags-y := -I$(FULL_AMD_PATH)/include/asic_reg \ -I$(FULL_AMD_DISPLAY_PATH)/amdgpu_dm \ -I$(FULL_AMD_PATH)/amdkfd +subdir-ccflags-y := -Wextra +subdir-ccflags-y += -Wunused-but-set-variable +subdir-ccflags-y += -Wno-unused-parameter +subdir-ccflags-y += -Wno-type-limits +subdir-ccflags-y += -Wno-sign-compare +subdir-ccflags-y += -Wno-missing-field-initializers +subdir-ccflags-y += -Wno-override-init +subdir-ccflags-$(CONFIG_DRM_AMDGPU_WERROR) += -Werror + amdgpu-y := amdgpu_drv.o # add KMS driver