Received: by 10.223.185.116 with SMTP id b49csp5358064wrg; Tue, 27 Feb 2018 11:54:28 -0800 (PST) X-Google-Smtp-Source: AH8x227fBA8EgAIq2f27XLGvjySyKhjuS5z9nMYD5yqG9JzAjNzLYgp5AHKaWpuPNNe+SDBa7tPS X-Received: by 10.99.127.65 with SMTP id p1mr12128210pgn.50.1519761268686; Tue, 27 Feb 2018 11:54:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519761268; cv=none; d=google.com; s=arc-20160816; b=SuvqEfUNYm9vBHffl6lc/uIEuHmMFzCDZubY6twhgCCILPvezwq1TTBJMxI4PIWs8A 9ZZEkmo/jQ7V8iKt56sRLcHRg8YzvobQUhq2KVrzVdGP0cNSx67+J5f5O2PA/Arkxkj3 qfkFVtRlnkFjhMHI2PSrEfN0z4fndW6z4ACDlSNqC+Qz960XVkuTykGAbJuQKAuXdHhm TTMnEhdSRLSiUpIVYwlL0B1AGN3RJy4p8AwxVUisod63wUYpunQUwfSsAND8C8T7fJO2 89q6480IZPST8xzU1KcnJmVkBs4eX2tjm5didkfxCBY4gunh4dR5DUBW3UGyagaebogB 8D5A== 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:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:dkim-signature:arc-authentication-results; bh=fLAmkOp8Bbm2m1I98KnPs3UwAL74ERS4qeQu8TQCSi8=; b=Us8xxCCUhrnXhMZAZO4FGvUD/RuRv6PaaxuM6EhF5obbuIQcdBHdco1j5onjdzhop6 8au5udtaBAS5Sgy3i35OvisaYHu1MZOIVwZDyALL0rEPtKmqj/Hw5Hv717xmIW1Nmm4U vHyp6HFHEi2SmkacpW7koywyfT1VfiAvMksbN9vTKZ7TCNL/b0H5hXIFM44Q4pJfBHqX cOLKmVVULNhdTYMEkm0v7dCRJxgxQ0gmdgAH3FPOj3ZO2bnnLcJONQ9+WSuzu8WcgtYG haUzvCwYJH2H78Nfovda7sX/N65EBCGmYwZ27ZeSI3GHYbfk+NOicPzLeApfRETV4sOx O4kQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=L72nxDtL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s193si7289358pgs.825.2018.02.27.11.54.07; Tue, 27 Feb 2018 11:54:28 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=L72nxDtL; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751964AbeB0TxT (ORCPT + 99 others); Tue, 27 Feb 2018 14:53:19 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44325 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751813AbeB0TxS (ORCPT ); Tue, 27 Feb 2018 14:53:18 -0500 Received: by mail-wr0-f193.google.com with SMTP id v65so8529wrc.11 for ; Tue, 27 Feb 2018 11:53:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=fLAmkOp8Bbm2m1I98KnPs3UwAL74ERS4qeQu8TQCSi8=; b=L72nxDtLgIiE8OcHpJbfxhllKUuTrsHIxI5oZZenzXYESNMT4pknQhrSCM1gkiqNRA NWHwn6gqOXn/qljDApIDwcMeeZqIivvLlRYgkJazSW46UHuEhiH7U8F6RxA8ib3ldT25 VX3bZ0PUpSh1uSpzsPkmIXasfq3Lkg8i9XYwfTKhjEGn6xQj1ZrDkCyf6g+jdN2H9/r1 fpXEEhxyxrmO2T567b4O/jTXT/eCzn+0I6upY4gtQN1lM3V9K6oePVt4E0HKXSy+9kNi m+PONWUUl2i7mWbxD/+YTYQcORwpXigTcZ4r/wmdfBCYQQrzQPwrpLHbWNoppCLNQy0h M5BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=fLAmkOp8Bbm2m1I98KnPs3UwAL74ERS4qeQu8TQCSi8=; b=kCJ3ecDcgC9PkWADzF34/JWSDE6ikEXIbnMtrVCjLHJyN+jzoKh+WEFZUXFGBUpjz+ KQMIGBgZYgv2N8FmEg5MxCQWNsGb0AbwjcB/r19KSjWnxVSxlAgK9LB+EUVzUTyWLECf 8+N/jTTTeN29WrvKfdhulH9thK1m3BPFyjTj5SlQ4vb98bzmqoLHEcDe6KAVSYFIrL40 /ID6AiX4EJzGk1i4rGV1YhNjEmILGZ3kUDE0SMiZBFaEUAf0+Na1B+3bsxJ8Yfb/dA6V CpsOCzm7RurcrLT4YoJDlLTbITfQ5XCGYM6GYV1H1P8IGaYuZ/A73fnQYEDXL3bt7Q8C paOw== X-Gm-Message-State: APf1xPAiaewDmUuWkIlKIWobZzxZsp2df1ES9MULbZ8pDVc/Fe4YwOh8 3yR/EHVPJxztzSDpEHOoYNY= X-Received: by 10.223.208.196 with SMTP id z4mr13179415wrh.104.1519761197464; Tue, 27 Feb 2018 11:53:17 -0800 (PST) Received: from ocho.localdomain (93-172-83-85.bb.netvision.net.il. [93.172.83.85]) by smtp.gmail.com with ESMTPSA id 10sm7278076wrv.95.2018.02.27.11.53.15 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 27 Feb 2018 11:53:16 -0800 (PST) Message-ID: <5A95B6EF.1030305@gmail.com> Date: Tue, 27 Feb 2018 21:52:15 +0200 From: Eli Billauer User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100907 Fedora/3.0.7-1.fc12 Thunderbird/3.0.7 MIME-Version: 1.0 To: Johannes Thumshirn CC: Andy Shevchenko , Greg KH , Linux Kernel Mailinglist , Michael Moese , Bjorn Helgaas , Anatolij Gustschin Subject: Re: [PATCH 1/2] PCI: add vendor id for Altera References: <20180227133018.7732-1-jthumshirn@suse.de> <20180227133018.7732-2-jthumshirn@suse.de> <1519746127.25526.25.camel@suse.de> In-Reply-To: <1519746127.25526.25.camel@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Johannes, Thanks for the patch. I can confirm that xillybus_pcie.c compiles well with and without including pci_ids.h. As a matter of fact, it already used PCI_VENDOR_ID_XILINX, which is defined in pci_ids.h, without including it directly. Hence moving PCI_VENDOR_ID_ALTERA didn't change much in terms of the dependency on pci_ids.h. This is a matter of convention -- I'm fine either way. Regards, Eli On 27/02/18 17:42, Johannes Thumshirn wrote: > On Tue, 2018-02-27 at 17:32 +0200, Andy Shevchenko wrote: > >> On Tue, Feb 27, 2018 at 3:30 PM, Johannes Thumshirn >> wrote: >> >>> Add the Altera PCI Vendor id to pci_ids.h and remove the private >>> definitions from xillybus_pcie.c and altera-cvp.c. >>> >> >>> #include >>> +#include >>> >> >>> #include >>> +#include >>> >> Isn't pci.h includes pci_ids.h ? >> > It indeed is, but it won't do any harm and it's not quite clear what the > general policy (regarding pci_ids.h) is, some drivers include it (even in > the drivers/pci/) some don't. > > Bjorn, any guidance from your side? > > Byte, > Johannes > >