Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6547961ybe; Wed, 18 Sep 2019 05:27:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzlroRsiAYVhAqZ4dv6nZ1/E2lxs3U9YWXAT4IGNOQOf581F54z+CZNG4xkM+5cmFaEey+ X-Received: by 2002:a50:95a3:: with SMTP id w32mr9905351eda.211.1568809676204; Wed, 18 Sep 2019 05:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568809676; cv=none; d=google.com; s=arc-20160816; b=dqsjOJvS1Y6rYkdMgzP8J1Zmgn18nkuRqpMxc/RjEX8Z7+EA6Tb5YcDM6JnGKyiL8M lUKno8gVIWjtla8qn6ti1ugnpo8nWoJ+gRyIs4DQWgDndXuUYZvWdADHfmhrchqWuHDV 39NWfGsxtJIIvWrvZHK7j1mbNdzeq/3X2M0sJoBhJwuc8d/lgZAvKuRBApZ2YNVZHfai ekCgj5+vJyfB7i4P69yzu3i2sJiV2Nw59u1rIB9RpdTdCTWKH1WeIXAgsRZ19tQEJ+cb mlPcGWP+45nfAU3U3lCS6UbXR8+hxOkavbxXbgxMhb4e6z78U6l5dpXaonqo+SGKPjJ6 HxBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=9RAAszLOpdIvDldweaPkNLOitxpBV3SI+NOvvapdMHQ=; b=t0Up2vpbxabtzExqHPBAZmDWMLENEaJylQKhoRrouawutVcKEuNJOmi3azTW+GZCsA H6kSb3FTIuLj5F4E4l03TMaZdICHlFJLFP/FwbBW81cCFSqax98nmPchOeNsrTUCZ889 rMkPNm/UalXFY3I0OM232VQoqw4b80/QBHm6szvqq2CKxMK94/Qn3A49WNmkx93i1OZG Q6E04x+9EGlYRWsulTRBjzXMKxmb9r8r2OYk17d8z/WsFaCUbOU51an4oxYLz2HTfwt1 zkwYk/7zfED/+C/5nmexK9Pnk7aoEoSMRkJkimnpxxw8RtrDWC9xIzOLTXCu6xG29Pr1 Eqnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=PBQnipt0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo13si2708766ejb.307.2019.09.18.05.27.32; Wed, 18 Sep 2019 05:27:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=PBQnipt0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726805AbfIRH7p (ORCPT + 99 others); Wed, 18 Sep 2019 03:59:45 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:36753 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfIRH7p (ORCPT ); Wed, 18 Sep 2019 03:59:45 -0400 Received: by mail-ed1-f65.google.com with SMTP id f2so5765589edw.3 for ; Wed, 18 Sep 2019 00:59:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=9RAAszLOpdIvDldweaPkNLOitxpBV3SI+NOvvapdMHQ=; b=PBQnipt0tgT8m3MGkNMC7d8tYWy6wP232bRYATMSh+qc3+imbzkBvG6+QVXbpLsVT1 9+P0Opb9/LQtRo7XYHAubAsDrZCes7mJ3txtNBwfxnmvURclx9W1r2U7Wpfr1BUDZOBi QGPIYb3ePJaZoKP2AsnoeSwkaSDB0F+TlyV68= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=9RAAszLOpdIvDldweaPkNLOitxpBV3SI+NOvvapdMHQ=; b=PlgTCkcDhZBSlTroh0K4eBLslItfGHHDx0fs3k1d93yNJ1TXyBOgbhR9tdbbjU1y5d E+4C3+c6XbKxWP75PiGaL7R38FohNrLzPBGBs1ZFIKzviBFXGGIB+rXZSeks9/X7qmex UgMDpzPVP/+2309tj4xrlQFL4TCRPll04ApDwKGSbXcKNEDgEzvFb+R0kCcxrW67vCBu iuta5dglIipk6mWIlL2pAgOY8C8BCaRE3jzzQqMbJTc0unqzWRjeGA5LoFZVTlm+THyl N64O+agC/jhm/iS2OsncJfbj2i+8hBGRHehtLwtEDL7JAuUgfk/xG3hXWZWj7AqNplRP QeIA== X-Gm-Message-State: APjAAAXcWKZ+xRfVe3QjHh5rv1rsGEIPzkCGdb43Am8E4qyOWzj35y77 6dh4LUBijibVoEj+NjK2recD6Q== X-Received: by 2002:a17:906:d185:: with SMTP id c5mr7830673ejz.139.1568793583476; Wed, 18 Sep 2019 00:59:43 -0700 (PDT) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id b15sm894079edf.24.2019.09.18.00.59.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Sep 2019 00:59:42 -0700 (PDT) Date: Wed, 18 Sep 2019 09:59:39 +0200 From: Daniel Vetter To: Mihail Atanassov Cc: Daniel Vetter , Liviu Dudau , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , Brian Starkey , Ayan Halder , "Jonathan Chai (Arm Technology China)" , "Julien Yin (Arm Technology China)" , nd , "Lowry Li (Arm Technology China)" , "james qian wang (Arm Technology China)" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] drm/komeda: Remove in-code use of ifdef Message-ID: <20190918075939.GZ3958@phenom.ffwll.local> Mail-Followup-To: Mihail Atanassov , Liviu Dudau , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , Brian Starkey , Ayan Halder , "Jonathan Chai (Arm Technology China)" , "Julien Yin (Arm Technology China)" , nd , "Lowry Li (Arm Technology China)" , "james qian wang (Arm Technology China)" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" References: <20190917150314.20892-1-mihail.atanassov@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190917150314.20892-1-mihail.atanassov@arm.com> X-Operating-System: Linux phenom 5.2.0-2-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 03:05:08PM +0000, Mihail Atanassov wrote: > Provide a dummy static inline function in the header instead. > > Cc: Daniel Vetter > Cc: Lowry Li (Arm Technology China) > Cc: james qian wang (Arm Technology China) > Fixes: 4d74b25ee395 ("drm/komeda: Adds error event print functionality") > Signed-off-by: Mihail Atanassov Reviewed-by: Daniel Vetter > --- > drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 2 ++ > drivers/gpu/drm/arm/display/komeda/komeda_kms.c | 2 -- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h > index e28e7e6563ab..8acf8c0601cc 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_dev.h > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_dev.h > @@ -220,6 +220,8 @@ struct komeda_dev *dev_to_mdev(struct device *dev); > > #ifdef CONFIG_DRM_KOMEDA_ERROR_PRINT > void komeda_print_events(struct komeda_events *evts); > +#else > +static inline void komeda_print_events(struct komeda_events *evts) {} > #endif > > #endif /*_KOMEDA_DEV_H_*/ > diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c > index 18d7e2520225..dc85c08e614d 100644 > --- a/drivers/gpu/drm/arm/display/komeda/komeda_kms.c > +++ b/drivers/gpu/drm/arm/display/komeda/komeda_kms.c > @@ -47,9 +47,7 @@ static irqreturn_t komeda_kms_irq_handler(int irq, void *data) > memset(&evts, 0, sizeof(evts)); > status = mdev->funcs->irq_handler(mdev, &evts); > > -#ifdef CONFIG_DRM_KOMEDA_ERROR_PRINT > komeda_print_events(&evts); > -#endif > > /* Notify the crtc to handle the events */ > for (i = 0; i < kms->n_crtcs; i++) > -- > 2.23.0 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch