Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1061526ybf; Thu, 27 Feb 2020 04:23:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzi3fU7FdvDzbsT89Q+MzknCyhL4QlrChGRVuLiKpj1LtmgpvjIu4LimWhkB9PPjxHNQ43t X-Received: by 2002:a9d:7309:: with SMTP id e9mr3248834otk.260.1582806218063; Thu, 27 Feb 2020 04:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582806218; cv=none; d=google.com; s=arc-20160816; b=BcR4B43OvmKjA2o+5ia6/Tvls/s2vKiqlyIb5WWz+EQfxcd1UYykj9FNzy5jNjSl16 iwyRzocqh4ypSm49u+y3JD1DemQD6Pf/6YsS/Qpmf3RAXyEFuKatIvjowRmxTyitB1g2 ydtaCDxiXkzKZImhLI9toQ+9G0MmUxlFAXsW7r4XAXAnAu9WMEsLkwJ1oFYizznval18 VuiGeLGJ1QJkIJvq8QqPHiFkqNWp7F6cWr2qBo6nYDc68c0PCUPYoIBRDtdgZF7G6N7H iCPLeedN35P8djibEEjqBKf0IBpUH6X284AUtLBnmlkBm/0Yurnh6F2+TJUWqpkHeaE8 CKOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fbLToEoaEamIjFo1AabZnOt1HeFp2rxcHS2TTQHJPpg=; b=JpfzFJZEJfWDkYW4F6ur9jCGy6lmKHQ8T+zq/az8g/RGPxZJL2tErzOSStHwxY/zV0 77AMiMGFdz9U/G2Jd4RrWluM6byA5zSb/ceG+h1srGKOxKHIrBaN9+mE2oMH/cjnDntK 7bzS2Gci2PBaQ0L3QB6qnBQ8RpzNA8TkQgPF9R2eyB/zMtNhcWI1z0BEGwLZGDjYi16k aMQpK63iOPj5tErN1Ih3byzSRCW3Ji0U3kwgYQn8qx4hbbDCcvS3FtfIvf2VEHJZS+fU tV0Ol74zzy+fxSniqE7o8as95FYdxqu9cH/LQrNqm2LcsYMXbCyOjpCvaT+6YtDtWnWY 0LbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RhGbIY7R; 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 p11si1309895ota.300.2020.02.27.04.23.26; Thu, 27 Feb 2020 04:23:38 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b=RhGbIY7R; 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 S1728976AbgB0MXR (ORCPT + 99 others); Thu, 27 Feb 2020 07:23:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:60312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728929AbgB0MXQ (ORCPT ); Thu, 27 Feb 2020 07:23:16 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E6212468E; Thu, 27 Feb 2020 12:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582806196; bh=2zPnlV0ZH+D2gKvuwb636d2VVVPT90Hpg9RA/haF8ww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RhGbIY7R/Y/9wdj2JrTB0IWT+V6WY/fdbRIzuk2c74jsyICgj1YC/bl4NFDTanvoT Sf62Zbx9p/M70y4IvsJ1I2E+EiIM2VzeKReKfieuL69ecKOGAmYFM3LsIALK5cKU2F L5mwXjPTJeO8SQFYb3b4n9yAiyShX8kIbZNF/Xi4= Date: Thu, 27 Feb 2020 13:23:13 +0100 From: Greg KH To: Wambui Karuga Cc: daniel@ffwll.ch, airlied@linux.ie, mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 02/21] drm: convert the drm_driver.debugfs_init() hook to return void. Message-ID: <20200227122313.GB896418@kroah.com> References: <20200227120232.19413-1-wambui.karugax@gmail.com> <20200227120232.19413-3-wambui.karugax@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200227120232.19413-3-wambui.karugax@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 27, 2020 at 03:02:13PM +0300, Wambui Karuga wrote: > As a result of commit 987d65d01356 (drm: debugfs: make > drm_debugfs_create_files() never fail) and changes to various debugfs > functions in drm/core and across various drivers, there is no need for > the drm_driver.debugfs_init() hook to have a return value. Therefore, > declare it as void. > > Signed-off-by: Wambui Karuga > --- > include/drm/drm_drv.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h > index 97109df5beac..c6ae888c672b 100644 > --- a/include/drm/drm_drv.h > +++ b/include/drm/drm_drv.h > @@ -323,7 +323,7 @@ struct drm_driver { > * > * Allows drivers to create driver-specific debugfs files. > */ > - int (*debugfs_init)(struct drm_minor *minor); > + void (*debugfs_init)(struct drm_minor *minor); Doesn't this patch break the build, or at least, cause lots of build warnings to happen? Fixing it all up later is good, but I don't think you want to break things at this point in the series. thanks, greg k-h