Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7115979rwd; Tue, 6 Jun 2023 06:38:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SqESTYErM9Qc9m4XiKvVGxMvK3/lNIpRUiBUeUQWQB+p+1BQmvaa3tBuDnWLLsguF5yAx X-Received: by 2002:a37:a855:0:b0:75b:23a0:deca with SMTP id r82-20020a37a855000000b0075b23a0decamr1694102qke.72.1686058701069; Tue, 06 Jun 2023 06:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686058701; cv=none; d=google.com; s=arc-20160816; b=rtq2b62BA7tVv5tO53MMBxTku5+0EXVYle8yS1tOvWVrNtCnTuQi1M8tamdxplyJXf Uni+y12PopIbUuTIywx9V+enE8Y92d2enVrq2j8SngC5VMPC65h/Z56CGbRZBd4GNykd G0DpI9LMDA/syRAj1yQ/MgAsp5ckkZtOUHYpQb6v3SatzOfHePW0P8+qJOn4Zyra0JzI AlOeL4vqLh0fN51UuV97ih9+0fr+Sry5l0o3u0BLM8ABd5XsDh/fJ+7PhDsKXEXt2mYe BPhRm28gUZmOkxHLvd1J7MBvRxktws6HRXtma8mxjNsH3a8ctpPtipy+UI/lgCi20Eut hohQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=J9u1In9pzg3vm8KcBORyYaVd9ZHYIYTT3hYMFTBnBfE=; b=PhoVn6jNJbxfPEMAb5Meq3Y+NmNUfTYf4QhXLqk4oFw1DxydtXqHOph3v6qyiVm3RP C+AUZaPWQFO/pFPQ+tZ0wIgpGWo9VE7Uq7ZIvxPjQphFoiaL/WPGQBRJGDbTv4kDvW/J V0cuRdbCLEZN9cb60oaFxYn5g+A4IKJB4aHuJHMNw5E95rhu+5i3MfRJBFlfDeDiscfC eVrYi7I4agva1+vLJ5nlU+qcZDFbnFOtBTg1KJ7iN+6CGTtzf2x8O01eG93PONTM6Lx4 p6fq7irH4CdOrqQ7z4m9IpTFTixKsszxvE6SxQ67tdSB7mTYdOWXIpm0zDTA3qA7WuWo DdVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=uTxjqppg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a05620a078200b0075b285ea25dsi5714938qka.727.2023.06.06.06.38.06; Tue, 06 Jun 2023 06:38:21 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=uTxjqppg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237853AbjFFM4N (ORCPT + 99 others); Tue, 6 Jun 2023 08:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237825AbjFFM4H (ORCPT ); Tue, 6 Jun 2023 08:56:07 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75FBE10C7 for ; Tue, 6 Jun 2023 05:55:42 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126253223039.31.openmobile.ne.jp [126.253.223.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 42FC2AB; Tue, 6 Jun 2023 14:55:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686056115; bh=v1ebWPm9f57kmCy8NGOr72XyV35bqnA9olqTFoX1h0E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uTxjqppgykua5g3f+sz22G5bMh0HeRARGlDCvYnIF4hdA+sUbKd1dk3zAzAQZuBpl gA+wZDiERLVn8ntmn8KAdjlbkjFyaT6ISRs+4BnWIZ8l8zS9Vr0YZDS1oDJw7KDGPE W0frUSEwX/86rVESPsLMihBDetS6UsmhRJrOwQNk= Date: Tue, 6 Jun 2023 15:55:37 +0300 From: Laurent Pinchart To: Siddh Raman Pant Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Jani Nikula , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay Subject: Re: [PATCH v9 1/8] Revert "drm: mipi-dsi: Convert logging to drm_* functions." Message-ID: <20230606125537.GC25774@pendragon.ideasonboard.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Siddh, Thank you for the patch. On Tue, Jun 06, 2023 at 04:15:15PM +0530, Siddh Raman Pant wrote: > This reverts commit 1040e424353f5f4d39f6f3aa8723eb3bd6ea6446. > > It used an incorrect way to use drm_* functions. Only drm_device ptrs > should be passed, but the mentioned commit passed mipi_dsi_host ptr. > It worked by accident due to macro magic. > > Reported-by: Jani Nikula > Reviewed-by: Jani Nikula > Signed-off-by: Siddh Raman Pant Reviewed-by: Laurent Pinchart Any chance we could prevent this from happening by turning the macros into inline functions ? > --- > drivers/gpu/drm/drm_mipi_dsi.c | 15 ++++++++------- > 1 file changed, 8 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gpu/drm/drm_mipi_dsi.c > index 3fd6c733ff4e..a37af4edf394 100644 > --- a/drivers/gpu/drm/drm_mipi_dsi.c > +++ b/drivers/gpu/drm/drm_mipi_dsi.c > @@ -33,7 +33,6 @@ > > #include > #include > -#include > > #include