Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5155617yba; Wed, 8 May 2019 08:43:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx76hnaIPwiwfZPXo2523G9wvWzkYAtN7XcEzUjRnLtCrJQ3J/U774stfoSCHJCkvigS15+ X-Received: by 2002:a17:902:324:: with SMTP id 33mr40256224pld.284.1557330180361; Wed, 08 May 2019 08:43:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557330180; cv=none; d=google.com; s=arc-20160816; b=UOR/VLqWCtqqIxMyqcYSP9v55L9/qQB8yKUg6AyMGr7jFLXWMQkTSY13JHxWEqtmNl wow6iNs3d341m7y6oMP8e9tnA7ZPOnZmG334R/d78ohU21onjIJLpERJ8nCA40iTDUnb YSep0cm7G2/loa/doacXq1slgLv8jRl14nkLMqq53Tjg1DZZBlJWrKAcy6/LxF366Vas fhPbUtU3RzlgPvPvppUsfF1ek1/prE9+aKyBC1q7F6wjvoDJ0OfBtJ20z4hLi3+SGsnY EXiZhXJ/h+rDnhzOJGekKrwlfSiJ8HA9OzdK/nmwBusDyhxhnjhDNgDiUsoGF0LxxSys ATOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=UacGnCWSnnX/ubt9WP8ILRmg8JHZOIflTzuul+wE29g=; b=1FmLRctJLjFGItNkwgLN7Opu+jAlWbKIXFMnFFYtIUCLfu5USkXIC3aEetaOre+bY2 +Y5XV5iJSTOlPQyd0+BU3iJ5o5uLiWKVa0oRdOOAlkQ7oTAlY00k75n7I+6s6XBcm/Et rZfQvE9Jl8gAcechIYKxkAPYMJq5JYr4yjDvWDve1Q8+2uz81weJANlFdM0qPagaWy7T Aqhu3TtO3JDxXlQEYt83/wVQTKXN01f2xoRe1ZwLUTDfKhjt+qG57tNlVHhctTDGXICH GSn8LeXdl/HZu1nj3+zxAQi3SMZF2F36Xerud71axR/AMTrNGbEU+dgGGWIzNqjq5oRg /L9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pO7AzAIs; 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 f12si6171235pfh.227.2019.05.08.08.42.43; Wed, 08 May 2019 08:43:00 -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=pO7AzAIs; 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 S1727315AbfEHPk0 (ORCPT + 99 others); Wed, 8 May 2019 11:40:26 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:46851 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbfEHPk0 (ORCPT ); Wed, 8 May 2019 11:40:26 -0400 Received: by mail-pf1-f196.google.com with SMTP id y11so203890pfm.13 for ; Wed, 08 May 2019 08:40:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UacGnCWSnnX/ubt9WP8ILRmg8JHZOIflTzuul+wE29g=; b=pO7AzAIshGQWIb7xrPc8YYgQb+Vt5N9C4mFtDnZOpFvN0YMxmPEpIwd+gHGYjrINXL uALm4Pj1ez13Swz3eRdqCfEZtpb3jkDLRifI9SHF2vWZ2HDJ1AlhA/bjtAvOeEv/eecY P/Couz7yq52evabS7CIhMMmHR+ydwFilOCWXxzYHur6gK+PkPaMFN75LHXiXAv0+6UIh BJ4s2PUCFVhRPzlUePVhClTOnXKh6H6rtC05KIqWjAHNCdJZnj5qt5FTLS3hbItI2Ume oYGXOfg0FuHMdu8sH4JFVBeSM5hNF3zirnQ3z+MY/GqMuMS4eLH7y5MLYDYOaOTOn+Ig ryGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UacGnCWSnnX/ubt9WP8ILRmg8JHZOIflTzuul+wE29g=; b=R4U0mE8klr8UULDOa1xD/DuYGobzNoRPcEymVXY1TvvVgHOfP4EhbceXCV1kUXamjH OP25f8E3xgfzuZoQ9oqh3gQIhAeS6/XRUIiwS5XWThSSkaK8terE02vditedxClqLAI8 OS1InbomJBQ4LjSbb17cFJDXc6X8WMigveWpoOxrUM7ti4xi6aJjqRztcp6ibizLfJxV eGbnD6KCibow93bYs6SWzsx2izvnfXVmxBOE+queieiHK4wxWctRWvwbbvzUhKvQku9D eCNj0LVua7v9A04GdFexoAIVG4BabsGEOU8UNfyww6aLiTGHrUxRvW0canI5qJxH20O/ uVXA== X-Gm-Message-State: APjAAAVMe8Idb74MPTzKItiipORwjAU+8ftFXmOiHR8M042Ge80mdxeX JppGWJZzAyMf5gSnF1b5R6Idc98VcYMN4TVRBTk= X-Received: by 2002:a63:fc08:: with SMTP id j8mr26566098pgi.432.1557330025512; Wed, 08 May 2019 08:40:25 -0700 (PDT) MIME-Version: 1.0 References: <1557248314-4238-1-git-send-email-akinobu.mita@gmail.com> <1557248314-4238-4-git-send-email-akinobu.mita@gmail.com> In-Reply-To: From: Akinobu Mita Date: Thu, 9 May 2019 00:40:14 +0900 Message-ID: Subject: Re: [PATCH v2 3/7] devcoredump: allow to create several coredump files in one device To: "Heitke, Kenneth" Cc: linux-nvme@lists.infradead.org, LKML , Jens Axboe , Sagi Grimberg , Keith Busch , Minwoo Im , Johannes Berg , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019=E5=B9=B45=E6=9C=888=E6=97=A5(=E6=B0=B4) 2:35 Heitke, Kenneth : > > > > On 5/7/2019 10:58 AM, Akinobu Mita wrote: > > @@ -292,6 +309,12 @@ void dev_coredumpm(struct device *dev, struct modu= le *owner, > > if (device_add(&devcd->devcd_dev)) > > goto put_device; > > > > + for (i =3D 0; i < devcd->num_files; i++) { > > + if (device_create_bin_file(&devcd->devcd_dev, > > + &devcd->files[i].bin_attr)) > > + /* nothing - some files will be missing */; > > Is the conditional necessary if you aren't going to do anything? The device_create_bin_file() is declared with __must_check, so ignoring the return value emits warning.