Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp104093pxa; Fri, 31 Jul 2020 07:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDmjAnFXsnSF0v0xp+G107G/5qaz7xUswcVfIElxzQXiJOt/BhdEqxt9e+x4R0Oh/xra0i X-Received: by 2002:a17:906:a284:: with SMTP id i4mr4545670ejz.490.1596205787550; Fri, 31 Jul 2020 07:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596205787; cv=none; d=google.com; s=arc-20160816; b=y+aAkYxgE1v+25+KH7RGHPl/rw6FYh1fe4QjEbKbBF9zssjHx3hMedyah8zQ4H7+lZ tw0IAqtaMLY9hKvaJl9CtKO3PnfWFnH/f+JOTPqXPHvqY4s2VkmTkm43E/PDQGyTNZFP lSIbJwcqThCzJQzHhwGERYsPZk68NaievXpGezD8O+4ojlDVGn2N2ut474JWBer8/0Cl HlXmsZNvQSUJvKbLW+A2laH6gtQzqc9NLUvaizjvkmIrgXMq5p5ZSI9A//WA9KkzfhqY xqmIHPdLFS+KSQJWQnUckjywQLCKBdvcr7wPDBPLjexa77MNGlqGLelCyTT/TvC/pewF xaig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=OlQ5UFoCaUUBQWPnxpzLJRkiqoMAwkL7JbU0IE3GACk=; b=ogmkRzU5+zEGO7q6Yu4O47MNvd4X1wDcRHGiv8rpVTBqVMhfDFLiv1l9BdXf3pUXDC ZqgyVjYWwoUqyY0ZSEbCz3oXtLS6eTsU7SYyK0OXW68adMIUhOTjQ7y/kxdu9sMOJBEC SoeIZixCdlvwRDIDSvufEA33Ir0/mwPFCLugQpDD83hYydH/DNIz6UOc/vd8qtbc/tNc Q0dLOniqs4KN5YOXzGmZ5c7qfjm4hU1+xSqmBU0a0cnnDJVjMteBY8TSSYX9X5//lx34 KbrkEbVbN4pPcLLQ9oAHZToxCiYtFttP1pcS1c6zXy90jU7zHNjGmgNhMLxeCcQKIhrS BHtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NPWMkPYv; 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 j11si5118276edq.584.2020.07.31.07.29.25; Fri, 31 Jul 2020 07:29:47 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=NPWMkPYv; 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 S1729072AbgGaO2I (ORCPT + 99 others); Fri, 31 Jul 2020 10:28:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:35128 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728697AbgGaO2I (ORCPT ); Fri, 31 Jul 2020 10:28:08 -0400 Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 8D117206FA; Fri, 31 Jul 2020 14:28:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596205687; bh=2DDzoTEvi2mddxT9lLfRARLxUxmdBVeTrTZs1z+/sLU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NPWMkPYv0d+YdRDtV7ZBl8VYCUsKUtuGzZ3lcGY7B64pu58SxCDiVfPGBXr/dsE7U xoyIp+1aJl7qSCBoNgAsrywkaVn/i88E9BpRI7oCF3kY00jcAXVHkl5N+Gk/C+VcTy mqgV+ffMMkSaJlZSg51sHrhcmYR+DThu1nVEkci0= Received: by mail-ot1-f47.google.com with SMTP id r21so12235382ota.10; Fri, 31 Jul 2020 07:28:07 -0700 (PDT) X-Gm-Message-State: AOAM530IoZle1aDx09HhOl750z2VneBzo5MCAT9VClaMHVik2JJ1N66G qzOMKPc4J1gFKxyGeqQnuxmb+eEsl1ngXrGbFg== X-Received: by 2002:a05:6830:1b79:: with SMTP id d25mr2964725ote.107.1596205686998; Fri, 31 Jul 2020 07:28:06 -0700 (PDT) MIME-Version: 1.0 References: <20200730005614.32302-1-jiaxun.yang@flygoat.com> In-Reply-To: <20200730005614.32302-1-jiaxun.yang@flygoat.com> From: Rob Herring Date: Fri, 31 Jul 2020 08:27:55 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] of_address: Guard of_bus_pci_get_flags with CONFIG_PCI To: Jiaxun Yang Cc: "open list:MIPS" , "linux-kernel@vger.kernel.org" , Thomas Bogendoerfer , Stephen Rothwell Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 29, 2020 at 7:04 PM Jiaxun Yang wrote: > > After 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser"), > the last user of of_bus_pci_get_flags when CONFIG_PCI is disabled had gone. > > This caused unused function warning when compiling without CONFIG_PCI. > Fix by guarding it with CONFIG_PCI. > > Signed-off-by: Jiaxun Yang > Reported-by: Stephen Rothwell > Fixes: 2f96593ecc37 ("of_address: Add bus type match for pci ranges parser") > --- > drivers/of/address.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: Rob Herring