Received: by 10.213.65.68 with SMTP id h4csp1549607imn; Thu, 15 Mar 2018 02:58:08 -0700 (PDT) X-Google-Smtp-Source: AG47ELupSRaKiDPiUI4lxkH1yGbguxbK4CDngr13KbVTGdNcpXS4eAExPxVKlo2BIuFtYAQVEfBt X-Received: by 2002:a17:902:341:: with SMTP id 59-v6mr7186941pld.407.1521107888068; Thu, 15 Mar 2018 02:58:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521107888; cv=none; d=google.com; s=arc-20160816; b=XaVx1CjUJ5mI6/pKrudlDu1+lLq5hwqyrqNKjci5HHj7nLkRnc3ff3eVDJAyl4tqPI tglAoSunbLdiYoc49AlQexPZpLT/LAeYuOY3oYmYPTJ2Twik4XKYyxc3buLoMtmXIopt 2z3zwmuWhdD6EKK91Vj4hQy/qj77o2nGD10Wrppi+z7Ev0HXXZDk8FkH9vaXqD2E92K0 Z2NxduRJArZ3MJthIp0VBEWLJErkAykUbRWBERS7Oo7sJqh07IkOgbm06CkL7vKlso1G Apw+MvwK+MszuPTU5XjzV6184KWQJv8ZKHZT+faOUkayeA8Wfs0DMAGhkKOqwIDB1dzu fkJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Nh7r15nYjrnK+wWO/QQ26XQnfq9BwTtPyWzmmY9dEzg=; b=JvD2QvwgLuFaVoBl14S38d1u2QxvFMvh0ToQ/9punWIdzoTkficsn8PFdL+IYU3zOD vM7K3PrYnr1AAUf9VeRnNkUG19ksYO+4bMZwZja1D4o9msQTyFfYc9DaFDXUDWNzRaw0 EMMuAebQSuSZlVKjlff1jbPM7VS68WzY2GECbGm/WwtAu5iKaKdGJrJyp7zztmvdBB2k wPuUUMQmZYSc0PXrD2lzISXLyhch63ZRHqWpdTQRbt0xRPLDRDJ/G+jphopAst0qfNop p3wjV4CnyYT9A3aCvStBiduHsC2bjWrKraaw6phHU+GH8mP6xRVYub0ZqgPUxtYny4ig MwZA== 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; dmarc=fail (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 r15-v6si3962098plj.96.2018.03.15.02.57.54; Thu, 15 Mar 2018 02:58:08 -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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751964AbeCOJ4L (ORCPT + 99 others); Thu, 15 Mar 2018 05:56:11 -0400 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:50418 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751571AbeCOJze (ORCPT ); Thu, 15 Mar 2018 05:55:34 -0400 Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.224.233]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id EB49B30C02B; Thu, 15 Mar 2018 02:55:33 -0700 (PDT) Received: from bld-bun-01.bun.broadcom.com (bld-bun-01.bun.broadcom.com [10.176.128.83]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id C96E281EBD; Thu, 15 Mar 2018 02:55:33 -0700 (PDT) Received: by bld-bun-01.bun.broadcom.com (Postfix, from userid 25152) id 435B7B01FC4; Thu, 15 Mar 2018 10:55:31 +0100 (CET) From: Arend van Spriel To: Greg Kroah-Hartman Cc: LKML , Brian Norris , Arend van Spriel Subject: [PATCH for-4.16 2/3] drivers: change struct device_driver::coredump() return type to void Date: Thu, 15 Mar 2018 10:55:24 +0100 Message-Id: <1521107725-25027-3-git-send-email-aspriel@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1521107725-25027-1-git-send-email-aspriel@gmail.com> References: <1521107725-25027-1-git-send-email-aspriel@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); struct driver_private *p; }; -- 1.9.1