Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp446211pxf; Wed, 10 Mar 2021 09:18:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXCyGUoyzCnPu6nQH59CVYok3O0SIN6opXLViWAUhlLxZ+PHWAPz9OyG3b2ZfBP2N9r2Pj X-Received: by 2002:a17:906:cf90:: with SMTP id um16mr4779474ejb.389.1615396710140; Wed, 10 Mar 2021 09:18:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615396710; cv=none; d=google.com; s=arc-20160816; b=GfG7l+T7PiSbdjYLLP54XnO+vBvW7MRkO8L/D6KzYLcnwyMqT2mVhx/iExEC5ckh5x UThPZsHZSXFUaDQk3aH//5o6KIeIUAq1XMR7tnVW6vXXaTYxVqutQ+mLLEUl8XqTmtn7 +tyD+LHCLan71ef1dHJJwjtvaOYN2eRfcsxR8aRIrbkY4cpgDPo58qbs2gtOGHM61hGG +ixN6+fAwGG20IIywv7SXt35ghhgerZE4walAytnrXpXOdH7pqs5pDcHKGy+WWjjHz5/ hhRQrvMPNrm0P5nc0cm4FrDuB9tmM6IkZMgaPE1iXPZOeOr02j3IDbv0M/QZgnoLjG5t OJLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EFmV8kT8hWs8Q9WmFJMbPCHSM86NvMO2yar7iZF5S1k=; b=sF6O1VXaWxe2GZrYw+tvlDL7Nf7OJkVDLiCLWKxW/jvP6NtFkC8IZt6onqDStvU+kR 0QZjQsvLxA27QkyJ8uzIUKbBlQ0jjlh05zCnitxH9rges7ZtJ3glk/q9plOrglZg+GRF 0Mi0ezbGawRkdAIzPJTcESnGfiXtzvoWr4TqkDVov21rN9saHRnyI0PjRbfdxhNLLrm2 +p0Zl1COkxx6UW1BJyOcZbXX27a7UAJK32VDbqisbgHl29mAkmK9gLlyN8E17XO5pOS7 9WH/hVlwFOqDI/EPf3oNsQtdlcT9Xe8N/zvwCbZDO9cq2QU/JARnA7tQ+RZ5+ONJIQvJ xLTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="ps7tDs/c"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si18309edc.561.2021.03.10.09.18.06; Wed, 10 Mar 2021 09:18:30 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b="ps7tDs/c"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232994AbhCJRRI (ORCPT + 99 others); Wed, 10 Mar 2021 12:17:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231359AbhCJROs (ORCPT ); Wed, 10 Mar 2021 12:14:48 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF54CC061760; Wed, 10 Mar 2021 09:14:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EFmV8kT8hWs8Q9WmFJMbPCHSM86NvMO2yar7iZF5S1k=; b=ps7tDs/cMZWiqdJRx+zNuif1HI GAgfTX8IwXp0+C8EFWm88KQVQ2j6bDPCRdKL+hPx3LBtoQmEohxnwyV96rAgxU5pP3uCHHJKsPmXB uhpvEAM1nQ7dOr53t7+lGHZuz157ivitLoMCymQdompBnJXp6dnYUNCddHgTP1BbeMk6x4brgI3KI BESupa9nOBarcPUGNpxhhxAj7Twma/mGuJEL9gvTV2pzj1iGJ/zUfzU4sYhLYw+SBoP50EaaSifi0 AsGAGa4e2UPgICaJbj1RzHo8joLv3S2KwMsF6lHfbgtT+3nXoEJT9i8yj3Itol29+XIaZgRfiIkat /3qXUKYA==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lK2Pb-0048tD-QG; Wed, 10 Mar 2021 17:14:20 +0000 Date: Wed, 10 Mar 2021 17:14:19 +0000 From: Christoph Hellwig To: Andy Shevchenko Cc: Wolfram Sang , Jean Delvare , Lee Jones , Tan Jui Nee , Jim Quinlan , Jonathan Yong , Bjorn Helgaas , linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, Jean Delvare , Peter Tyser , hdegoede@redhat.com, henning.schild@siemens.com Subject: Re: [PATCH v1 2/7] PCI: Convert __pci_read_base() to __pci_bus_read_base() Message-ID: <20210310171419.GA981289@infradead.org> References: <20210308122020.57071-1-andriy.shevchenko@linux.intel.com> <20210308122020.57071-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210308122020.57071-3-andriy.shevchenko@linux.intel.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static inline > int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, > + struct resource *res, unsigned int reg) This looks weird. Normal kernel style would be: static inline int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, struct resource *res, unsigned int reg) or static inline int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, that being said, there seems to be no good agument to even make this and inline function. > + return __pci_bus_read_base(dev->bus, dev->devfn, type, res, reg, dev->mmio_always_on); Please avoid pointless overly long lines.