Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp980928ybh; Mon, 13 Jul 2020 06:26:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIIvPur1lWnWrrCaAomatnpXcGlcFPLZ/efH3fZvBc5ZwJnu3JxTJPXYPPyOG74XOfdGS3 X-Received: by 2002:a17:906:2e50:: with SMTP id r16mr7951692eji.371.1594646811984; Mon, 13 Jul 2020 06:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594646811; cv=none; d=google.com; s=arc-20160816; b=L1Pzqov1p8nFCxqbAggQensgJV/Z3h/4xBY9qqEq27FBj9kW68YQMUiLtvud1aKSVB 5B/RoyaTJ7Mx5PyyxRsoMBEEZQcAeev7noTb5NNLha5DhVXLIjXhkM5D71wmIU/POxqT 6t6qRPt5bLAKiuouDb2CKbr8kohTrqTqjU6HR8qYgz8OeOYoDITdsVLexzDo+SZPFMIP eksY0RFbR0mwV5qhOuljb32mMsLYtZQ9gmQ6CGnz7DuQe2rkyyKLhOgvMjOUkuxU+C2K IE8/lQ4pgQyoOfThhz2U8f8gWojw9Pz6gL9CTfgXkEZErEH05n0DplWhs16nIhpfiAqG K11A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=z4DbCQASJpB18XYS7ktJTNc93Wbe31Dke4XqE2e1oq0=; b=nXBPKrDnK6fGEt2Uas8o9k2ym3y6FpnZtdWrfOd20X84ipuNSZattj8Wem83/61Ls/ yJSHXHsIXenyws7kHo+RX7Lbiexulzp6DaoHKpwhVjRnATHvFOOKNzqPeKSIJRc0gCYO oGuQ0L3nXg4qE4apMx9ZrVIngTeN3lzJqKet1SmOu6uZBDfr0ADFvMst6UK65WjOsgos QDko9JMRV8jQv1Ds2mKE2j7X02z9XEerSyLNwlYxSyQJvziyYYohh3pwk454T9i0OJOJ 3ybbA51s3Dv/Vb2sV5Vhx7OdG+JHv9IAHd3xtm0prgOElD+ziy6JaUXEFDlQiugaVtbA 6X3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DOSHDGVm; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si8526492ejr.577.2020.07.13.06.26.28; Mon, 13 Jul 2020 06:26:51 -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=@gmail.com header.s=20161025 header.b=DOSHDGVm; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729846AbgGMNWj (ORCPT + 99 others); Mon, 13 Jul 2020 09:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729873AbgGMNWj (ORCPT ); Mon, 13 Jul 2020 09:22:39 -0400 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C43B5C061755; Mon, 13 Jul 2020 06:22:38 -0700 (PDT) Received: by mail-ej1-x643.google.com with SMTP id p20so17105650ejd.13; Mon, 13 Jul 2020 06:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z4DbCQASJpB18XYS7ktJTNc93Wbe31Dke4XqE2e1oq0=; b=DOSHDGVmk30fZFiz3WKd7zMCSK69f3jEL1u8AsUJjxB2mBuvUr1qBHCx969bF8n9Q2 KtbdMAJyAt3EFUnpKPSIMJbXHWkN6pnl/9Tnrb3Gl0n+kYXCTO2h5BNyruT2BHFjgl+g wH9iQCx1EI7m7ZrVqhRyZdNkYPv0uZXHNRXI4H3ZgM4nssEF6Z4+vhCyAINKoOna9COA 2vQ/UXMl3YhqVXxT1k4grDXlx/GMqUZZFWedx8icvuVMGE/cnpL+73qZzJoFpLnQEXqM kKNEdCxwfmXyA7RuYT4PGHN4OQXUHW+RCFO60LXxoSfPzZmiOAwLoId6GJoDAnwMnMXf 6VkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=z4DbCQASJpB18XYS7ktJTNc93Wbe31Dke4XqE2e1oq0=; b=VGODV6+w8pm3BED+mlkJTkLoiPiT2PQOix909FzobWVuQPJ/ckL+JClUhHHZrN/4Ng JKXWFn8iUjL812r/K8SreK1/U8CtRqXLEpQpT9ZEg5CVKuHg4wVRpfoxaxe7ArX/rqtd NbAD+iJr8dxnIgRDHrCieUZ0/Xjqabn4AU1NIqdP2bRFwSJeqDiO+9b16kth8JTImsiz sxIe9cqF92le73rQT0XeUO72vXpnG2UGw/OiSGJB/yY5gsJSRo7YXox+2JYuYhjlS8tu gc9lmSVwCd7kx22nfYBU2MRaA7q+EtNc1ORf5NJS5GxD0ERF1jclBxRgKXHAbypC5VbU e17w== X-Gm-Message-State: AOAM530vhEVApyA+HZEwVHGAue2wJSX3nrd/BFWsX7WoIEx2nZWQHA67 ITTBn0MuGPSTVEkaNbhCt3U= X-Received: by 2002:a17:906:4dd4:: with SMTP id f20mr77154689ejw.170.1594646557469; Mon, 13 Jul 2020 06:22:37 -0700 (PDT) Received: from net.saheed (54007186.dsl.pool.telekom.hu. [84.0.113.134]) by smtp.gmail.com with ESMTPSA id n9sm11806540edr.46.2020.07.13.06.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2020 06:22:37 -0700 (PDT) From: "Saheed O. Bolarinwa" To: helgaas@kernel.org, Boris Ostrovsky , Juergen Gross , Stefano Stabellini Cc: "Saheed O. Bolarinwa" , bjorn@helgaas.com, skhan@linuxfoundation.org, linux-pci@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org Subject: [RFC PATCH 01/35] xen-pciback: Change PCIBIOS_SUCCESSFUL to 0 Date: Mon, 13 Jul 2020 14:22:13 +0200 Message-Id: <20200713122247.10985-2-refactormyself@gmail.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20200713122247.10985-1-refactormyself@gmail.com> References: <20200713122247.10985-1-refactormyself@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In reference to the PCI spec (Chapter 2), PCIBIOS* is an x86 concept. Their scope should be limited within arch/x86. Change all PCIBIOS_SUCCESSFUL to 0 Signed-off-by: "Saheed O. Bolarinwa" --- drivers/xen/xen-pciback/conf_space.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/xen-pciback/conf_space.c b/drivers/xen/xen-pciback/conf_space.c index 059de92aea7d..0e7577f16f78 100644 --- a/drivers/xen/xen-pciback/conf_space.c +++ b/drivers/xen/xen-pciback/conf_space.c @@ -130,7 +130,7 @@ static inline u32 merge_value(u32 val, u32 new_val, u32 new_val_mask, static int xen_pcibios_err_to_errno(int err) { switch (err) { - case PCIBIOS_SUCCESSFUL: + case 0: return XEN_PCI_ERR_success; case PCIBIOS_DEVICE_NOT_FOUND: return XEN_PCI_ERR_dev_not_found; -- 2.18.2