Received: by 10.223.185.116 with SMTP id b49csp4998010wrg; Wed, 7 Mar 2018 04:50:42 -0800 (PST) X-Google-Smtp-Source: AG47ELtVHzP8mR2Z9chowSI4r63gbsqJH2IkFcNLtGm/VRDtC9aiR08LZv73kgPiaPldGUICxaHO X-Received: by 2002:a17:902:b210:: with SMTP id t16-v6mr20158026plr.373.1520427042638; Wed, 07 Mar 2018 04:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520427042; cv=none; d=google.com; s=arc-20160816; b=c9V65SDwS18pppwQve7PCxUEUtS2Vn488zCmyKua6gF1ybEhWCYGU9RLJXS22d2Vos V4BoFPXHoOAmZ+eboxSirBk93OBZ/Wa9xNgNBi/UvLl2uecwvhnKd5aAMIqfi9yBX6uW 18GtZUFEOyVdbJm+GbGwp/9OtIH6EwvsdMTrVYbRb5QcJCIkdw6QhvMnPjzFa/pTBJLb TcRJMzSGxzMi338arblmkLHsuOP4QVJvLI9i4fV/zEKodRMm2CV4iPsaudbeQhhVJiLB vFKtrEvh/79YRRRGsYjqLw8m85OFP1aTAWyxTqoZM6BquVacfs/y4gIi2oWqw/x9pdWM n6hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=I1GA53Lrj/BHADuvIji1ygQ9qe+uBU8cWQ5+sKzsdIo=; b=r4LrRjYfhM5DJCUMDRm2LAun2WCcdREQmlGIE2FUijwYSC0/7jBySboHf1KwhPIu2Z rasKs/bDiN596OEpxH1jYYyp+zqfVCzYLesjMQ7QVao7+/TxQMmIOuQpf2fsIPWFNfBt IAGknjG7xZ0vQtUQKbcB7iaNI6/Q3TGFPe9Zk0MFPKU9i+ktsxMIOqM+e3Xvnv8wK4g0 CuFf/ZYlEokNbT3bWycN3+MZnD+0uAl6CoK0WGVrPj7mv6jd3xHIhRGXMd8dO5BrwF47 wh0Rkc3N7CkhHYnEvxjr9cvO8foCb8H626gwk0oiPt9idhpv7X8G4qXb8t+bwYe4aFLh puDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=DFtX03Em; 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 b7-v6si12994496plk.592.2018.03.07.04.50.28; Wed, 07 Mar 2018 04:50:42 -0800 (PST) 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=@ursulin-net.20150623.gappssmtp.com header.s=20150623 header.b=DFtX03Em; 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 S1754533AbeCGMtC (ORCPT + 99 others); Wed, 7 Mar 2018 07:49:02 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:32996 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754052AbeCGMrc (ORCPT ); Wed, 7 Mar 2018 07:47:32 -0500 Received: by mail-wr0-f193.google.com with SMTP id v18so2049713wrv.0 for ; Wed, 07 Mar 2018 04:47:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=I1GA53Lrj/BHADuvIji1ygQ9qe+uBU8cWQ5+sKzsdIo=; b=DFtX03EmZf4OcAvYjnheUqpD0FGYwoGm+DPmTIIy+0eHOhDcQu2KgXwoMKtBrHTuiF oPpaiavUSmC20UVD5HrXuz7FITILPWoC5+AErGm50Y/zzMVolo0ESBYQiQoFUcTo/GhO e3HX4r6DhKk4eGS+uD8+BtZiJ37j+tA6cYoCt0qG+I9KYP5okX9NkItraw6v3Ygy9Slx yojNQo78LGT5eKSW86rEsCSDAkiZOM6i+gt/QpnG4O7w+YVnC8XXxqh4AyIX3HhCnd3r GazGmlUGdU44iA4wTr+2+pOz8WFEouQTk2mtKupCcSeIeAUlG3npgOlk9Ery/7sN4pEs BmEw== 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; bh=I1GA53Lrj/BHADuvIji1ygQ9qe+uBU8cWQ5+sKzsdIo=; b=AgYYdqW7Gam4wtsN80ppyCIq0xbgY4DzMNxnpIKVwF1q70muGmT3dpnq8xEv2Z06ah Ck12Ti5HB9ksPLEJsJL2lcMmPcftDTBVGmSn4lBcOxJcSr6w3sqjpAZ0nqiqug1EgrJ8 uneP4ZQFRP61tj9GUDdDjDQlmPcn4zkW2PDoPJYkMg7Jf345r9zOeJ2PuhPQaNIFe4s+ YrnYOBOhHrTSKTVlXOy+CJRRkmK1HHXUIEI7tvuemEMXAd/vg76KiK7bXQ+jhByX60qw MUPv4L2VyhF9KCs06TT/eqhskLdA7awv97SYZtKNF4lYpeqiccLz8vUS9sj1MEXG7gJQ KOrg== X-Gm-Message-State: APf1xPDo/LYRsEA6XV/qXerEKmuDNdnt8FTL5bazlHcVO7TFlA5W+Q30 36RClTUT9JIr6sE40vV6gTJ59tBy X-Received: by 10.223.179.194 with SMTP id x2mr20122605wrd.94.1520426850846; Wed, 07 Mar 2018 04:47:30 -0800 (PST) Received: from localhost.localdomain ([95.146.144.186]) by smtp.gmail.com with ESMTPSA id x78sm24325756wmd.2.2018.03.07.04.47.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 04:47:30 -0800 (PST) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: linux-kernel@vger.kernel.org Cc: Tvrtko Ursulin , Bart Van Assche , Hannes Reinecke , Johannes Thumshirn , Jens Axboe Subject: [PATCH 5/6] lib/scatterlist: Drop unused sgl_free_order Date: Wed, 7 Mar 2018 12:47:11 +0000 Message-Id: <20180307124712.14963-6-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180307124712.14963-1-tvrtko.ursulin@linux.intel.com> References: <20180307124712.14963-1-tvrtko.ursulin@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tvrtko Ursulin No code calls it so remove it. Signed-off-by: Tvrtko Ursulin Cc: Bart Van Assche Cc: Hannes Reinecke Cc: Johannes Thumshirn Cc: Jens Axboe --- include/linux/scatterlist.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h index f665a278011a..3ffc5f3bf181 100644 --- a/include/linux/scatterlist.h +++ b/include/linux/scatterlist.h @@ -297,23 +297,13 @@ sgl_alloc(unsigned long length, gfp_t gfp, unsigned int *nent_p) return sgl_alloc_order(length, 0, false, gfp, nent_p); } -/** - * sgl_free_order - free a scatterlist and its pages - * @sgl: Scatterlist with one or more elements - * @order: Second argument for __free_pages() - */ -static inline void sgl_free_order(struct scatterlist *sgl, unsigned int order) -{ - sgl_free_n_order(sgl, UINT_MAX, order); -} - /** * sgl_free - free a scatterlist and its pages * @sgl: Scatterlist with one or more elements */ static inline void sgl_free(struct scatterlist *sgl) { - sgl_free_order(sgl, 0); + sgl_free_n_order(sgl, UINT_MAX, 0); } #endif /* CONFIG_SGL_ALLOC */ -- 2.14.1