Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3922074ybb; Tue, 31 Mar 2020 14:59:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIx+duWJNRDD0OtoKQ49aApb+gZIfJxagHuFIZVArfooKF7MzqZgUZciN/t8CNsg0bxaCeL X-Received: by 2002:aca:fd44:: with SMTP id b65mr680007oii.119.1585691944890; Tue, 31 Mar 2020 14:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585691944; cv=none; d=google.com; s=arc-20160816; b=jRieTcmfEA7rzEiEPkehwxVbHxnNOgaxNI/I4pwJi2nYWAA8YiV+YTayMVRnOaR+B7 1eDNKpfYGSTckFj/SVsCsciAwavM+3oDmz/rcfspOBo576r+wc3Qcsom4ehEk+6CRjlK WtGGSfBw914g/+xB7tsEdVcKsNR7gGleUFOgnf6T4Oi1WrlGIbczxLIUhQT53p2jEZxY ZPYke5QGtdmQvfZkRW0b6+pcgtGx7JRwq7cXsy/mswHokIsGI/83vWNUWkje00aiC6M+ I4tmupllmP1rCcXbcj5zPu5pz6NJsPnV3d1LNCvh1RkxsRXh11v7BNfDXu5JcboynO0t evJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jIozpEk7R1PWhZJHP9ojDFOfKg1S3YK7gkqKMg9XXHk=; b=iGlUk4ujdnpPu0ICX+KCgzOhgWfGsU5VuPFE3Oz4oYvppQAs6BSAIo9GhSqYLN+kD7 djlKxkAfWaFRWKmj9WAUwm/fJJOeQm2z8cKMWvDNn5xI7lMJ/KE1ytvCwmxetNR+lbnP 73qMRvUfn/isWtnvQQ81bH2trQZT27v7pBW9XKfWhVre2Sh9OqXeVOZwYcQNdNIyL1zo BpDfZINE66lBFaleIYbMBMw4/WbnE+puMW9gyKuYC8VQXvo4HfH/JjUGLtVgUZE/5bD3 pXHOLFgzoVUiXYxC+MR/KzXSzw4qYd9T9vjmbJyYVPiTekjHvxnUVEtyNbzPmrTjyY7n DlFA== 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=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 z62si97197oiz.23.2020.03.31.14.58.52; Tue, 31 Mar 2020 14:59:04 -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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731574AbgCaV6E (ORCPT + 99 others); Tue, 31 Mar 2020 17:58:04 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:41698 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728840AbgCaV6D (ORCPT ); Tue, 31 Mar 2020 17:58:03 -0400 Received: by mail-io1-f66.google.com with SMTP id b12so7246460ion.8; Tue, 31 Mar 2020 14:58:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jIozpEk7R1PWhZJHP9ojDFOfKg1S3YK7gkqKMg9XXHk=; b=QPidKuxGI964vU+w0yj8FdrizZ34M/TsuP8aHMcghFIWTeuzlA/3LMproIeLBAoHCq VbnHDcDhMLKpMP4i9xnriVo/R1NwS0lo903WuiY6ko816A4C3mDfQrhxxafkwaJirhT9 cbBO1+B3z2pKhCuRGVw8OHD7yHDjeWsVuk6aoOxhnMeTl3NLFnNM3v3bWDA+PBlzDM4C SVvWzrwdjCjASzSjmlniO1GmrWahkqD0TUjat0Q7fuTRQFdF10qNECW/yJSTJ+USo9/Y yUIQRDbSy+i6wzFS88NCl2p0L14hVhmLF9UNS1t+EZqV4gtqSaTuIYaZlEUcrl8bmBGh cn3Q== X-Gm-Message-State: ANhLgQ3Rp+0GRQWCifvs/NHp11DN5naq7cIs/y98BCoetBAsgxnUpo3F m5cuT0HRZZqE1t2NwkIjlw== X-Received: by 2002:a6b:2d7:: with SMTP id 206mr17354362ioc.42.1585691882134; Tue, 31 Mar 2020 14:58:02 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id t77sm36579ilk.83.2020.03.31.14.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 14:58:01 -0700 (PDT) Received: (nullmailer pid 12849 invoked by uid 1000); Tue, 31 Mar 2020 21:58:00 -0000 Date: Tue, 31 Mar 2020 15:58:00 -0600 From: Rob Herring To: frowand.list@gmail.com Cc: pantelis.antoniou@konsulko.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Alan Tull Subject: Re: [PATCH 2/2] of: some unittest overlays not untracked Message-ID: <20200331215800.GA12799@bogus> References: <1585187131-21642-1-git-send-email-frowand.list@gmail.com> <1585187131-21642-3-git-send-email-frowand.list@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1585187131-21642-3-git-send-email-frowand.list@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Mar 2020 20:45:31 -0500, frowand.list@gmail.com wrote: > From: Frank Rowand > > kernel test robot reported "WARNING: held lock freed!" triggered by > unittest_gpio_remove(), which should not have been called because > the related gpio overlay was not tracked. Another overlay that > was tracked had previously used the same id as the gpio overlay > but had not been untracked when the overlay was removed. Thus the > clean up function of_unittest_destroy_tracked_overlays() incorrectly > attempted to remove the reused overlay id. > > Patch contents: > > - Create tracking related helper functions > - Change BUG() to WARN_ON() for overlay id related issues > - Add some additional error checking for valid overlay id values > - Add the missing overlay untrack > - update comment on expectation that overlay ids are assigned in > sequence > > Fixes: 492a22aceb75 ("of: unittest: overlay: Keep track of created overlays") > Reported-by: kernel test robot > Signed-off-by: Frank Rowand > --- > drivers/of/unittest.c | 30 +++++++++++++++++++++++------- > 1 file changed, 23 insertions(+), 7 deletions(-) > Applied, thanks. Rob