Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp21771rwd; Wed, 24 May 2023 13:30:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57GOqyEXCLFpS8Aap3kMmTnIXRv+8L7io6ryTPUMZEolbsRBOQcLkER8nqR8C+YowQLs35 X-Received: by 2002:a17:90a:49c6:b0:255:49c0:2618 with SMTP id l6-20020a17090a49c600b0025549c02618mr13117727pjm.39.1684960229058; Wed, 24 May 2023 13:30:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1684960229; cv=pass; d=google.com; s=arc-20160816; b=loizwbVKGSV4IqB7+D1jltdURQdpGyH1U7XDwchmP5SHzSEdL5DCbIf076Fnn0svhK AdQN/LD90VokSMGxx9mOLHiC3M4XZsMcbT9NEVBPgEpgA7oT6EQI5OSpaG6BKJwjh4MS /YA5OkdC+HBrZbdf1uBfl0afWdDwIiF8lIsmKTAHjZAtFUH3uNzPe1uUsTVWe8BxtJVi uwRfq2JNWdBF13oZBAEoRrNBlC+4qGtHCNRGI5mnNI+4jE7HOXy+LhxPvoYK3nyQL3wh 9Cs2Va0ZNE8CZgSgWfBxTjZyWOgxTYNOaoyX6M9XKq6Gx4mFEIFFFvaLw3rrbPlaQ5Ps l3KA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=DBy4hkKkYYc46rwmrB0Zq8fOStlHxqBV5FAV7pgOPjU=; b=vVURxss2+dwiRjGjvStTV+RdgQgBnRw1e0w2q+XUKztFLROUMjbPOh+K5y4OKka2kq j5BF1fm/jYf5XDjY8Qj8Za9qkUuwfxVqOG++dS3YokV7Pb0arMRraVukGCt9sm+MK9i0 4f4Ps7gaIQhjyExbXOLiEUBwIZzninLBb+TUZhp9zBk+tgoNE1DGBVQiynSJ6bncNggc lIQjRoI/rKPUoJmSCFTBij7KdnCwW0mH1ZAalSw920k4CchABw5HMZvDkYOtt+ETeouC jA6BdL+t76GMn73/Y+NJ+cPmSkmBBCDhy3yzgZH18XsDTJWA85PdSsKG0NBZRsPfEsVj OATw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=ppcCCW4J; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a17090a74cc00b00233e301c780si1379241pjl.31.2023.05.24.13.30.11; Wed, 24 May 2023 13:30:29 -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=ppcCCW4J; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=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 S229784AbjEXTyh (ORCPT + 99 others); Wed, 24 May 2023 15:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjEXTyg (ORCPT ); Wed, 24 May 2023 15:54:36 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2059.outbound.protection.outlook.com [40.107.223.59]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F3BBBB for ; Wed, 24 May 2023 12:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z2ynbsik3ckD3oF/3xbjECpiLE0JZxGiE8Tz60Q0M3LoeMJupiDnOCXc4+3q6D8hsnLiF997KM0VI2FQaDJQry3V4P4zNBWTZzPINkNBF/uxQqIXsSgz168Cux8yoooF1oz4jf1dlqxQtpF6wbsUwk4Bj2T1h/bxvH0k8DsBdh9aUaTeQrHHO3aI7tCvnTBQiQapf5kJW2fniaowYudPmZz7k/UmKQMtRwUGz3y7BeepiNTeYW+DxA8AW/XCVeX3FNG9dDy92A98Ax43ckMU0RONLAUMFP+QZ2xMpbLGEV/tqpk5cmHGEdZyFjknxQ4JBO1Wc78RKr7mtuXiWmcSfQ== 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=DBy4hkKkYYc46rwmrB0Zq8fOStlHxqBV5FAV7pgOPjU=; b=K1zbLBgdPuLaIpbDkkUrs9hOUgVdaIhb/8M7h/4y2/7pstt2+y2PWtvFXiriRpjn5gxYBwqXoa4CBin/Dd1faACAK+IiT0N/nLFhzDvFR1iKLjM8ZUUTEWU2E/2JSZTBUUkoDDnbP2+4iZTB2FnFWSsLVe7DQJQOA4AxbFRfEfLPkAIhwGfygI1Mu7jKNynB/L2OZomjz05m0ASMEr65Tm1UrAAiQNtrEZpcstbugItcquLuhF8WUKt4UQU8lrOSocszSKNxVMAi4TmuV29gOh2Qw7pZysabWtVjk6dizPjcWyvQnyQoxAd2cugQaEkq9OiI0YXJqKYO+SbZXEZ9Qg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; 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=DBy4hkKkYYc46rwmrB0Zq8fOStlHxqBV5FAV7pgOPjU=; b=ppcCCW4JJryKaJWep50itxwuRqKajDsta37PCWMKj/J9lTJlpVH6sZMubZILAjOozbYBotxCLWn9hRO5qllbY4WnGBybcw+GLi0V3rOh3UCefCC7UC23o7jryTincnMuAbV5r5Moo50eif1aI8fByu9E1+ovpymKFo0hNQRrwB8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) by IA1PR12MB6353.namprd12.prod.outlook.com (2603:10b6:208:3e3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.28; Wed, 24 May 2023 19:54:31 +0000 Received: from CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::4666:2db3:db1e:810c]) by CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::4666:2db3:db1e:810c%7]) with mapi id 15.20.6411.028; Wed, 24 May 2023 19:54:31 +0000 Message-ID: Date: Wed, 24 May 2023 15:54:26 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2] drm/amd/display: enable more strict compile checks Content-Language: en-US To: Hamza Mahfooz , Alex Deucher Cc: amd-gfx@lists.freedesktop.org, Leo Li , Kenny Ho , "Pan, Xinhui" , Rodrigo Siqueira , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Daniel Vetter , Alex Deucher , David Airlie , =?UTF-8?Q?Christian_K=c3=b6nig?= References: <20230524191955.252212-1-hamza.mahfooz@amd.com> From: Harry Wentland In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YQZPR01CA0045.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:86::17) To CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR12MB5427:EE_|IA1PR12MB6353:EE_ X-MS-Office365-Filtering-Correlation-Id: e240c499-eae0-4746-d216-08db5c90b087 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Nw7COPVcgo1nItaMUFd5lr1uXf4xWGI9hodGItEtFiCY/vvEJaf5wlzrrQUOgGS5zK3y0qMlAycs+/2dhrYLiPfJZ18JHBs70KUdP5WiWPOpFllSTshXBbziapGovWuV+P51K8hou9EaPX8CNTrqmiYwshHi/vRfYPvtrrz40ikf/z2UgyC7YZqHcWMhTZUjVXav3VRUMbcAePM6SucZ213KhdsT9iY+4MYXlx/s5+agKLZ0pW0t/H3phskbiu0hUEGfOyH6pl3gd4ikNc87OTdua+hbN0xSfkzraZpZRFlaYY0xvjIeGNiNuYSSi53C+d6Suxd0PLFI/rbI8j1NHHjyNOVg64zBatxCtqnonsD1Jg+J7w1ZORmgM2yIRjWhtGk++wWvFgnBENk0KzShnz+mkp6C6s5ihvGBczb6uoAarRPy7hNqnmpJBHuJzSWlJunZR+EOfeC5K/i7WLTdcb1olvwp6ZeGhwh+636FgwkU5yKJGm0NLx3AvospbvAHg0bwjidS+cc0HruP2LXqdj4spAMDvb+e/odmSXvfGqdABYFhwItdt/za8EAGlks7qYu/+DwspyGrgI37YTJcI9JWrwNwEd6DqY8otRW/8Df9zRAJ7sG5QtdKsY8KtrU5uih4k8q+XnwZL1aiOI/Shg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5427.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(39860400002)(346002)(136003)(396003)(376002)(451199021)(66946007)(66476007)(316002)(4326008)(66556008)(5660300002)(53546011)(26005)(186003)(6512007)(6506007)(41300700001)(6666004)(6486002)(38100700002)(36756003)(478600001)(110136005)(54906003)(83380400001)(31696002)(2616005)(2906002)(44832011)(8936002)(8676002)(31686004)(86362001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZHRzVllkYzlHczNWQTVURHdSaFRQcUh6Y25XOUU5Mk9yVFhiVU9QNUtxMEpi?= =?utf-8?B?TmRFTFExelVmbHEyL2lLdkJGOERZNUx5MFJrTmpyaHpucmg0YlVjTmlQVUVx?= =?utf-8?B?VGppNHcycGhvQ2dwTHdVQkdMQlh3K3hEU1VMZG9oZmVyd1RmYWtxeU1DbFEv?= =?utf-8?B?MmpreWdMUi90dTBvdjFrTEtOYVkxZFZ4WTZQOXN0K0JyRmpPVDlJbm5WU2lR?= =?utf-8?B?bEJjdU5JMGRNUjZtVEozY3p6YVpjV2poQTNYeEsvc2xXa0JRTGxsSzVmSmF5?= =?utf-8?B?dDBPK0d6VkxWd1lnVldNcTFRYnNKZ0JQRVRycU1IdUdCTEV4MUttcS9pZWtI?= =?utf-8?B?MVBhV1NwNWRtT1Y2M3prUU1ydHpyVHdsSlJZVkUwa2NHUm96UEN1c2FuVWkr?= =?utf-8?B?WmJQU20xN3pkbHNIa25uKzJXWGM0T3pUaW9wQXoxdVZkY3JoS0MyN2c2ZGdV?= =?utf-8?B?TmJKQ2d3azUvbGdkZ1pDckplVVYxRTQ2TEtiRTZYd3RVd1F0dEIrNVhXbkMr?= =?utf-8?B?OS9NSFJCUmtselZYZTZWK3U0Nk9ObTV4NXpmNjZyTzB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3UTJnNmZyK1RreEM2RUFLSjFLbUNT?= =?utf-8?B?QkpIRnFNYm9pdFNVVkoxclhZY2RnQW5wMzhyNzNBdkFvYzI5TE9NTDM4bUJt?= =?utf-8?B?QzhjR0M1ZnJPSmQ4TjFFNGxCUklURGo3aHNzRGhPQkRsVUpnek5iVTBaR01s?= =?utf-8?B?bVluZHd3ZDVQUHBKWWtJRG1ScDBvbVFSSklNZHRhanI3T09nYnZldGQ0R2Zi?= =?utf-8?B?REJ4c2dySjhUUERFTFU5NkI4UEZoQzlYVFBpTXd2cys1aWkzU1NRS0FDTndp?= =?utf-8?B?dTBJSXdOMDdSRy9tTnV2Y2FpT2Y4eDR2NTdDVWVBM2hvWUVrVWU4Zk9Cbm1i?= =?utf-8?B?VkVhRHJDYUZ4YjRxWVdKOURIK1JsZGZMTVdIdG15TmprNWQwMXlscTlCSENu?= =?utf-8?B?aEdtVjVmcDVJSWFLOWhub1AzVXRNd29LSS9MQWdVS2dvWGw1VThvMk9DWHVE?= =?utf-8?B?Z2tnYkVqUjZuV3JQbEd4c001L0VjMEppVWxUYURDb29qTGkwcDMyV2RYV1pR?= =?utf-8?B?ZGUwdHYxK2dtUjczN2NYeThKdUFhV3JaWE5LT0l0eVlUVFJKN0JwcFZVU2hZ?= =?utf-8?B?VzVWTkovWUZyc29vQjJndUsxMzhFR0N1ZjRqaXBFVHBzUEZFU3Y2WTBib0RI?= =?utf-8?Q?QmoX7vYKqXVLNz3KFLGGMiRXy?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e240c499-eae0-4746-d216-08db5c90b087 X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5427.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2023 19:54:31.1700 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3CQPq8nR0hp5PAJhIfhhpRXMxDlGosqCrt7V7GZ6Pxm3k9kR09ajn+15KTAa/5JzbOucZ92cyGaZ3Eg0+3MkQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB6353 X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 5/24/23 15:27, Hamza Mahfooz wrote: > On 5/24/23 15:22, Alex Deucher wrote: >> On Wed, May 24, 2023 at 3:20 PM Hamza Mahfooz wrote: >>> >>> Currently, there are quite a number of issues that are quite easy for >>> the CI to catch, that slip through the cracks. Among them, there are >>> unused variable and indentation issues. Also, we should consider all >>> warnings to be compile errors, since the community will eventually end >>> up complaining about them. So, enable -Werror, -Wunused and >>> -Wmisleading-indentation for all kernel builds. >>> >>> Cc: Alex Deucher >>> Cc: Harry Wentland >>> Cc: Kenny Ho >>> Signed-off-by: Hamza Mahfooz >>> --- >>> v2: fix grammatical error >>> --- >>>   drivers/gpu/drm/amd/display/Makefile | 2 ++ >>>   1 file changed, 2 insertions(+) >>> >>> diff --git a/drivers/gpu/drm/amd/display/Makefile b/drivers/gpu/drm/amd/display/Makefile >>> index 0d610cb376bb..3c44162ebe21 100644 >>> --- a/drivers/gpu/drm/amd/display/Makefile >>> +++ b/drivers/gpu/drm/amd/display/Makefile >>> @@ -26,6 +26,8 @@ >>> >>>   AMDDALPATH = $(RELATIVE_AMD_DISPLAY_PATH) >>> >>> +subdir-ccflags-y += -Werror -Wunused -Wmisleading-indentation >>> + >> >> Care to enable this for the rest of amdgpu as well?  Or send out an >> additional patch to do that?  Either way: >> Reviewed-by: Alex Deucher > > As far as I can tell, if `CONFIG_DRM_AMD_DC` is set it will run these > checks on at least the base driver code. > It's probable best to put that into amdgpu/Makefile in that case. Harry >> >> Alex >> >>>   subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/ >>>   subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/inc/hw >>>   subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dc/clk_mgr >>> -- >>> 2.40.1 >>>