Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp336699yba; Sat, 4 May 2019 03:30:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSq3O5luyAF7T5kKoXMwsbwTswM00zN/XVHDBF1qLakJQRDRgs9fcC/09kQKCAxqnE0pbQ X-Received: by 2002:a17:902:f30b:: with SMTP id gb11mr18011027plb.109.1556965822793; Sat, 04 May 2019 03:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556965822; cv=none; d=google.com; s=arc-20160816; b=W/wGpDsXsIIXf7BCXVsU7usim5dZe52QIJHWVPWBKmZN9kZdScpsW9va/V6nXMoGIW LKXn+34PLx0Bkz4gca5PMLzUEhrqewV/PC7wn3kyOT6ofU7Waixb6y6tsyxr3FvL0usI NkPooaejJFXitz04fIcHdKrs9qoDnYFMRhV8rNF+cy9dEpbmUvl6lRLedzbaTl+Nw/xC XQ4WCmNw4j+4ZJ9FAB2MScHZM2nXQmmjWYOX/GHuFZZxfthp5S/LqOzhNgm4TAvB9Zwk ub5zsZ6HQ9FgZEUDuE/7FOFPoFrCrUpDPqeMjMQA+CekOcnY/HnWiicfpN4HMafnvKjs 6/MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=xsCb4o8nEfY4EfWegiGM7AWb4rDEgUhDnHy0lallXG8=; b=qWEqzwT29JXcSn4PZRQbJ/qS4xkMaKOGYx9NTyh1Eqzq9WNJn+r+uAzDjcRhGWvCxw tM/rKpRcxIpL2oFynaMbXcsFBRVdGP/IbXb9onZukka9hr32554l29NQ1YPGMHsXmdI7 ANd4LnBT4JCUCs5yGa15eUQgwVKB85tWOOrSvY81Uu31r7Da027K6qyEF4fVqU2fLSit rYZsQEeOcmVFYXyxENBrXaWB8pmItQsWt5torhzvuCYcDWGfqNzfSF0pBH1Kca5WdwS7 efzTiZm28RsWQHQTlr8HDl4qgX35yxP24sH/+sY4OqrT+Q9rhX4R7Hreg3BxCTIgHjiP IQKQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j26si6438792pfa.23.2019.05.04.03.30.07; Sat, 04 May 2019 03:30:22 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727872AbfEDK2i (ORCPT + 99 others); Sat, 4 May 2019 06:28:38 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7155 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727568AbfEDK2h (ORCPT ); Sat, 4 May 2019 06:28:37 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 102CF6A7CC9AEFD6C2D8; Sat, 4 May 2019 18:28:35 +0800 (CST) Received: from localhost (10.177.31.96) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Sat, 4 May 2019 18:28:25 +0800 From: YueHaibing To: , , , CC: , , YueHaibing Subject: [PATCH -next] misc: ocxl: Make ocxl_remove static Date: Sat, 4 May 2019 18:27:20 +0800 Message-ID: <20190504102720.42220-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.31.96] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix sparse warning: drivers/misc/ocxl/pci.c:44:6: warning: symbol 'ocxl_remove' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: YueHaibing --- drivers/misc/ocxl/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ocxl/pci.c b/drivers/misc/ocxl/pci.c index f2a3ef4..cb920aa 100644 --- a/drivers/misc/ocxl/pci.c +++ b/drivers/misc/ocxl/pci.c @@ -41,7 +41,7 @@ static int ocxl_probe(struct pci_dev *dev, const struct pci_device_id *id) return 0; } -void ocxl_remove(struct pci_dev *dev) +static void ocxl_remove(struct pci_dev *dev) { struct ocxl_fn *fn; struct ocxl_afu *afu; -- 2.7.4