Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5843795rwj; Wed, 21 Dec 2022 07:42:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXsLXvAKQ7Yn+0hieG8N+aX63vfe89RmNTNNY3o53PZAJ+t1sP3oHlhl+uuRYCaKPghyThUq X-Received: by 2002:a17:903:186:b0:188:d2b3:26c1 with SMTP id z6-20020a170903018600b00188d2b326c1mr3145425plg.10.1671637359713; Wed, 21 Dec 2022 07:42:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671637359; cv=pass; d=google.com; s=arc-20160816; b=ISm931JA+ziuMg9qDRz4a5TwXWtPcGwj7sAe82Th9CWH4SrJL7Z6IEpz/QlllW4w7z 8DJKuiulnxOt7Bc8fSMCizvf7AjXwNReHs+qBURKEhOl5PNbA2XdCHq2rVU5jmlXOfWT v/CDhGGg1DnaWhIv1xR1drHnE4tt5dzuc4hIo87SieH3oSpLaZYEQ+oxmimxbZ8TovH7 rNPAJKiasiQY5fNb/0YHLrCb5cBVhaXJuj1Q9clQtUjIPOFRRvtOq676SRYVRq9r0Lgc 5TfvwV2ZGVsDHL15KSj4eq2eAcv3FJOOKVOAqMp9ZCTPh4Kec1e7YyxjSm/3zadAi60W fzlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:message-id :from:content-language:references:cc:to:subject:user-agent :mime-version:date:dkim-signature; bh=3Hz2uwW3hnNguqOhLl5TLTK8gM+WmAZ6vNtAY7+qxZE=; b=h9ggXmkGVZY+TNOm0a3B5cLT1G2IhwVF4D6Ua8QdCgdKSfn2Q6x0PJjq0e651UtOyh UH6IXxTicNmvW3nfDFggsWi2bo/gno17S191FLpI25eG2Eq0DuLl5FaSnK6TZ76+yxv1 ONliozuVPdh4IkHEXKkuGhAU+0uXbvKw9gRFwSIBJ9tADH2k94C058D2fUsbG7nCd7r4 1ktyACqN9bztf/AEmUTZNUt5pfUUE7henCqi19clbpeTsG87Xhr9xetTDyAupktoBbBJ TW3EAQ38YXd1xjDPnCInffitA24lanvGObW/fEMf/QSPS4uGUDoHzzY2gk2szepLdman TW8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@siddh.me header.s=zmail header.b=fcWAWA6G; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a170902ced200b00178b95aa01fsi18885596plg.614.2022.12.21.07.42.30; Wed, 21 Dec 2022 07:42:39 -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=@siddh.me header.s=zmail header.b=fcWAWA6G; arc=pass (i=1 spf=pass spfdomain=siddh.me dkim=pass dkdomain=siddh.me dmarc=pass fromdomain=siddh.me>); 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=REJECT sp=REJECT dis=NONE) header.from=siddh.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234415AbiLUPiN (ORCPT + 68 others); Wed, 21 Dec 2022 10:38:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232739AbiLUPhs (ORCPT ); Wed, 21 Dec 2022 10:37:48 -0500 Received: from sender-of-o50.zoho.in (sender-of-o50.zoho.in [103.117.158.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23C7C24F1C for ; Wed, 21 Dec 2022 07:36:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671636937; cv=none; d=zohomail.in; s=zohoarc; b=OPfqfnyCBHt7EDRFmJCarYGJ48QZcNoJ+pE8zoyraIrFq4o9c6aO7L57HHb2eDqPd4n3cvPGKIvFo2tNWkVq3aH5sQSgWqN7/bVz98zijG/wOIU583WpdxquDRoUraY4NKm/HsEP4dz99ZZ6EkRmmxUC0w/V7+G45H+8wO0rxEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.in; s=zohoarc; t=1671636937; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=3Hz2uwW3hnNguqOhLl5TLTK8gM+WmAZ6vNtAY7+qxZE=; b=eB/GaDcxK7eXkrrZ9xVBA0aZJS2VUZr3lVjCFsUjdi++rBb1LD2p98YNoJntF8WBN8MT86Yrm+XQ3AZEfLZvhnrXieXwgxeif6PwhWMv0YbIEmf/MFu0fpPjI/qyDBNm5035ySSJd8v+dgp5w/J2c5Eb53X7E53hKGPJ1wRI9CI= ARC-Authentication-Results: i=1; mx.zohomail.in; dkim=pass header.i=siddh.me; spf=pass smtp.mailfrom=code@siddh.me; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1671636937; s=zmail; d=siddh.me; i=code@siddh.me; h=Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:Message-ID:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=3Hz2uwW3hnNguqOhLl5TLTK8gM+WmAZ6vNtAY7+qxZE=; b=fcWAWA6GKtmxvdk3GEUIJKNatO79SqPhDIKRCZ2adST6WVSbo/45/ITKJTXBVd/o ZUHMzHeJnqQgQJSY1V4eMaOZ95srCh+sjKg3hs9iI/AImYstC6LEnYd7H4T1TfYKKOX hNvyvE41NHwu9uJ6uo2nRx2OW6h40q9BCeGnka60= Received: from [192.168.1.9] (110.226.31.37 [110.226.31.37]) by mx.zoho.in with SMTPS id 1671636936209255.79334159169218; Wed, 21 Dec 2022 21:05:36 +0530 (IST) Date: Wed, 21 Dec 2022 21:05:34 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH 04/10] drm/print: Fix support for NULL as first argument of drm_dbg_* To: Jani Nikula Cc: linux-kernel , dri-devel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter References: <3ebf0d61ad5e82875a4493108602e62429306b14.1671566741.git.code@siddh.me> <87edst2ix8.fsf@intel.com> Content-Language: en-US, en-GB, hi-IN From: Siddh Raman Pant Message-ID: <21113999-99c2-0273-a6fe-8374ee910297@siddh.me> In-Reply-To: <87edst2ix8.fsf@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On Wed, Dec 21 2022 at 15:11:07 +0530, Jani Nikula wrote: > On Wed, 21 Dec 2022, Siddh Raman Pant wrote: >> Comments say macros DRM_DEBUG_* are deprecated in favor of >> drm_dbg_*(NULL, ...), but they have broken support for it, >> as the macro will result in `(NULL) ? (NULL)->dev : NULL`. >=20 > What's wrong with that? NULL is not a struct, so the syntax is incorrect. Note that this isn't about a dev pointer whose value is NULL, the first argument is NULL directly. So "NULL" is directly substituted as is. If it was a dev pointer, then the definition of struct allowed for no error, but here gcc will generate the following error: error: request for member =E2=80=98dev=E2=80=99 in something not a structur= e or union=20 Hence, there is a need to fix them. Thanks, Siddh