Received: by 10.213.65.68 with SMTP id h4csp453007imn; Fri, 6 Apr 2018 03:16:17 -0700 (PDT) X-Google-Smtp-Source: AIpwx49RPaU4Jt4xeg0292k0xjl87DGy6j9JmKQyIf2NKPkl2PW7DDhJhVDoKSS6Y4clzudFClAH X-Received: by 10.98.93.20 with SMTP id r20mr19921927pfb.53.1523009777698; Fri, 06 Apr 2018 03:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523009777; cv=none; d=google.com; s=arc-20160816; b=FPySALIO/7ZJ4XS8RBAYK4ct+QdAv6U4cLmUkU/3vRlEvDl5OqGCsDU0QqBgUuDopm 4IYzhIUE1t7T4KJ5B1L3DHhU+Ziy67qVJqHiHjarvQLJ6Lx0tGCe5J2O3jmzg3zIGnU8 +ASOCjQuM525qY7JBTPxfBG/v+mUgepLImzmAZvyTBGd9cGw5SSVqwy/kwnzz5J536ad 1DVhWwYY8IZ8cbVeWeskhK4MS+eLONLRAXtR4N4L3MlDyZ3jw4UHgvqbSzkGn8zaRVac tvfw27ycZNruzJ0WZ3bAsC/Yv5TSdYVVrHnE7qQsZsczDK8s5pYwP40MfW5txX0L+/3E KNQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=pwASrJ9A/NrbfI+h3gksgI4mLo8aULbqpMnP1VVR9u0=; b=v3hhPOFRLn8r17DrL3KkZecJrh/1QZcSt7DCshVSlcDnMaWTZPWhDLVMeET6m9VTIW aoJtP498NUhZX+Y9vYAMUshcmR5aPgIKWqtSYwO768cpo2+zDnqwF+3ISJysoWC4PuXn iLGgralQkxVDgPbJW6+hRAxQSyHVhYIR9lS5gTOHRpWOqgkP+1IEQeA1IzSt6wprmyNR p+tiBpspwbdf2NAY2srsQY/Ym8E/I5bPAmRyqA9Ro3/GWz/Jo0QX9xiu+CLFGli3F2OH Q6ZfQ8HJnBTVtlmFLFN/l06VPku8yaCNsTy8jdB+S5lw3YmKoAF68oZNmsFQxkDy2AKf TwNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=r4wa4kZP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si6995945pga.552.2018.04.06.03.16.03; Fri, 06 Apr 2018 03:16:17 -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=pass header.i=@gmail.com header.s=20161025 header.b=r4wa4kZP; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbeDFKNq (ORCPT + 99 others); Fri, 6 Apr 2018 06:13:46 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:44659 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbeDFKNl (ORCPT ); Fri, 6 Apr 2018 06:13:41 -0400 Received: by mail-ua0-f195.google.com with SMTP id r16so357079uak.11 for ; Fri, 06 Apr 2018 03:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pwASrJ9A/NrbfI+h3gksgI4mLo8aULbqpMnP1VVR9u0=; b=r4wa4kZPVBkkhYPtXR9okk5opp2Gwx2p6NVXJOh+qw0kRNxbgDgOoA4RxwzNj89Q+R TAaMW8XLJylZuHT21xs91mPJ0g2te9Cn9eEiZumsnIZ0V2PfeLB5E3E69gpqihOGDK4T RzwgRow6JEyTVbf6TJIN2nu+sN9hR74umip4pQvt+GPVIAl98GP/RbmuzPSWAjP8qsYa pGx4WvSTeQoXAFcoGNdzBY/fSmBhkmTbNdLNFcjNt+hX4ch/bGKNsgS0UMQl91htvKbH A5Ihie5kMYPbAkPjHRqjdcc8zcJ0hOBGSHiE/pxgLlQDoM0kBDsjBb1J89uLEYwWDhaI hFnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pwASrJ9A/NrbfI+h3gksgI4mLo8aULbqpMnP1VVR9u0=; b=s/X3qX7ywFJdZdRR+V3n8Ci41UXm4xZe2vRaZrASCbs0fX2GnpbFHdUnhwUy+I4XzO uaRNy2bT1vCBfdxXgI3OqFI5lSSvk9KDHWZWmTRAlfuDeyJfOxdNZpH33TAUPZDloywz LQ6tX4V+DCiaxJxEyQ92NI/Ifz9IN569wzCbceDI6GrLeRJRr5fotdJ0G0ePEkS9m9Gv KEpxrZf4TjN3HjllRL7aDEbLPZMnPaG31nz0pLIFkWmS7HHWKBcqfW9mzY4/RLvMqhyp 3o0gQOMyCCMyZgqP4ujroE8u1Kyso8npRhJyXNqnN1hK02bM84GAt5oO6ByGROaEm4dJ kcqQ== X-Gm-Message-State: ALQs6tCos2y0RS/2hqRM51aih8BBEv+SUSChZiBOoCDk7rIXaKoFRF13 d03sS+GBVAkNuIpbaldVuAy+Wl3cKXFLhJ9xuDI= X-Received: by 10.176.48.215 with SMTP id c23mr16522038uam.185.1523009618674; Fri, 06 Apr 2018 03:13:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.210.133 with HTTP; Fri, 6 Apr 2018 03:13:38 -0700 (PDT) In-Reply-To: <20180324090446.GA863@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> From: Arend van Spriel Date: Fri, 6 Apr 2018 12:13:38 +0200 Message-ID: Subject: Re: [PATCH for-4.16 2/3] drivers: change struct device_driver::coredump() return type to void To: Greg Kroah-Hartman Cc: LKML , Brian Norris Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Regards, Arend