From patchwork Fri May 12 09:41:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9723797 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 18586601E7 for ; Fri, 12 May 2017 09:42:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155D3287C2 for ; Fri, 12 May 2017 09:42:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09D6A287D6; Fri, 12 May 2017 09:42:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CCC7287C2 for ; Fri, 12 May 2017 09:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751442AbdELJl4 (ORCPT ); Fri, 12 May 2017 05:41:56 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:36566 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751424AbdELJlb (ORCPT ); Fri, 12 May 2017 05:41:31 -0400 Received: by mail-wm0-f49.google.com with SMTP id u65so15185763wmu.1 for ; Fri, 12 May 2017 02:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=vapiRj2Gj/M58mf0cDNHpoBxKMKQ/vRe5YJd/qliUss=; b=gE5vpHbeeFdR48gD+2S9VV4Yjod5rxCr2sSUkxK/IPsjSZPblkQv4AxesTDMq2PJsa oW8pN2XdFhvcO+Cf+1QL6x/FeMIbPPPhtbJ6toVJA8PnBG/teO9NA+qCFds7AwaRtisM WhOzY4y7hr8+eIUz+V0Urx1EN2gwlqn61wWWg= 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; bh=vapiRj2Gj/M58mf0cDNHpoBxKMKQ/vRe5YJd/qliUss=; b=aKVsaYPO6NXZQTCmaZ9f6JjQRy6G7iYwLxAgyKmCatHfgrnZ7WquUROaEYZxcVmU54 c0mK5sf2uJsWSDfPZ5I4sD3u7IVStxzeIqyr2TlVg6d450xyp4pSrwUS/S5ehnc7c1Sh YcX/jiBJc7uGFK/n/hnbcbz3EDPUI4MwWs2F3HzkSjL+ertJL6w/7q8hMuLlJJ8/V5ik Mk8ZAlVUwRkDugzFNZX61y4Qep2wVfgZX9lstimZXh/dS3jge8HBf0kc+9iGUq25ykXU lk/saXr+qHlcvrdOX6AAeYq9CjoZnTH6gRDjHAYo6ml3drFDhZT8bPDaHhsoIiZEQ1jX THWw== X-Gm-Message-State: AODbwcBozl7qPSPMsoxZ6FnK1YnyJzbfQSEMh0iY1k4GCGsRsyTFuq5X OJ6ionLk7/J/cQgy X-Received: by 10.25.193.193 with SMTP id r184mr864512lff.125.1494582090109; Fri, 12 May 2017 02:41:30 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id w69sm476971lff.45.2017.05.12.02.41.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 May 2017 02:41:28 -0700 (PDT) From: Linus Walleij To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter Cc: Linus Walleij Subject: [PATCH] mmc: queue: delete mmc_req_is_special() Date: Fri, 12 May 2017 11:41:20 +0200 Message-Id: <20170512094120.8726-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP commit cdf8a6fb48882651049e468e6b16956fb83db86c "mmc: block: Introduce queue semantics" deleted the last user of mmc_req_is_special() and it was a horrible hack to classify requests as "special" or "not special" to begin with, so delete the helper. Signed-off-by: Linus Walleij --- drivers/mmc/core/queue.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/mmc/core/queue.h b/drivers/mmc/core/queue.h index 7015df6681c3..e0936742c802 100644 --- a/drivers/mmc/core/queue.h +++ b/drivers/mmc/core/queue.h @@ -12,14 +12,6 @@ static inline struct mmc_queue_req *req_to_mq_rq(struct request *rq) return blk_mq_rq_to_pdu(rq); } -static inline bool mmc_req_is_special(struct request *req) -{ - return req && - (req_op(req) == REQ_OP_FLUSH || - req_op(req) == REQ_OP_DISCARD || - req_op(req) == REQ_OP_SECURE_ERASE); -} - struct task_struct; struct mmc_blk_data; struct mmc_blk_ioc_data;