Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp162462pxv; Wed, 30 Jun 2021 02:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTW6s8bws2kk5lT1QJm5NAGr7it7ahuZIwgZK3IX2TJ2cdstG+d0fdUkBksFf4+RXz3jRZ X-Received: by 2002:a05:6602:178f:: with SMTP id y15mr7257836iox.166.1625045694150; Wed, 30 Jun 2021 02:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625045694; cv=none; d=google.com; s=arc-20160816; b=WLFeL0urYiJGsSO/46p9w9psjs21rAprkEimf4u8mznsXEkHDozRZvto6zcradvzu+ bVuL/KHSrQIvghX36/4s29FLhpB5mYeLTsOweumBbCvfXt9qhJl2P+QxQo+hy0/hwGQ0 Ep1BhLM7Egye/AlbOQuYx7MmvDW0RXPqlMrz2GuBmOuTWdOggR4kfxcjxy7MSox/JxLn mdvbQA5rmAOYgTzDAvtyirlTvqesq+HtdAGZ7drB5VYHPof55jy3iuClMlaWDB/4Kugh FPotNuFRaWqJL8iAFGpKYmQfn5W8hUCB5tOiN/geJj8lig51M+k+iuCrIJmnzQvyAVlG 6flg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tbma0IJD+W2GwKxTN2jr2ssQsNr4w3hkXF2HeDy7Ch0=; b=DrqW2UuaR6IMurwy94RdxdCGds0Lvkt46fGCzAic8XRuGAW4WE4bpS1//pQ9J+CpEQ AIGKHuHhe3bBHhmqKW1BtUXxLBzseY8sU96WW7x5NvAQL4AoDd6U+4XuzuQePP3SKFrG juMmQlbs6RYUkh1f4YKnyzg08unLMANxiPpzpY8vikSBE237HZ/mbEaBvtN0ZXragGfM WLCbKZS+cDl98K/kqoTmG9x4eUvfh3kcgHB2AlMEoP2nSXkrfSbuTn9BsScI5xfdkKwk 3gzGhTbcskZ1clHKhcs9duwmjAT3Ty0HVyJigtAA3ADkLpDPDizC4R/aeTX3B6nkj24o MKHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Eev9Vk3o; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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. [23.128.96.18]) by mx.google.com with ESMTP id b34si24480739jai.58.2021.06.30.02.34.42; Wed, 30 Jun 2021 02:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Eev9Vk3o; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-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 S233696AbhF3JhC (ORCPT + 99 others); Wed, 30 Jun 2021 05:37:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233886AbhF3Jg6 (ORCPT ); Wed, 30 Jun 2021 05:36:58 -0400 Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A55A2C061756; Wed, 30 Jun 2021 02:34:28 -0700 (PDT) Received: by mail-io1-xd2b.google.com with SMTP id f21so2301890ioh.13; Wed, 30 Jun 2021 02:34:28 -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; bh=tbma0IJD+W2GwKxTN2jr2ssQsNr4w3hkXF2HeDy7Ch0=; b=Eev9Vk3ok2rMrCD4OA/XMa+ZEiDr0z3kH1prjkqMpYpiEH0z9USywJRR6pELoQW6XD uHuUKzOAWoCWIvJyjqtpOT4KWDzYaXhlRpRjr1E+j+IRl4zycqrPxSLcJ+M5duJun7Eo pQkW58MrgYRV3iK/dDjHP98PkJrulUGt3+lCEMDhpRfZFQVeQ2ksyPXWEn1oX4FhLuec lmkTwWeWqg3KYFeaqL7jyz+cmo5Vc23b4FHwikQG+tLfmoSdO3T5v8SVqLJ5gEeGgJdq 1SPhImcjfy5k3ygj50QSqN/yLp3XvoU23L9PG3JfWF+SqzopyL1spsXiCrFKOTD+Tpkr k1Fw== 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; bh=tbma0IJD+W2GwKxTN2jr2ssQsNr4w3hkXF2HeDy7Ch0=; b=iVmvmhgF7iBRRptxg7FaubzMfGIbgg1Oa5E342fyDYvOHx4p2/R3cCgMxdQoNXo+bW BP+G4NntXnKB1LxaRR4xP0ZxqaXN8Nve5f4OxdZpu5N6v+o3D3eJkcmTe5GIPC4BMlJo MFkSK3N7X0PPF+5+O6CorWpBdPGYGBy7/zWfwcWG/SPn2P5PQHwIHQitSlOie9Pg0PsE nD5rO0Kkso92PNWOe4SxB53xBlsZLgIKpNU8HAhaUI+7rd45L4xhAbccrgIFt5/eItMp R7qQO+9sn84HxncAVYzisU+F43sgUMJmUImUKyW9IkEU0ohP0z5H8UojTmqmD9LO+2Ie FwKQ== X-Gm-Message-State: AOAM532sN8BrfGktR2qDRenuFgLPekkE1kKZZr0iUpQDmdXSmZD5iYuU 9lCHIfcTxwgNgIIImTazivh7Yl9fz6W8AhQDlOQ= X-Received: by 2002:a02:908a:: with SMTP id x10mr7951849jaf.30.1625045668217; Wed, 30 Jun 2021 02:34:28 -0700 (PDT) MIME-Version: 1.0 References: <20210629191035.681913-8-krisman@collabora.com> <202106300707.Xg0LaEwy-lkp@intel.com> <20210630084555.GH1983@kadam> In-Reply-To: From: Amir Goldstein Date: Wed, 30 Jun 2021 12:34:17 +0300 Message-ID: Subject: Re: [PATCH v3 07/15] fsnotify: pass arguments of fsnotify() in struct fsnotify_event_info To: Dan Carpenter Cc: kbuild@lists.01.org, Gabriel Krisman Bertazi , kbuild test robot , kbuild-all@lists.01.org, "Darrick J. Wong" , Theodore Tso , Dave Chinner , Jan Kara , David Howells , Khazhismel Kumykov , linux-fsdevel , Ext4 , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 30, 2021 at 12:32 PM Amir Goldstein wrote: > > On Wed, Jun 30, 2021 at 11:46 AM Dan Carpenter wrote: > > > > On Wed, Jun 30, 2021 at 11:35:32AM +0300, Amir Goldstein wrote: > > > > > > Do you have feeling of dejavu? ;-) > > > https://lore.kernel.org/linux-fsdevel/20200730192537.GB13525@quack2.suse.cz/ > > > > That was a year ago. I have trouble remembering emails I sent > > yesterday. > > > > > > > > We've been through this. > > > Maybe you silenced the smach warning on fsnotify() and the rename to > > > __fsnotifty() > > > caused this warning to refloat? > > > > Yes. Renaming the function will make it show up as a new warning. Also > > this is an email from the kbuild-bot and last years email was from me, > > so it's a different tool and a different record of sent messages. > > > > (IMO, you should really just remove the bogus NULL checks because > > everyone looking at the warning will think the code is buggy). > > > > I think the warning is really incorrect. > Why does it presume that event_info->dir is non-NULL? > Did smach check all the callers to fsnotify() or something? > What about future callers that will pass NULL, just like this one: > > https://lore.kernel.org/linux-fsdevel/20210629191035.681913-12-krisman@collabora.com/ > FWIW, the caller of this new helper passes NULL as inode: https://lore.kernel.org/linux-fsdevel/20210629191035.681913-14-krisman@collabora.com/ Thanks, Amir.