Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752687AbeADRnt (ORCPT + 1 other); Thu, 4 Jan 2018 12:43:49 -0500 Received: from mga07.intel.com ([134.134.136.100]:17056 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751899AbeADRno (ORCPT ); Thu, 4 Jan 2018 12:43:44 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,314,1511856000"; d="scan'208";a="21437651" Date: Fri, 5 Jan 2018 01:42:44 +0800 From: kbuild test robot To: Christian =?iso-8859-1?Q?K=F6nig?= Cc: kbuild-all@01.org, imirkin@alum.mit.edu, efault@gmx.de, michel@daenzer.net, konrad.wilk@oracle.com, linux-kernel@vger.kernel.org Subject: [RFC PATCH] swiotlb: _swiotlb_tbl_map_single() can be static Message-ID: <20180104174244.GA16240@lkp-ib03> References: <20180102121358.16215-1-christian.koenig@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180102121358.16215-1-christian.koenig@amd.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: fengguang.wu@intel.com X-SA-Exim-Scanned: No (on bee); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Fixes: bd4bb89b2f71 ("swiotlb: suppress warning when __GFP_NOWARN is set v2") Signed-off-by: Fengguang Wu --- swiotlb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/swiotlb.c b/lib/swiotlb.c index ed443d6..e253e80 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -490,11 +490,11 @@ static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, } } -phys_addr_t _swiotlb_tbl_map_single(struct device *hwdev, - dma_addr_t tbl_dma_addr, - phys_addr_t orig_addr, size_t size, - enum dma_data_direction dir, - unsigned long attrs, bool warn) +static phys_addr_t _swiotlb_tbl_map_single(struct device *hwdev, + dma_addr_t tbl_dma_addr, + phys_addr_t orig_addr, size_t size, + enum dma_data_direction dir, + unsigned long attrs, bool warn) { unsigned long flags; phys_addr_t tlb_addr;