Received: by 10.213.65.68 with SMTP id h4csp539302imn; Fri, 23 Mar 2018 09:57:03 -0700 (PDT) X-Google-Smtp-Source: AG47ELtZNOpBz2DaSiSYOUBHDwnmfwBHheRx+2du4JWDWwLQT7KBoIBklwjCV3xbnNG2c/ZsJH3E X-Received: by 2002:a17:902:2f:: with SMTP id 44-v6mr30416342pla.187.1521824223725; Fri, 23 Mar 2018 09:57:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521824223; cv=none; d=google.com; s=arc-20160816; b=g5g1qcwM9pqonh+hJeTc6u4YB/LW9P+3fwtZR9wYjyiFh6fA+UKXAU+Cjg86G/vZhV ZwJShMIE+RDVLdyeBqZ2Mhmza//6tMxwFiF7AYjJEQNttJqusLbvWXA9yo7oj4I24x5J PR1cIGlrcUAJX6OJWc0/xrfp3jA+SUSlISm9CMDTrT6ur1WQ5ndL7gbKbTC7MvW/yJjY 7YBW16l8dASVoG2AnXQe2BxiSFVKF+D++FWMYq1yzvYkCqFLkDvGdnQsu7eOtuo8d4TZ vykkyrqdFoLl8pd5tO6/l34z6n8/7iPYiSAgqjKGMZ/qj9XEd7UKbz08TmrcYkLyUM5N YEHA== 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:message-id:subject:cc :to:from:date:arc-authentication-results; bh=iLC4+LFoSBuQBmKGn8aIDa5WCPyJnkaf08s1nPQp2cM=; b=uRuA36OdszAT1rf3OXRc3Cq6yWuiFSKaS/INTVIu95DyiLIVK/o7CCH0Fn1XhJsCd5 Y1HudUjShRN+b13xoOE7LmzxxsrUupxwmzlsShqLaccOTpVWXy+2Vc3+JZmIvydsXJXz y5RVZqQCXKP2YtmmNt4J2N3L1WODTpZS2JazJn/svvt8IILzJfUh0SeahRX8zpJioKGf SnFRZ7l/IwUzjwLlVNmtXFyWzzKXk3mVXzujrVrLXccbsUmB7wsucg8dY1gZAj01sMX9 sDZlbjgHAi4oetiYh1H1f/uX0k/deGXovQszf259d0/AzIBFIXci8JK5yrG/6UVzyObr EfGQ== ARC-Authentication-Results: i=1; mx.google.com; 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 w7si6994654pfw.1.2018.03.23.09.56.49; Fri, 23 Mar 2018 09:57:03 -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; 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 S1752096AbeCWQzq (ORCPT + 99 others); Fri, 23 Mar 2018 12:55:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53592 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751427AbeCWQzp (ORCPT ); Fri, 23 Mar 2018 12:55:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DBD35899; Fri, 23 Mar 2018 16:55:44 +0000 (UTC) Date: Fri, 23 Mar 2018 17:55:43 +0100 From: Greg Kroah-Hartman To: Arend van Spriel Cc: LKML , Brian Norris Subject: Re: [PATCH for-4.16 2/3] drivers: change struct device_driver::coredump() return type to void Message-ID: <20180323165543.GA21833@kroah.com> References: <1521107725-25027-1-git-send-email-aspriel@gmail.com> <1521107725-25027-3-git-send-email-aspriel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1521107725-25027-3-git-send-email-aspriel@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 10:55:24AM +0100, Arend van Spriel wrote: > Upon submitting a patch for mwifiex [1] it was discussed whether this > callback function could fail. To keep things simple there is no need > for the error code so the driver can do the task synchronous or not > without worries. Currently the device driver core already ignores the > return value so changing it to void. > > [1] https://patchwork.kernel.org/patch/10231933/ > > Signed-off-by: Arend van Spriel > --- > include/linux/device.h | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/include/linux/device.h b/include/linux/device.h > index b093405..f08c25b 100644 > --- a/include/linux/device.h > +++ b/include/linux/device.h > @@ -256,6 +256,9 @@ enum probe_type { > * automatically. > * @pm: Power management operations of the device which matched > * this driver. > + * @coredump: Called when sysfs entry is written to. The device driver > + * is expected to call the dev_coredump API resulting in a > + * uevent. > * @p: Driver core's private data, no one other than the driver > * core can touch this. > * > @@ -287,7 +290,7 @@ struct device_driver { > const struct attribute_group **groups; > > const struct dev_pm_ops *pm; > - int (*coredump) (struct device *dev); > + void (*coredump) (struct device *dev); Isn't this going to cause build warnings now? Are there no users of this callback function yet? thanks, greg k-h