Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5634785pxb; Tue, 16 Feb 2021 03:50:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6wBBY596376b4kGwbv/MvJJviBSvxUfZbw1DysAYIWbP1vj6fBigqp0CkYrsCTTXjAvJt X-Received: by 2002:a17:906:2681:: with SMTP id t1mr20382919ejc.29.1613476250834; Tue, 16 Feb 2021 03:50:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613476250; cv=none; d=google.com; s=arc-20160816; b=CIhMacC4Q71FgV9Elk3KYs5yW3lkQg0edPAWEvSJWZWL8W35QSskUtJY35+mEto826 ypCw8/DqdwIWrRVVcPBt0QzGYWCEGhhaTcz4BQ2/qDE9w0wcoygxAvaPYY/A7214eBI3 113qRJr1ifKkOJ/N+gJ9LD/lRun+sh7nk7h9azbMiU/Bzc8jxGjiaSnmyHqjKNePfaHq z9KY4UwCnzXF/gcEyJ6KvjyUAtJR0jCtzXu726AJbztsnMc9hdRN79zQue3XuRipyI7O BBzhXsoxdlcGPykFvCMmkK/96KZ88zWa6olxULj3Z38xeoi35j0bDCjAjEOK9l/3dc8X WFew== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=B01g/BGYE9GP8M8Tb9q8M7n4A3O0huAqboQ97Xw6BbE=; b=Sjqk121i0/os1WVkQ+yfJsbshcSy26ra1p3A530QRfyv9SQ8QHQgW/J9TQk5UuNfdE /L6GHfUOAueYkMvu9bl2qQ6J6tYu1HvPNhMA6xdaZD2L8ipsitTJDskgiV17/OydAXSG ll/UXdvu9fC+bSaCf3QfovKXOTlxbdq4jkK1YBIKaxu5CZN6zoaI5ehg9pMszQyRlMF1 XD4SH8e3V2d43DWGB78mHZNvJsVawOlLD4CUT5LFmzirz19udRfDwDGCg3RtYARxJhgJ YdpWIGSWyaBeZ/T1ly/LfXuq1soT2xVXpXzx4oy0PhaI/U3lmxqBwGWQWDQqZor+sSQU cYdA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si8574210edp.132.2021.02.16.03.50.27; Tue, 16 Feb 2021 03:50:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbhBPLrw (ORCPT + 99 others); Tue, 16 Feb 2021 06:47:52 -0500 Received: from mga14.intel.com ([192.55.52.115]:40444 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbhBPLmn (ORCPT ); Tue, 16 Feb 2021 06:42:43 -0500 IronPort-SDR: wExj2dWau9FPU6O9DcRRwkmzpvfmWZDyKyif1Nr92TBVTUMTZQyNqFDuOQjW/K9TIRdO1BEp3x M6xdQCKQ+3SQ== X-IronPort-AV: E=McAfee;i="6000,8403,9896"; a="182082968" X-IronPort-AV: E=Sophos;i="5.81,183,1610438400"; d="scan'208";a="182082968" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2021 03:40:57 -0800 IronPort-SDR: 4kV5ifMdVY9iJrYATUkpZJGFsnJHi5+qO0IkY7IxM9P8arvHIg0VaVYfdir6wCj/cYIBdI+Pi9 LMsAkJsHniLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,183,1610438400"; d="scan'208";a="400964230" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.171]) by orsmga007.jf.intel.com with SMTP; 16 Feb 2021 03:40:54 -0800 Received: by stinkbox (sSMTP sendmail emulation); Tue, 16 Feb 2021 13:40:53 +0200 Date: Tue, 16 Feb 2021 13:40:53 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Chen Lin Cc: airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chen Lin , rodrigo.vivi@intel.com Subject: Re: [PATCH] drm/i915: Remove unused function pointer typedef long_pulse_detect_func Message-ID: References: <1613388619-3276-1-git-send-email-chen45464546@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1613388619-3276-1-git-send-email-chen45464546@163.com> X-Patchwork-Hint: comment Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 15, 2021 at 07:30:19PM +0800, Chen Lin wrote: > From: Chen Lin > > Remove the 'long_pulse_detect_func' typedef as it is not used. > > Signed-off-by: Chen Lin > --- > drivers/gpu/drm/i915/i915_irq.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c > index 6cdb052..c294ac6 100644 > --- a/drivers/gpu/drm/i915/i915_irq.c > +++ b/drivers/gpu/drm/i915/i915_irq.c > @@ -78,7 +78,6 @@ static inline void pmu_irq_stats(struct drm_i915_private *i915, > WRITE_ONCE(i915->pmu.irq_count, i915->pmu.irq_count + 1); > } > > -typedef bool (*long_pulse_detect_func)(enum hpd_pin pin, u32 val); > typedef u32 (*hotplug_enables_func)(struct drm_i915_private *i915, > enum hpd_pin pin); I thought we used in when passing it as an argument to intel_get_hpd_pins(), but looks like that's not the case. I guess we should unify this stuff by either removing both these typedefs and adjusting intel_hpd_hotplug_enables() accordingly, or we should use the typedef in intel_get_hpd_pins() as well. -- Ville Syrj?l? Intel