Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp343585ybi; Mon, 15 Jul 2019 21:59:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqyrYpRegSsKnSaCcxXF5YPVp391sqKXrVfYXzExJtIGbkHxrHPxvmXmXePWOddUB3anbXZQ X-Received: by 2002:a17:90a:4803:: with SMTP id a3mr34389097pjh.58.1563253189615; Mon, 15 Jul 2019 21:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563253189; cv=none; d=google.com; s=arc-20160816; b=cfvXdmuleAUOInODW+qDqw7W7aoWkptDNLrIeyIkDyYVjOsSehFlk+rO4iM3IPI8U4 RNEnXQ7Ax3vfhWgH/6DvvOJdU58Ks5AWRuvSQ1NSojlxNaQfM+KqfParaM7ZcocjdF+0 fSMOAjdoanw65NJI9cDCHFQYqo4ILvTbjRYXW4ANtZf8rZZ0xH6JMhS/t8fPDxtTRNmA ImNHYDnfBQ6iHUET1RvuD+ioBUpYzRkZfr22LDR50YoUfXzUCFoT0tJUiUsOM49wBACS sJoFjfwGrL54kYuSMOZz9lSvySSZWKL4j2rUmPiwIEnastJxlun81XnVkWQDcO3YQkEK Q9qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=DAH6dKwCyAbLlDOpi+3YA8QHS8AaWmvdyvdCSPTEF0Y=; b=a83j1DaCpHvXz2JuuYux/ZuiEcJ9+yaUwhtppFr7u0/WPgQUMpM1f7AtiBuztFKRtZ ycrXDjdNPnm/FHUoWcyse1bXOKbarkxt22tvopzc+fID0dw1v88Hb6SX7YeU65APtXy+ kfqdwp9VpRxEiMnZHOkAhuc5UIpPpNU0bRuLAnKWZdEsrzU99likcv3BgRVkDSAb+np8 byKBzV4ujigSPHq3Q8KKrA2Fw4hQYAhn4az5vryfAHjvmg/Y7fcKExwGk+IQnHb+B0Tp waMJivsxEQ+AhWRWppjH9QPuJI3VGrYDZ/gN1jWUS/WkEClpe5UBmDAimIuw1LETwnN1 7bSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nS2o8Fm9; 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 w11si5748453pgk.384.2019.07.15.21.59.32; Mon, 15 Jul 2019 21:59:49 -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=@gmail.com header.s=20161025 header.b=nS2o8Fm9; 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 S1726730AbfGPE6a (ORCPT + 99 others); Tue, 16 Jul 2019 00:58:30 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44390 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfGPE63 (ORCPT ); Tue, 16 Jul 2019 00:58:29 -0400 Received: by mail-wr1-f65.google.com with SMTP id p17so19308766wrf.11; Mon, 15 Jul 2019 21:58:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=DAH6dKwCyAbLlDOpi+3YA8QHS8AaWmvdyvdCSPTEF0Y=; b=nS2o8Fm9M4Qr66Q30/2C6MH1XD+GoJrUGw89RjxqqLMPy/N0vMS4aNGEcaxYAJnIX5 SMPnUb15ISTTidfbY8LA1hNqNSHrVaySeORVyNQIozPHNfJbfYm1KmEWWBGaRpMyedso S2zxddiS33osopW5ZauwrcBDxU4V2MLZfCjvABdQ3x5s1cg8fnlKIR3+w30ChaFjxvJP JBW5gE9xk9NHewAXNzvH8+ZLk+mRQ51auejRMC3/N52dzZztGdUrVNlJviAPQJU972ml 2+f02WEkshrB/oh97WenpnRP9UJjeamWtgIy1jp0ssFoe7lcA2RDYAy5O4KSpAxPvQ+0 3vyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=DAH6dKwCyAbLlDOpi+3YA8QHS8AaWmvdyvdCSPTEF0Y=; b=RmmCjkJkQXEPSLvWCtAXnMTlLyWzDuMqbg1HlZTMRsEnf9TrGmAR+1LGrGHW4fjsZI Z4m8B7aWsK//ba9Mk7/NdcCCn6leFvnoadM6OgbOb1ioy4xKM9sN5VSYwPFu8BZV/Uml vOYAr9eVUEYd22HwMN7Ssv2Ks5DQ+oor0eHfDJrvpcuyDwc/Dcnt7ZxnqGihv9sMgAEf MMAxHpX00xx0n2QoqF2Jp16y+HfJrjmy8kdIR4/deAqIGAZ/vVtj9mVMmft5i16nnzSv lTkjee6+HunwRfMsuH6q/LjClFXiy7MroqPlVDjxh9xile4/jsMXCOm7FMJFQMRrUnQX SB0A== X-Gm-Message-State: APjAAAWabuB5yBdhyzp56Ma5nhmz75SLeQWmJatAWWsA9K62v68vS55d zgv5R78DYJwXLIlc8Wbco54= X-Received: by 2002:a5d:468a:: with SMTP id u10mr33323669wrq.177.1563253107137; Mon, 15 Jul 2019 21:58:27 -0700 (PDT) Received: from felia ([2001:16b8:2d8a:7300:3de9:10dd:67c8:ed32]) by smtp.gmail.com with ESMTPSA id j10sm32668442wrd.26.2019.07.15.21.58.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 15 Jul 2019 21:58:26 -0700 (PDT) From: Lukas Bulwahn X-Google-Original-From: Lukas Bulwahn Date: Tue, 16 Jul 2019 06:58:15 +0200 (CEST) X-X-Sender: lukas@felia To: Kelsey Skunberg cc: linux-pci@vger.kernel.org, bhelgaas@google.com, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: Re: [Linux-kernel-mentees] [PATCH v3] PCI: Remove functions not called in include/linux/pci.h In-Reply-To: <20190715203416.37547-1-skunberg.kelsey@gmail.com> Message-ID: References: <20190715181312.31403-1-skunberg.kelsey@gmail.com> <20190715203416.37547-1-skunberg.kelsey@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jul 2019, Kelsey Skunberg wrote: > Remove the following uncalled functions from include/linux/pci.h: > > pci_block_cfg_access() > pci_block_cfg_access_in_atomic() > pci_unblock_cfg_access() > > Functions were added in commit fb51ccbf217c ("PCI: Rework config space > blocking services"), though no callers were added. Code continues to be > unused and should be removed. > > Signed-off-by: Kelsey Skunberg > --- > > Changes since v1: > - Fixed Signed-off-by line to show full name > > Changes since v2: > - Change commit message to reference prior commit properly with the > following format: > commit <12-character sha prefix> ("") > > include/linux/pci.h | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index cf380544c700..3c9ba6133bea 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1656,11 +1656,6 @@ static inline void pci_release_regions(struct pci_dev *dev) { } > > static inline unsigned long pci_address_to_pio(phys_addr_t addr) { return -1; } > > -static inline void pci_block_cfg_access(struct pci_dev *dev) { } > -static inline int pci_block_cfg_access_in_atomic(struct pci_dev *dev) > -{ return 0; } > -static inline void pci_unblock_cfg_access(struct pci_dev *dev) { } > - > static inline struct pci_bus *pci_find_next_bus(const struct pci_bus *from) > { return NULL; } > static inline struct pci_dev *pci_get_slot(struct pci_bus *bus, > -- > 2.20.1 I just checked with elixir on v5.2 that all three identifiers are never referenced beyond its definition in pci.h: https://elixir.bootlin.com/linux/v5.2/ident/pci_block_cfg_access https://elixir.bootlin.com/linux/v5.2/ident/pci_block_cfg_access_in_atomic https://elixir.bootlin.com/linux/v5.2/ident/pci_unblock_cfg_access So, what it is worth: Reviewed-by: Lukas Bulwahn Lukas > > _______________________________________________ > Linux-kernel-mentees mailing list > Linux-kernel-mentees@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees >