Received: by 10.213.65.68 with SMTP id h4csp999488imn; Fri, 6 Apr 2018 12:39:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx49sw5gksCwNqgqTTH2RXLdiX7pBOms4+dxhAwMxxgypJDWU2rf1dLZmtxc+mq93E/t97JBE X-Received: by 10.101.88.140 with SMTP id d12mr4840063pgu.408.1523043561917; Fri, 06 Apr 2018 12:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523043561; cv=none; d=google.com; s=arc-20160816; b=JAtvGaIUy2L4OZ8EWUV8/7/OaMaqdiJ/zQh0nltIA1OnCqL9zMFbberdr5ugL540gY HABC1TXfCvtz2bgWHOML0mMRUYCydNiYQPlnOh9o7M2IPoA+zeNzX1sJTd8irFQnhhZF +74zC0TEEm2jc8a8+AgyM1zEykf+6PaL5j1SZ7UBS/POI6Ewa73jsOj2Nl+MitveD3UD SaKG/5/H1VocwG7xyzeKEgRr1NJDG4LO0uO0QiZd4xJx1cLjF6k71yVjocmbc/XAbery oJBMGpyKg1XYMj4a083Oy0LkfHWWFwV0a9fit0f1A85j0nQeEmaDcFoXmF2NMLfAi1UX EDZw== 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=yJf2rd7q7h17RaozJewqS2I07rwQg7XEfBhCSo0BIM8=; b=Bow8nFd+7SispBHAj3Z0lb2hEeeTh8l0erhtr+3L7uhOA07ji7oo7lcqUP8Ivddovo 2NwrqrmG08jnYPdAO3bNuOU68WMJoctyQyKz7gMBwZUVBc/nYxYYruVMU1YtJrEH11Ts wTzmp1eEkzwdaYVVxCHCtlTS2WgtvAPe3RRQEN9ASxYoo9Egst72lOTtF8rQr4S5Skbm Om0t3pVkjqPv/4+fdiq+Vk+h/V3eItvpWNXnlHlxMSfBD2a9J6Vd30lq29yjUmin9J2x CA7fktaje/zydNtd0aeVUJWhVfs/0hOV7PUoIhDMMi8rYr5Feh4pFvfsIIJOOyP2tPQc qVrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vA2Vj6HP; 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 u17-v6si9076593plj.731.2018.04.06.12.38.44; Fri, 06 Apr 2018 12:39:21 -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=vA2Vj6HP; 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 S1751897AbeDFTfh (ORCPT + 99 others); Fri, 6 Apr 2018 15:35:37 -0400 Received: from mail-vk0-f68.google.com ([209.85.213.68]:39811 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751278AbeDFTfg (ORCPT ); Fri, 6 Apr 2018 15:35:36 -0400 Received: by mail-vk0-f68.google.com with SMTP id n124so1337896vkd.6 for ; Fri, 06 Apr 2018 12:35:35 -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=yJf2rd7q7h17RaozJewqS2I07rwQg7XEfBhCSo0BIM8=; b=vA2Vj6HPnqUDbM6yxldF++R34xDp2UyETodxJotxyNV9XpqxCvtmZNlxkNhpM31oDZ OqU//83b/TMocEs2o3esTAPoEBS6xR1c8hGpw0C1x867tbE0+r0c5fXtNKNVAHHft4xW +4whvMBdGpAOpv7g2d7drySe+J7iUd4rp2Sqlk7YXNUNtC4mCWdxOPkQrxVeCkYivMfh SJ/+/4Sd1LbwsE53J9B915o+5dkppwPruSAML5fQNqTGbxYcox2HZyrljqJxASqe3NFg ZZlFH8gLZ2qJno4qxlQ91qKadR27gVSKyCeMTAkoyViDZzh49Tzw0CpxKM3pXwgIHs/j 1m7Q== 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=yJf2rd7q7h17RaozJewqS2I07rwQg7XEfBhCSo0BIM8=; b=QPjMF7UubXLbgNt9H+eBs8rZtUVoO4M8Ti2FfnNN9P9Jiz/Cu5OcYZsz9k0tyK/CCx oKD9fNJ7JXXSP+ZoK0dV7h/nfzzpYGZa6TKFGtKihy6yJPzcv4mmR9GSCLfSHtT1L8wY t+GMg5HUhaYX0AKC2YM04yY+zZiGnIBfcGRLPba0nU9TRGfdxYPTtMEbYA53FijMigcG VCGCyVQAghXYTKxPuXqYtVW8ZYh4+GmLJgDf4InwLq96DIU87Y1cSLsqj4ce9qkgZepO BXK3UueuHlGn07UBUbWxSX3BIgu683zzW9Tb0bIMSdgY9xjK31C6a7S74n5shDvNQNzL A1CQ== X-Gm-Message-State: ALQs6tCgyNll1GGpjBTOGH9OKCGBF4i4n8Wa/9YeYHg2GluLj9O2OUZK Wav74Mm6n4b9LFoRA40pKoD738iJsl8mlY4t/1I= X-Received: by 10.31.219.2 with SMTP id s2mr17286728vkg.87.1523043335463; Fri, 06 Apr 2018 12:35:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.210.133 with HTTP; Fri, 6 Apr 2018 12:35:35 -0700 (PDT) In-Reply-To: <20180406144601.GA25567@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> From: Arend van Spriel Date: Fri, 6 Apr 2018 21:35:35 +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 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 Regards, Arend