Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1288659pxb; Fri, 21 Jan 2022 14:27:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcCgwQ4rMm3cLpnDwtb5GcF3Kghl5mpLKGaT7mMQ88l4xKV7+TNZkSOPwGrep9oiLgBNKO X-Received: by 2002:a17:902:8307:b0:14a:8dc0:8fed with SMTP id bd7-20020a170902830700b0014a8dc08fedmr5420274plb.53.1642804054248; Fri, 21 Jan 2022 14:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642804054; cv=none; d=google.com; s=arc-20160816; b=OTnpL7A88UN8isnQApUgENFsJxrqiaWaPQMb7ndVIqrdxspckXyMdcNbWeGVcXbuFP BzpfrB58Fm0MKRM1O36IKZx7WlfmKbQquAlVE58tnZ/nY8xotwjpa/bFdukxp8B3btQL DhiSDvFeCk4pL4yh+9KofF3kAl5wDOjDbDae+12n8qc9lTS2EZ1nri+XBDjq839TjzlB Xp8ZtlbEx6wqDwwfbpQiKol3CopVHzyKIamprgo2/sm7Xt8dNhpe7PT50nsit44S+FYL wALojAIgOjafiAHBMdypa4PexNcC3GBrmTLWyuj79K1zhG6wrd/DSmsF/xguElV10EYP AWpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=d8yQBERTvpfmaH1s1wVWlH9urutXAd/YcFyqq0Ym61g=; b=VBy9yfUAOn+4Zxy2lHy4Qnbn4VltqXwRJGCft+SPwZ2M35AetNB3yvur0D9nwwOMUF 9tQr/LuXWRGH7SGPGSuDKxK6iLS3kvY50Asy4dXREeefOF6+g+Y+BHWslyRPDAeIbC+e MMjNjse+ZcagpFNtAs4kQuNpfBsWSQ3xG/XtAvrPzzUEOt5WaKsrjh0lxKR1KVbB1W+g wb40P/k+DrX1FWkvL/phSnoAHxZ83Xm8im4d8eSuwovmttSuQwKsF3aJBz73RGHngkNq Z1FvTOuB4VGc1efKz6YSkDR8lp//LWzfPp/zkSfMMO5BOodWGTGPjwGhXuq1LzH8p4ud E+Vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id s4si7081976plq.117.2022.01.21.14.27.21; Fri, 21 Jan 2022 14:27:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230125AbiATRaz (ORCPT + 99 others); Thu, 20 Jan 2022 12:30:55 -0500 Received: from mail-oi1-f179.google.com ([209.85.167.179]:41941 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiATRay (ORCPT ); Thu, 20 Jan 2022 12:30:54 -0500 Received: by mail-oi1-f179.google.com with SMTP id q186so9886996oih.8; Thu, 20 Jan 2022 09:30:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=d8yQBERTvpfmaH1s1wVWlH9urutXAd/YcFyqq0Ym61g=; b=j6JmIGAe0irixEkfpddGNoDipE7T08FgKmm24pn9osiAJNsretwDBPSFntA+RtfJIW ir6v/UdfXZ3yoYAt41tY3K/UG+Vk2KNGU4JfgqOT6B1i65aoYMDMqxqpl2PFwEtQ9cK4 MihscEsqLBjfSP4AYpBdC/Uk/NC6TynyiGE4A1Lt7NGyhmk1Jvo0aNH3WKQZktZsWIJy dlT1R4diY4zUZlTb0kaF1YuJGsFtHJ8u2ySofxnQ3oEvWeyj6q1BLEK6AnwnkHGltl8s egXrsE4nBMJ/V1HzNFRiOhWF/8oJgzxaIi+YyhHxjj++biJQYXfXSEPowXR0y/HuHTlU 4JYg== X-Gm-Message-State: AOAM5336POkKR50JC40djXSuFBasBMvJpxNbOdWIfXT1KtmHdMrBAlRK rRsl2EmJDsz+4B45qqk63UrtpihJ3g== X-Received: by 2002:a05:6808:158c:: with SMTP id t12mr8583121oiw.156.1642699853768; Thu, 20 Jan 2022 09:30:53 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id h3sm1617078otg.54.2022.01.20.09.30.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jan 2022 09:30:53 -0800 (PST) Received: (nullmailer pid 1640219 invoked by uid 1000); Thu, 20 Jan 2022 17:30:52 -0000 Date: Thu, 20 Jan 2022 11:30:52 -0600 From: Rob Herring To: Michael Walle Cc: linux-kernel@vger.kernel.org, Rob Herring , Frank Rowand , devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/3] of: base: make small of_parse_phandle() variants static inline Message-ID: References: <20220118173504.2867523-1-michael@walle.cc> <20220118173504.2867523-2-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220118173504.2867523-2-michael@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Jan 2022 18:35:02 +0100, Michael Walle wrote: > Make all the smaller variants of the of_parse_phandle() static inline. > This also let us remove the empty function stubs if CONFIG_OF is not > defined. > > Suggested-by: Rob Herring > Signed-off-by: Michael Walle > --- > changes since v3: > - rebased due to now signed index parameter > > changes since v2: > - new patch > > drivers/of/base.c | 128 ++---------------------------------- > include/linux/of.h | 157 +++++++++++++++++++++++++++++++++++++-------- > 2 files changed, 135 insertions(+), 150 deletions(-) > I moved the index < 0 checks into __of_parse_phandle_with_args and applied, thanks!