Received: by 10.213.65.68 with SMTP id h4csp397277imn; Sat, 7 Apr 2018 00:55:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx48MyK0QnkkQ0jmqeDNvxaTAMs7PAIY8C7wr/bLbx6w9Ne+U2EdlTNNBR/vgdZ0by0n053bm X-Received: by 10.99.174.6 with SMTP id q6mr19755749pgf.179.1523087726834; Sat, 07 Apr 2018 00:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523087726; cv=none; d=google.com; s=arc-20160816; b=c24+j1tcmzh+5ftuQ0/S0WdMmAp7g8miEC7elg//xBSxvq4tvmqH7jV4wihIb3KwWa ufOFUHdSd2xDJnSdznO1mGyuvs+MXATPMDv3LGzMFu6+qXjOJ/l53reuVqUlgGmpm3Xt OC86obDIW/CeI94x/FOeDhblv7rmKUdxdIPFuILe5zmoV8/7jx4qwoDAIzBNfb1338lh 0L8x4nKnuP6bGhdkuzwYZdWWVTasYQw/qZke5sZhsWc3/IMWNKxDQh7Oho5sCL6PvH6H 83QhMfZjooKtUXv7IkLAIy07oZ71U46+6zJYYk0pTo7F9D5LqAM87jL983yKvD8I+Kum do6A== 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=zO8IdVYwPuWPbcys0GDLaJUPqLj99lY56+gT6JwWYnI=; b=ywwuCBgKp8zOTwEl9rjNmvtG3evnlcAf15FKraaq5M3TulTpj3YVdi1PK5Q0ZMb/kd JX3766ujb0FLjwEOI7xMbmH4P+fC50r3FQz44zvHsOhZw150L7jU5NIvQQjqNw04+X3U 2gKcHzJKUH5ZoXuyJuFUp2OUkf4aVPNA/egAm7wE3J3d9KG2VdrG3UbOXx2iNmZJDk9B NCC2zcqSQoOcCjX2mAD5Nsdsf5RXhNEs9gvZT9itr6k23OU/tyZSvWoTElw57fvY6QDQ Ef9QJbhy0Gw+RWoSU84dKFn9XWtyTNzRR28RbHj5063P7hZEEkDbIH8xzd+0L4V/AIzJ tf0A== 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 a20si2337465pgd.716.2018.04.07.00.54.50; Sat, 07 Apr 2018 00:55:26 -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 S1751569AbeDGHtS (ORCPT + 99 others); Sat, 7 Apr 2018 03:49:18 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36740 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394AbeDGHtR (ORCPT ); Sat, 7 Apr 2018 03:49:17 -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 B02D1CB2; Sat, 7 Apr 2018 07:49:16 +0000 (UTC) Date: Sat, 7 Apr 2018 09:49:14 +0200 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: <20180407074914.GA23923@kroah.com> References: <1521107725-25027-1-git-send-email-aspriel@gmail.com> <1521107725-25027-3-git-send-email-aspriel@gmail.com> <20180323165543.GA21833@kroah.com> <20180324090446.GA863@kroah.com> <20180406144601.GA25567@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Apr 06, 2018 at 09:35:35PM +0200, Arend van Spriel wrote: > Op vr 6 apr. 2018 4:46 PM schreef Greg Kroah-Hartman > : > > > > On Fri, Apr 06, 2018 at 12:13:38PM +0200, Arend van Spriel wrote: > > > On Sat, Mar 24, 2018 at 10:04 AM, Greg Kroah-Hartman > > > wrote: > > > > On Sat, Mar 24, 2018 at 09:50:05AM +0100, Arend van Spriel wrote: > > > >> On Fri, Mar 23, 2018 at 5:55 PM, Greg Kroah-Hartman > > > >> wrote: > > > >> > 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? > > > >> > > > >> Hi Greg, > > > >> > > > >> I submitted driver patches for the 4.17 kernel and from that > > > >> discussion we concluded it would be good to change to void return > > > >> type. So those driver patches were dropped. The caller of the callback > > > >> in drivers/base/dd.c does not use the return value so from that side > > > >> there is no issue. So my motivation for asking to consider this for > > > >> 4.16 is so I can resubmit the driver patches for 4.17 if there is > > > >> still time before the merge window. > > > > > > > > It's too late for 4.16 for this, and I would queue it up in my tree now > > > > but I don't want to cause any build warnings in linux-next from it. So > > > > how about I submit something like this right after 4.17-rc1 is out, > > > > where the function signature is changed _and_ all definitions of that > > > > function are changed at the same time to keep everything sane at once? > > > > > > > > Can you send me such a patch right before -rc1 is out base on Linus's > > > > tree? That should give everyone enough time to get the things merged, > > > > right? > > > > > > > > Or is there no in-flight patches to use this yet, and I can queue it up > > > > now for -rc1 as no build warnings will happen? > > > > > > Hi Greg, > > > > > > Are we good regarding this patch. I have assured there are not > > > in-flight patches. > > > > All of my stuff is now in Linus's tree, so check there :) > > Hi Greg, > > That should have been obvious to me with merge window. Anyway, I > checked and it seems this particular patch got lost somehow. The other > two patches in the series are in Linus's tree. There was only one > in-flight patch in bt-next and had it removed with you on Cc:. > Probably got lost in your daily email storm :-p Ah, sorry, now I remember. Yeah, this is long-gone from my tree, care to resend this and I'll get it merged after 4.17-rc1 is out? thanks, greg k-h