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: 99705 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp211603qge; Fri, 12 May 2017 02:41:59 -0700 (PDT) X-Received: by 10.99.47.69 with SMTP id v66mr3375970pgv.47.1494582119669; Fri, 12 May 2017 02:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494582119; cv=none; d=google.com; s=arc-20160816; b=GkXq1LDD+IvRahyhqzFWl7T/+5VViMLLr3d2OhrBA0e5uPMzIIFxBcSHlKb8ltSQDz OwN/8r4HC7sbbGXUYA9WCr76VZG9UvfJdrCpWiu/ufLw7ECCoWKSyNip2JuHhzogE+OF QVcGrFmJzDtYGXAMqbR8d24Vyy4XIWBRlVYfwDsychig+1amlvEgu3zWoPI7UhgLbUBx AIpmcYqsnBQdquKfUJqzE2X21sVXZ10NVTZup2qa8gk6AL1fJ5XeANnM6UuJ575OycFs jD5yeUhBftno9GKd/LS3tjuoSf/H11ZRAntTxT8X/Sq8JtQuEf7oArv7hhVzKLA2mylT EMqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=9Z0j9z8bpdCwIaAMi9/WZq4Sg6cmcGqmyaX0iIV0sns=; b=heL1iBbjowW4EhHnISya7b16MhZE4wxQ6wGqL0R1wDj3KLy0loCCAOkdnSLmdFb/tP 8kYo5J1MFaktFlRG0mSYgqFT6MrDs2DRpZJAldbzqxpd89Qhs40hiUE1olq+VaQx1dM1 jHFC4h/4OCbxK4a9cCjUdnO4QWA1QaMQDujuK4WCXC0QBnSIvfDa68uy+ufaxUgyp2vQ Dn2jVc1PFCcT78HK5L97hjhSloLZw4u2sacOsQh9ALMXVRlivd6+oywxGTy1fCTfN4NN 2GVZ98FtGoVJjmNICNsf8Ho2lnNba3YSK82ifRQXgNpzRvVxbCNlMevWrpDW9fyrGNqc wMBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j198si2776431pgc.370.2017.05.12.02.41.59; Fri, 12 May 2017 02:41:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751442AbdELJl4 (ORCPT + 6 others); 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 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(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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;