From patchwork Fri Mar 12 11:09:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 398563 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1099702jai; Fri, 12 Mar 2021 03:09:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJySKRR8UcMXotkxXRPgMv90bDQgrA3S4cVBqYokSCkBqv9anSSbxFHnn12UKwUym7qRWpAp X-Received: by 2002:a17:906:abcd:: with SMTP id kq13mr8146011ejb.477.1615547397610; Fri, 12 Mar 2021 03:09:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615547397; cv=none; d=google.com; s=arc-20160816; b=puXuaqpaDdADka3ve9I40rjjDFOia4MM9CkXgM5XaS5YMlQgME9R4yh3uzJP6PLkfg jzzU3uhWNSz7d7P6BrKV51V33djaSY+d4CcgTvPBrpdgUJT+1ck1yW6IrQ/MDPY5kkcO 4gmrNUBq7mJDpN13zbUH3AfAcfw4hT5Wg7/hz1mOmNJ9si2MviLMW740JH3YsFSv2K7I wlden8CTlK5OkEJNwgESutNrYXXbFm4siYQr2UBA6DxyiHX0DwPPRhI0l8xpU4rMVSjg bWpqK3zZozRPc7EptkRBGCpRLk79nBqsrQzWfPdBkIplfG7/n56p9lmyN1Jy9+5d1PPe XE7w== 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=KXQyr4IBlf8BJXFjheDlLrWyrqRa2WbuLrndUKgj2RE=; b=QJECAXMxO1V6qEzTJbaDJw/APfiyiHgTD1yL2ZLhiYXhHdHh5i2sY+kIGZTY+CWqhk IChT4PgU2k7cXPoLHoUWcIkFX/j6cn2Q6ImFVQcVwTP2cSi26CFzxpb5sZy/SAyvao5s j9QgIW5fco9c3n2cacDpVkR4lzRacEs/cjkEsMTYVHa6pxjH9dcm/i7eiCkkfs1jQbBK bp3Smt1pK6YG/OTEB69vKlfId2d6ZdzIw/uSWnrXIW6FkXVPX/9L03wupsUl3UZ7p6/Z Sn0sqtmV3HrXKHNxqPMc8GomEUeeTujhQ0rfG5pbEDdQf7mp4TPgXu9apK13dZ1LCMw+ 7h1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c4Js0gyW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si4021623edj.174.2021.03.12.03.09.57; Fri, 12 Mar 2021 03:09:57 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=@linaro.org header.s=google header.b=c4Js0gyW; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234076AbhCLLJW (ORCPT + 8 others); Fri, 12 Mar 2021 06:09:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234132AbhCLLJP (ORCPT ); Fri, 12 Mar 2021 06:09:15 -0500 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C1ABC061761 for ; Fri, 12 Mar 2021 03:09:15 -0800 (PST) Received: by mail-wr1-x432.google.com with SMTP id e9so1542620wrw.10 for ; Fri, 12 Mar 2021 03:09:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KXQyr4IBlf8BJXFjheDlLrWyrqRa2WbuLrndUKgj2RE=; b=c4Js0gyWEoLDKpmd1C7WpG0VFopaDp1dQm2+VZf0oryUz1eScc7ZxDbqb+LyE87I5F ePVh3XrvR5lX4IELD37RfRM7gJwEC/tMnPK8m9tRdac5lSxZImh3Le4HEntJ0AQRJYuW uJ3Bnp7fjJr+6WYfuUkTAs4LMiiLOLCLKVtXEqGsc88TZgFFa4Vqy8o6jhI6epPJA89d 7p4FLUSIEm9tQdL2Yf2XMdYQiKEK8b2H/1zq9Po+je7ZIsue6FooKvz+5oheoS1dQiNO +82mmwN6XRHI0a4fFBoAjow4p9XtzjUkzKq+p6RfaipS6RgUon1w75j7slPCa5RCoNv+ y+7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KXQyr4IBlf8BJXFjheDlLrWyrqRa2WbuLrndUKgj2RE=; b=MeMg9PnfkHRQSLAFB6EgUv/CuC0iWgp3etDTeiY6ZsvrAnVHTgL/E5xkBH1UmZkEXH 2qca5UH/F3bgZ98Cpngcz9vXafZnrOtGXbzSqqwvRecMxEjOpRrWg4clyDGCVqwrF43a GKejNBfrdgJSVDJ+xf+wfrm0BRTGIQuXXBdSCckxNlk0OOiATnwvFVlmCzst/MM6dQmq fbhW/6i6G/qW9kXx+Zktpn8sTMRMW70tqxGZ8yzSldw6SSKDRptFvoqT9nC0R9kFhjb+ CKaAG3uR3IDsNzsTXEuQinWoSU7XVNBbyKt+hndyxGb6T6ldY4o35alPs63t5WIwWJaG W3yA== X-Gm-Message-State: AOAM533YwMkvzC/+8AM1xFGnmdrxt2huMNMrSm0Gjp2zT8JqYY8HmlNR DS/CTKWerPUFIXscLQnl1UHvJg== X-Received: by 2002:a5d:550b:: with SMTP id b11mr13671486wrv.313.1615547354239; Fri, 12 Mar 2021 03:09:14 -0800 (PST) Received: from dell.default ([91.110.221.204]) by smtp.gmail.com with ESMTPSA id b65sm1833255wmh.4.2021.03.12.03.09.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 03:09:13 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Richard Cochran , "David S. Miller" , Jakub Kicinski , Flavio Suligoi , netdev@vger.kernel.org Subject: [PATCH 1/4] ptp_pch: Remove unused function 'pch_ch_control_read()' Date: Fri, 12 Mar 2021 11:09:07 +0000 Message-Id: <20210312110910.2221265-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210312110910.2221265-1-lee.jones@linaro.org> References: <20210312110910.2221265-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/ptp/ptp_pch.c:182:5: warning: no previous prototype for ‘pch_ch_control_read’ [-Wmissing-prototypes] Cc: Richard Cochran (maintainer:PTP HARDWARE CLOCK SUPPORT) Cc: "David S. Miller" Cc: Jakub Kicinski Cc: Flavio Suligoi Cc: netdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h | 1 - drivers/ptp/ptp_pch.c | 11 ----------- 2 files changed, 12 deletions(-) -- 2.27.0 diff --git a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h index 55cef5b16aa5f..3ce4899a0417a 100644 --- a/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h +++ b/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe.h @@ -612,7 +612,6 @@ void pch_gbe_free_tx_resources(struct pch_gbe_adapter *adapter, void pch_gbe_free_rx_resources(struct pch_gbe_adapter *adapter, struct pch_gbe_rx_ring *rx_ring); void pch_gbe_update_stats(struct pch_gbe_adapter *adapter); -u32 pch_ch_control_read(struct pci_dev *pdev); void pch_ch_control_write(struct pci_dev *pdev, u32 val); u32 pch_ch_event_read(struct pci_dev *pdev); void pch_ch_event_write(struct pci_dev *pdev, u32 val); diff --git a/drivers/ptp/ptp_pch.c b/drivers/ptp/ptp_pch.c index ce10ecd41ba0f..f7ff7230623e0 100644 --- a/drivers/ptp/ptp_pch.c +++ b/drivers/ptp/ptp_pch.c @@ -179,17 +179,6 @@ static inline void pch_block_reset(struct pch_dev *chip) iowrite32(val, (&chip->regs->control)); } -u32 pch_ch_control_read(struct pci_dev *pdev) -{ - struct pch_dev *chip = pci_get_drvdata(pdev); - u32 val; - - val = ioread32(&chip->regs->ch_control); - - return val; -} -EXPORT_SYMBOL(pch_ch_control_read); - void pch_ch_control_write(struct pci_dev *pdev, u32 val) { struct pch_dev *chip = pci_get_drvdata(pdev);