Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp973180ybi; Wed, 19 Jun 2019 11:04:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzIKhTRY7LE4tia1hFxUtdXj6vz5J209d5zQSQv/bL6wA7YayrqpQALK/Tl6BA8IYMAZ2KU X-Received: by 2002:aa7:9087:: with SMTP id i7mr69939954pfa.40.1560967486400; Wed, 19 Jun 2019 11:04:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560967486; cv=none; d=google.com; s=arc-20160816; b=oHE661jx2rk19khP+kdtLdguF8URgD8dUPRMVzmiVKmvj2YWx1JkiYikOLMfF+Fxr/ X9BBxuJ03dcGZc0OiuBquoPfjqbWxyNoWjljuD6CfUEj0p+98kOz2hjivOdp0I7RCsIy 0b0OYIjvhoS21nbTAfElo8uQd55ksEw5D3Cn5csd7zlGG72JUV1jVovfnT5YcRZtVkSD VvdJr993W+Amjod1lvDcgp0S9atFHlqS/8WgSxYQDBLz6c3H7jJ6RuZ+zEx4JF0AO1Oa bZgAqmA8y3HsijhclEF4hU8+s1p4DJxjNQdDL3Ic3VRIPz3VJt9ZUU5gp8jK+aFiUvkn rJSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=bY2Pdgxjl8QBtsjUINphEntPK3jfC/Ak6GNxyygmigo=; b=0hHXfsEAPy3LX0zKjSRmAQ9pELijwunftUX+rB5yYCNeuLj7h26NCimbe/krAh2YRr hnInp5nCjWxceqpMTO5exy0PfntPgK15qVw3ZjR2SWyw9reaJFKqDsE5CgSkvHw26mT2 I1W4ZUBMf4DMwSuEm1gwROoD/GmBpIBpmJUcAye/yTkz9DjpE12Qq5Z3CoGsdPMEdnCN DFoxWtCRC95Jh4KfspJpByQYq0ibF2zGd/6Krt0+VkFL9ZaTNC5jiQWhFemmWfXxkl9+ 7ZALPVrFQEN3Rod92OD+9GhYxSjf1mEyo20G7LxF627GvBwIfJvF7zVYH0digwAwkrbh g22g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=VkybdO5s; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si3399963pgq.440.2019.06.19.11.04.29; Wed, 19 Jun 2019 11:04:46 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=VkybdO5s; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726191AbfFSSEX (ORCPT + 99 others); Wed, 19 Jun 2019 14:04:23 -0400 Received: from mail-io1-f66.google.com ([209.85.166.66]:37380 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726109AbfFSSEW (ORCPT ); Wed, 19 Jun 2019 14:04:22 -0400 Received: by mail-io1-f66.google.com with SMTP id e5so120056iok.4 for ; Wed, 19 Jun 2019 11:04:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bY2Pdgxjl8QBtsjUINphEntPK3jfC/Ak6GNxyygmigo=; b=VkybdO5szSQoqsCVNU3CNvztJwBLITMX5WwtErnOYPP33xZQZA9gVzz6aeV21kCbn5 ObwWjqDCTa2/Bb2qCTbAbK6xqxkdiHO/Mwj3z8YEH/KyXQrkohwjDJjxkKABz0ZhAhkW RpTbQvkIB8kS8Zn2Qbo1olUPr8yqDON/ekOis= 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bY2Pdgxjl8QBtsjUINphEntPK3jfC/Ak6GNxyygmigo=; b=W3mTvAVbdUeDVH8TpmNvcFRePcH6OwljMNfHBNuFXn8fVKU2Ffp/WjrWhKFmZKQQLb zvmXJJYqt/7LbtveAui1HjoBNwry2BsPVfADuG6iULMXXDh2IVGSXVTQ6427ApPeh/ic QEe+uvsxrMqPlFPRrq9wTR1ssfyX3trvqE09YthVYuTxPwY7b0c3ZYXXZB3UIErxWWZW ayHVVRzeQbka0Y9mKhAaaphYT9TfH4AwzM2rWCkldCOq5Rz952vp4MxpyXx8J7HsFB2K dXOBivysP/+wztkGvWEkDuvt3d76zuZQoPSPC+7I/kdQNaxYqHY11LNaKOSgY9w7Gtf5 lpEQ== X-Gm-Message-State: APjAAAXN+rOMlb9CVnu6h/YNykoWxYQ2mHNhzBceGHkc+GQCq4JFaRpe VhEs4GcvRKJaEIc2zKJcD5eoZkg59oM= X-Received: by 2002:a6b:b40b:: with SMTP id d11mr3987486iof.122.1560967461187; Wed, 19 Jun 2019 11:04:21 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id y20sm17970542iol.34.2019.06.19.11.04.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Jun 2019 11:04:20 -0700 (PDT) Subject: Re: [PATCH] net: fddi: skfp: Include generic PCI definitions from pci_regs.h To: Puranjay Mohan Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas , linux-kernel-mentees@lists.linuxfoundation.org, Shuah Khan References: <20190619174556.21194-1-puranjay12@gmail.com> From: Shuah Khan Message-ID: Date: Wed, 19 Jun 2019 12:04:19 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190619174556.21194-1-puranjay12@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/19/19 11:45 AM, Puranjay Mohan wrote: > Include the generic PCI definitions from include/uapi/linux/pci_regs.h > change PCI_REV_ID to PCI_REVISION_ID to make it compatible with the > generic define. > This driver uses only one generic PCI define. > > Signed-off-by: Puranjay Mohan > --- > drivers/net/fddi/skfp/drvfbi.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/fddi/skfp/drvfbi.c b/drivers/net/fddi/skfp/drvfbi.c > index bdd5700e71fa..38f6d943385d 100644 > --- a/drivers/net/fddi/skfp/drvfbi.c > +++ b/drivers/net/fddi/skfp/drvfbi.c > @@ -20,6 +20,7 @@ > #include "h/supern_2.h" > #include "h/skfbiinc.h" > #include > +#include > > #ifndef lint > static const char ID_sccs[] = "@(#)drvfbi.c 1.63 99/02/11 (C) SK " ; > @@ -127,7 +128,7 @@ static void card_start(struct s_smc *smc) > * at very first before any other initialization functions is > * executed. > */ > - rev_id = inp(PCI_C(PCI_REV_ID)) ; > + rev_id = inp(PCI_C(PCI_REVISION_ID)) ; > if ((rev_id & 0xf0) == SK_ML_ID_1 || (rev_id & 0xf0) == SK_ML_ID_2) { > smc->hw.hw_is_64bit = TRUE ; > } else { > Why not delete the PCI_REV_ID define in: drivers/net/fddi/skfp/h/skfbi.h It looks like this header has duplicate PCI config space header defines, not just this one. Some of them are slightly different names: e.g: #define PCI_CACHE_LSZ 0x0c /* 8 bit Cache Line Size */ Looks like it defines the standard PCI config space instead of including and using the standard defines from uapi/linux/pci_regs.h Something to look into. thanks, -- Shuah