Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 52F11C47082 for ; Mon, 31 May 2021 08:43:00 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 58C93610A1 for ; Mon, 31 May 2021 08:42:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 58C93610A1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46B2B82B1C; Mon, 31 May 2021 10:42:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="mrwnzNXq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 24D9982B3D; Mon, 31 May 2021 10:42:56 +0200 (CEST) Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 248CE82E68 for ; Mon, 31 May 2021 10:42:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=narmstrong@baylibre.com Received: by mail-wr1-x42c.google.com with SMTP id g17so10002555wrs.13 for ; Mon, 31 May 2021 01:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dRdj5kMClPu/Ha/JXn15j6EdTW+m/Gbqyt3zwsAGYxs=; b=mrwnzNXqdEfHmHSybWQljaQ6yNQ5SEHUXnKD63VSPts+i9PGdsR3e1J7nyt1bENYFT y5CSBFXkfACG6H3a00fAgimKbVr9EWVpTczMJwKEJ708ivobtzGERZHlfEup0qi1/DXz GKVeLWadOUk8NOtAVIL5SAQ3tKqCG4mt8ivOcsPbA7Ec/psTQ8EDiS7MxaK29pfnXx7L fbIfXnihoy792e0CHh89tSNNPHAnvnzU/2X3f8OcXpQuJSjg5KCgcmZibBo/q3eVa9IK 8Shs0TfCPUP/f9L5mh0Tpwl2nVqsQdXTvXKEV8pKK8jE8al0XDgQh/ufbSWYSboyYKBV EmwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=dRdj5kMClPu/Ha/JXn15j6EdTW+m/Gbqyt3zwsAGYxs=; b=ZfJ5iow98coNbaxSjYZ6sBwJ03wdjp1c65NN6sCFqk9pI3PUWJeYRzMbHFVr/5kB4s 28HeCbHlO67jI0+plyK2LqeuBLEoWiYoj+pk1FUgiApSENZZywdmEG4RJQmgKHfzxd5m A8XF5v6ZIu/V3tIiy5eJO0+dvlC2lKyGycmFDLXm6DMB46C7ObYg3vgI6PiNfsfyBDbp AIuNnH01+f+DRljf0oU045Yyv8jx0YGCyXjpIpzNsthe9xm+A3/dxi3BCqUzmmnuElZP 1cmQx+aPdEzxTnOhoJxqXClAG3gEhxSbfnaLWKYxA/ysHK0v6MOekwohUXs4Re/x0qLV yBaw== X-Gm-Message-State: AOAM531wCWWWuDfDVfYnVGVKgVV8v1jr+KEdjAyarc7IX8ZA73H7mSvW Df5i8rehgxMNXXlMvHFtOXHpW8QTpdSmVwIY X-Google-Smtp-Source: ABdhPJyWSy+K/VQ1lJbjV74Ze89Yy92TWwQgpITONHFYA2Vkg1S91H5DceIiYBN3VeihQlaDRRzadA== X-Received: by 2002:adf:e5d0:: with SMTP id a16mr8721111wrn.427.1622450572552; Mon, 31 May 2021 01:42:52 -0700 (PDT) Received: from ?IPv6:2a01:e0a:90c:e290:6567:aa5c:6dc2:fff8? ([2a01:e0a:90c:e290:6567:aa5c:6dc2:fff8]) by smtp.gmail.com with ESMTPSA id f1sm19108594wrr.63.2021.05.31.01.42.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 May 2021 01:42:51 -0700 (PDT) Subject: Re: [PATCHv2 1/3] pci: pcie_dw_rockchip: Fixed the below compilation error To: Anand Moon , u-boot@lists.denx.de Cc: Kever Yang , Shawn Lin , Patrick Wildt References: <20210521165949.15909-1-linux.amoon@gmail.com> From: Neil Armstrong Organization: Baylibre Message-ID: Date: Mon, 31 May 2021 10:42:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210521165949.15909-1-linux.amoon@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean On 21/05/2021 18:59, Anand Moon wrote: > Use the generic error number instead of specific error number. > Changes fix the below error. > > drivers/pci/pcie_dw_rockchip.c: In function 'rk_pcie_read': > drivers/pci/pcie_dw_rockchip.c:70:10: error: 'PCIBIOS_UNSUPPORTED' > undeclared (first use in this function) > 70 | return PCIBIOS_UNSUPPORTED; > | ^~~~~~~~~~~~~~~~~~~ > drivers/pci/pcie_dw_rockchip.c: In function 'rk_pcie_write': > drivers/pci/pcie_dw_rockchip.c:90:10: error: 'PCIBIOS_UNSUPPORTED' > undeclared (first use in this function) > 90 | return PCIBIOS_UNSUPPORTED; > | ^~~~~~~~~~~~~~~~~~~ > > Cc: Patrick Wildt > Cc: Neil Armstrong > Cc: Kever Yang > Signed-off-by: Anand Moon > --- > v1: Drop the PCI ERROR MACRO, > --- > drivers/pci/pcie_dw_rockchip.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c > index bc22af4230..3ac2434b69 100644 > --- a/drivers/pci/pcie_dw_rockchip.c > +++ b/drivers/pci/pcie_dw_rockchip.c > @@ -67,7 +67,7 @@ static int rk_pcie_read(void __iomem *addr, int size, u32 *val) > { > if ((uintptr_t)addr & (size - 1)) { > *val = 0; > - return PCIBIOS_UNSUPPORTED; > + return -EOPNOTSUPP; > } > > if (size == 4) { > @@ -87,7 +87,7 @@ static int rk_pcie_read(void __iomem *addr, int size, u32 *val) > static int rk_pcie_write(void __iomem *addr, int size, u32 val) > { > if ((uintptr_t)addr & (size - 1)) > - return PCIBIOS_UNSUPPORTED; > + return -EOPNOTSUPP; > > if (size == 4) > writel(val, addr); > Reviewed-by: Neil Armstrong