Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2809295imm; Mon, 10 Sep 2018 06:51:41 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYfPdr7PbYyBictn1y4hxzMSYbn312Nq2CYH1ms5FkKV16J0sTj6yhVKN9Nt/1hPwjh1UXB X-Received: by 2002:a62:490e:: with SMTP id w14-v6mr23795011pfa.213.1536587501042; Mon, 10 Sep 2018 06:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536587501; cv=none; d=google.com; s=arc-20160816; b=A/m5Z0zcyytE2nNkzmn+6r42Ohy3uA3JexaV1A6YzD4J1oQpsasWzfhfoy6vT5IBgk gFE4bVaiscKhU6i8Y3IRS2Sx23CwUurfmx6ZkfmhFD1uPLf98F/iKxgwrYnKd1Chy+gI Uj6BTfbvuQkDqG3qzsJoxpGolVKMvB/XB2jAv/WInpuXZ2eXfNkWOHJmHzit63STEq4Y lmTcpS1kMvGCoXAun6epwz2JL1O1IwjsPIbmPXIftqvHUHBd19tSg3N+wla1k8JjzfGY kAGIBL3JLOdFYTlX3GV1c9tuJ0UnclFFQ9nkNoLlLdP1NW6i7PKCePzoNG5/DBps8IvC Q3uQ== 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=OVKu+RM5i+hHDqdmtAof0lgj8x7p9+Ou4dwQUwa93BM=; b=mLy02iZj1rjv8uUP2n6pvOxqZFE3DhcqnFB3pslNn8z0SFxte5YGuFaGI3HdhSDAUO NKaEK9S/JT/X+8XcO+WGqvVP3d7IGBSXivZLgo/OtxALiwuldwFF8b2YPiU61tTtLDPx /KUsOv3/4PGAiwj+lfB0eysrIrD8SB1DqfJ3mAsxohB+FX7iPAiLTUh63xTpogeCqS0D 4oB6U8AK+4sme0BLPs42ceQzL79IPH0HaATEhRqa96pENTGHZyPwrinO0MsHcMoH6rBO AseIJexh3WRcYHXEa18BhguMNH5DCYSaMNnGvPLtJ9Gx1bIpTuTC0HssRMlKpbngbVOU 5BpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sjDaPkQX; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2-v6si6399734pgd.303.2018.09.10.06.50.55; Mon, 10 Sep 2018 06:51:40 -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=@kernel.org header.s=default header.b=sjDaPkQX; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728807AbeIJSlM (ORCPT + 99 others); Mon, 10 Sep 2018 14:41:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:43854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728243AbeIJSlL (ORCPT ); Mon, 10 Sep 2018 14:41:11 -0400 Received: from mail-qt0-f179.google.com (mail-qt0-f179.google.com [209.85.216.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 16C9E20870; Mon, 10 Sep 2018 13:47:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536587221; bh=VufMcTa7f0x2r/biAa4oL6uxWKEVXzX1TnjDZvaTM9Q=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sjDaPkQXqfytaVJaF3OkGIWCK/UfThtxYFvDNEX5E95Jb1q2fxfo0Mo/yMvED9BUi ioA7JJQOTbfGFCPgJOMTqy/keX/ID/5P0NXZm4r59jPs9pDOj9GIhCk6yDO9+BGUHI SjyECsmkO9MU6dguBXLkroqM+BqJSnXx28RNoE4U= Received: by mail-qt0-f179.google.com with SMTP id h4-v6so24147642qtj.7; Mon, 10 Sep 2018 06:47:01 -0700 (PDT) X-Gm-Message-State: APzg51AHabg6YskG28qY8eXCIlLnngYx2P3rg0n6LsGeJLpGh3pDjkkL EPlbhidiLJEMcALAHgzS5gMxaN/BwGQO8C8XWQ== X-Received: by 2002:ac8:46d3:: with SMTP id h19-v6mr15915253qto.188.1536587220256; Mon, 10 Sep 2018 06:47:00 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Mon, 10 Sep 2018 08:46:48 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] of: __of_update_property_sysfs only call __of_sysfs_remove_bin_file if of_node_is_attached To: Andre.Kalb@sma.de Cc: Frank Rowand , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" 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 On Mon, Sep 10, 2018 at 4:51 AM Andre Kalb wrote: > > Hi Frank, > > > -----Urspr=C3=BCngliche Nachricht----- > > Von: Frank Rowand [mailto:frowand.list@gmail.com] > > Gesendet: Freitag, 7. September 2018 22:01 > > An: Andre Kalb; robh+dt@kernel.org; devicetree@vger.kernel.org; linux- > > kernel@vger.kernel.org > > Betreff: Re: [PATCH v2] of: __of_update_property_sysfs only call > > __of_sysfs_remove_bin_file if of_node_is_attached > > > > Hi Andred, > > > > On 09/04/18 08:51, Andre Kalb wrote: > > > To prevent warning "kernfs: can not remove '(null)', no directory" if= an overlay > > isn't applied to the active devicetree. > > > > > > Using of_remove_property and then of_add_property doesn't show the > > warning. [...] > > What is the calling path that results in the warning? > > > > -Frank > > There is the callstack of the warning. > > [ 10.782830] ------------[ cut here ]------------ > [ 10.830357] WARNING: CPU: 0 PID: 170 at /linux-4.x/fs/kernfs/dir.c:127= 6 kernfs_remove_by_name_ns+0x30/0x80() > [ 10.928997] kernfs: can not remove '(null)', no directory > [ 10.993107] Modules linked in: module_capemgr(+) > [ 11.045750] CPU: 0 PID: 170 Comm: systemd-udevd Not tainted 4.4.143-00= 158-g8e5ca65ec7ee-dirty #114 158 patches on top of an almost 3 year old kernel... > [ 12.011373] [] (module_capemgr_slot_scan [module_capemgr]) f= rom [] (module_capemgr_probe+0x3c/0x58 [module_capemgr]) And a driver that's not upstream. Not saying the fix isn't valid, but please reproduce on recent mainline. Add a unittest if you have to. Rob