From patchwork Tue May 16 11:48:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 762907 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wRwnk4zPJz9s5L for ; Tue, 16 May 2017 21:53:30 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="ssP1PhL7"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wRwnk3xm0zDqdR for ; Tue, 16 May 2017 21:53:30 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="ssP1PhL7"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wRwgz69y6zDqbd for ; Tue, 16 May 2017 21:48:31 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="ssP1PhL7"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=u4LZ09ocGa3Owgl1yms9aQH4ta4N4gFzL/b+Iy7qdLg=; b=ssP1PhL7JnzxsloAQ8D6iNSA8 4bkgrrqfINZCBM05yHJSoR/ahezK2smTS89fUhmoYA01xv/xn7KiKiFTyeF7RJ12LZmvTcxVXXnLu UKrcy1yJWPSsvtOeu0y29O3ahj1DDU6ZW26YTnTP5Sr+14bnpkPNulc1cov/+YNlyBjtMViK4ywq1 vxy8qG0DqAp2oMJOkWiaCNZdP1yf6Xiw45+2Vz3xTINP9qUX90+D/5p+CnxAaHDH3DxZp+zSyMPq3 WAhBvo1FViGhbDHrhAdrXmy7iafEoPY4NSg3TAGnonfDZMPpQIZ+EYenNEDelJ8kcu3VTYqAnDMcG SRwXNIMJw==; Received: from clnet-p099-196.ikbnet.co.at ([83.175.99.196] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1dAaxp-0001Pl-5q; Tue, 16 May 2017 11:48:29 +0000 From: Christoph Hellwig To: Thomas Gleixner Subject: [PATCH 3/9] kthread: remove unused macros Date: Tue, 16 May 2017 13:48:06 +0200 Message-Id: <20170516114812.10660-4-hch@lst.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170516114812.10660-1-hch@lst.de> References: <20170516114812.10660-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tejun Heo , linuxppc-dev@lists.ozlabs.org, Mark Gross , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" KTHREAD_DELAYED_WORK_INIT and DEFINE_KTHREAD_DELAYED_WORK are unused and are using a timer helper that's about to go away. Signed-off-by: Christoph Hellwig --- include/linux/kthread.h | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/linux/kthread.h b/include/linux/kthread.h index 4fec8b775895..acb6edb4b4b4 100644 --- a/include/linux/kthread.h +++ b/include/linux/kthread.h @@ -114,23 +114,12 @@ struct kthread_delayed_work { .func = (fn), \ } -#define KTHREAD_DELAYED_WORK_INIT(dwork, fn) { \ - .work = KTHREAD_WORK_INIT((dwork).work, (fn)), \ - .timer = __TIMER_INITIALIZER(kthread_delayed_work_timer_fn, \ - 0, (unsigned long)&(dwork), \ - TIMER_IRQSAFE), \ - } - #define DEFINE_KTHREAD_WORKER(worker) \ struct kthread_worker worker = KTHREAD_WORKER_INIT(worker) #define DEFINE_KTHREAD_WORK(work, fn) \ struct kthread_work work = KTHREAD_WORK_INIT(work, fn) -#define DEFINE_KTHREAD_DELAYED_WORK(dwork, fn) \ - struct kthread_delayed_work dwork = \ - KTHREAD_DELAYED_WORK_INIT(dwork, fn) - /* * kthread_worker.lock needs its own lockdep class key when defined on * stack with lockdep enabled. Use the following macros in such cases.