Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp247807pxb; Tue, 2 Feb 2021 04:18:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXQR7yJqajUQ1koynZZhG/NSSnGZ9g14UmLTBvFJN4SuvDV9gp1iWIINx6ty2jwJypdtAl X-Received: by 2002:a05:6402:d:: with SMTP id d13mr14560372edu.274.1612268307124; Tue, 02 Feb 2021 04:18:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612268307; cv=none; d=google.com; s=arc-20160816; b=eGvTO/s/5esD1XQC9x4t6yMUsmXYlIrQDmtHkrSh0D4p4e5HpgcoO1ZWFm+nFyVQAQ +cmBAZAUZsEmxR6Fludueqt8U4uSyUbvWgkmZLCd0BFH9wzi4dEiAlL2G70RtylO5qbi oFsZ3BjMUA5KV5v2/B5r466BFtaSyeJPZBVG/zaMUU4H5oZFZvCkaQlcqANZsX0ywfvj A9xrh4Ergl/MlVwlWe81dk27Pg/uFjvUPrEB/4q3JGcSFR9RpqiolNDDDQo1IE5dATsi K65y9bhzF+Im5CV5Z49luXi4BiX6vcFxHFXfPPIracwxUybOw6Pnx2wIRhOa9Ds7Uvpd BqRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Dfm4t6IzWCBDJPMpGdSuNSi4QcgFqA2qDwRcbyxPWlk=; b=eIFY812tiAfm5oMF05gTLvvYGv3pej0+DQHlwzrYT3C7o4rq/Lor9LZgo4+EryoTa8 JFPh73Vkv4bnhqksZvRqXwMfbfMZ20RzsMcDfYHaiXzlPVridA9Fj/Vt4HrPcu1FWRSi mXHx5UkwOhK99Kttnuy2OCKCOeVwkIxFErwl4lYrhN+JHr0zus6l5u5Oacwh8GYDPZ41 6EBuGHNglQEeQILZ/I7o23lYcqS5YTd/ayiu3bWL6xwNb+aY1XMfR32/HAu4tC95iq3l txsme0pLp0wnsZlojcIDfVfG0SAUSNJO/qJSIHOUhTpUxUVoZafWVaOUjw+qLVQlsC5f clTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=meSQP3l8; 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 m26si2122346edr.61.2021.02.02.04.18.03; Tue, 02 Feb 2021 04:18:27 -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=meSQP3l8; 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 S230229AbhBBMOw (ORCPT + 99 others); Tue, 2 Feb 2021 07:14:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbhBBMOj (ORCPT ); Tue, 2 Feb 2021 07:14:39 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 754DAC06174A; Tue, 2 Feb 2021 04:13:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=Dfm4t6IzWCBDJPMpGdSuNSi4QcgFqA2qDwRcbyxPWlk=; b=meSQP3l8vTyTYW+K+VqSw+ahTJ IgWgZijK/yzJk+GJkTA1nnmzS+VgIxBWgpGF1YpmRy5ZRkFJTCVVlrje4myb0Nd7UgF2mEAPeycFc 1XhdAx9rNr0wuo6uzBO9Ydlw1fy0QDTIqDGFe1iXqFlsuKzM/8REf5puUEA7+M3qT5hz+mlgJAmtV 4uNpmSWQiYBLp0coCUlLgVMQ+4jC9LZ073kECuGnQugmsbcU+zlqqtxjmb00xjUUbO7RDKROjnk7c uQieKR5ydi9tOJkVQvC50ixgGsYJQ8WupFRldzFldko0RcYXevgpYHcqiHIZ6dNhiHAocZgN37tTq ZNx/iELw==; Received: from [2001:4bb8:198:6bf4:7f38:755e:a6e0:73e9] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l6uYs-00FAKd-RF; Tue, 02 Feb 2021 12:13:39 +0000 From: Christoph Hellwig To: Frederic Barrat , Andrew Donnellan , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jessica Yu , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, dri-devel@lists.freedesktop.org, live-patching@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 01/13] powerpc/powernv: remove get_cxl_module Date: Tue, 2 Feb 2021 13:13:22 +0100 Message-Id: <20210202121334.1361503-2-hch@lst.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210202121334.1361503-1-hch@lst.de> References: <20210202121334.1361503-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The static inline get_cxl_module function is entirely unused since commit 8bf6b91a5125a ("Revert "powerpc/powernv: Add support for the cxl kernel api on the real phb"), so remove it. Signed-off-by: Christoph Hellwig Reviewed-by: Andrew Donnellan --- arch/powerpc/platforms/powernv/pci-cxl.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-cxl.c b/arch/powerpc/platforms/powernv/pci-cxl.c index 8c739c94ed28d6..53172862d23bd3 100644 --- a/arch/powerpc/platforms/powernv/pci-cxl.c +++ b/arch/powerpc/platforms/powernv/pci-cxl.c @@ -150,25 +150,3 @@ int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq, return 0; } EXPORT_SYMBOL(pnv_cxl_ioda_msi_setup); - -#if IS_MODULE(CONFIG_CXL) -static inline int get_cxl_module(void) -{ - struct module *cxl_module; - - mutex_lock(&module_mutex); - - cxl_module = find_module("cxl"); - if (cxl_module) - __module_get(cxl_module); - - mutex_unlock(&module_mutex); - - if (!cxl_module) - return -ENODEV; - - return 0; -} -#else -static inline int get_cxl_module(void) { return 0; } -#endif -- 2.29.2