From patchwork Wed Oct 4 23:27:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 9985937 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 A99C1602B8 for ; Wed, 4 Oct 2017 23:32:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B9B426E96 for ; Wed, 4 Oct 2017 23:32:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FE2628C21; Wed, 4 Oct 2017 23:32:51 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 38E1C26E96 for ; Wed, 4 Oct 2017 23:32:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751784AbdJDXcZ (ORCPT ); Wed, 4 Oct 2017 19:32:25 -0400 Received: from mail-pf0-f169.google.com ([209.85.192.169]:47491 "EHLO mail-pf0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751369AbdJDX2A (ORCPT ); Wed, 4 Oct 2017 19:28:00 -0400 Received: by mail-pf0-f169.google.com with SMTP id u12so7044879pfl.4 for ; Wed, 04 Oct 2017 16:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/ksN2ZTyxjVi30ahu5yOG0nmZU/Q9UuZafn+U1M1r/c=; b=Ln53AfsKt/2WSRI6s2jdpSFttXU4i13lQjS7Y8g5U4v7m3FIwjhyfYG2pIW+oOpGTe gozWeW1BVaH5FnLotcROt31ojMKg9NDyUW64wD6C0LDbJm/Ggw8FMTRAxdY+oeKsWOQL YrW+Pf6/hE9U1sF+w/dsUzhdBuhdQp8nDkMEA= 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=/ksN2ZTyxjVi30ahu5yOG0nmZU/Q9UuZafn+U1M1r/c=; b=Ic+s18PT8lcaVBDcWxnfdCkKwfIPi6uC0p9zNUhSjzk5nNTp633MIHhRcHBUhq82RD oXp0TiE9Po1H6ZIPrJiS8zUw0yOqV62GNjl6QWym4CUQzaGaENnAyUU4yvuAEtYGsBQx /ySGcYF0juhIhbIYyB9J54h8tTyIpzFDg7L3ryRl0BzLVyuwjueZ+G5biMlRLht1Mi3J OzFX4tuzAR3aHWNj63Q7u2tfFbHdtnSsFc4iP0yUJX/8rPKk09dJ9x5ciQWiCR8KnIYP A2SZqGasl242PWArUlKPw8we9nZklyypANugn49MIjDpQ0RX/dY8jJRgRG3w+DRIMPln llLw== X-Gm-Message-State: AMCzsaW3Uvwqab7RPjRrz9jS6HkbArvhOSpQcz2eQ9MvuMGneTr7kxKg OeFoUi8Z2BA+o70aYWH4BM5nlQ== X-Google-Smtp-Source: AOwi7QA7ZIT2W2pn4IAh1qFg59HD9EWLLSYN/5pw9+jMhHUx8uB24XiVjwas+6RWJ9sSYp+dTelWsA== X-Received: by 10.98.166.86 with SMTP id t83mr302025pfe.345.1507159680293; Wed, 04 Oct 2017 16:28:00 -0700 (PDT) Received: from www.outflux.net (173-164-112-133-Oregon.hfc.comcastbusiness.net. [173.164.112.133]) by smtp.gmail.com with ESMTPSA id i84sm31216391pfj.105.2017.10.04.16.27.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Oct 2017 16:27:57 -0700 (PDT) From: Kees Cook To: Thomas Gleixner Cc: Kees Cook , Andrew Morton , Arnd Bergmann , Benjamin Herrenschmidt , Chris Metcalf , Geert Uytterhoeven , Greg Kroah-Hartman , Guenter Roeck , Harish Patil , Heiko Carstens , "James E.J. Bottomley" , John Stultz , Julian Wiedmann , Kalle Valo , Lai Jiangshan , Len Brown , Manish Chopra , Mark Gross , "Martin K. Petersen" , Martin Schwidefsky , Michael Ellerman , Michael Reed , netdev@vger.kernel.org, Oleg Nesterov , Paul Mackerras , Pavel Machek , Petr Mladek , "Rafael J. Wysocki" , Ralf Baechle , Sebastian Reichel , Stefan Richter , Stephen Boyd , Sudip Mukherjee , Tejun Heo , Ursula Braun , Viresh Kumar , Wim Van Sebroeck , linux1394-devel@lists.sourceforge.net, linux-mips@linux-mips.org, linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/13] timer: Remove unused static initializer macros Date: Wed, 4 Oct 2017 16:27:02 -0700 Message-Id: <1507159627-127660-9-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507159627-127660-1-git-send-email-keescook@chromium.org> References: <1507159627-127660-1-git-send-email-keescook@chromium.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This removes the now unused TIMER_*INITIALIZER macros: TIMER_INITIALIZER TIMER_PINNED_INITIALIZER TIMER_DEFERRED_INITIALIZER TIMER_PINNED_DEFERRED_INITIALIZER Signed-off-by: Kees Cook --- include/linux/timer.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/include/linux/timer.h b/include/linux/timer.h index 4f7476e4a727..a33220311361 100644 --- a/include/linux/timer.h +++ b/include/linux/timer.h @@ -73,18 +73,6 @@ struct timer_list { __FILE__ ":" __stringify(__LINE__)) \ } -#define TIMER_INITIALIZER(_function, _expires, _data) \ - __TIMER_INITIALIZER((_function), (_expires), (_data), 0) - -#define TIMER_PINNED_INITIALIZER(_function, _expires, _data) \ - __TIMER_INITIALIZER((_function), (_expires), (_data), TIMER_PINNED) - -#define TIMER_DEFERRED_INITIALIZER(_function, _expires, _data) \ - __TIMER_INITIALIZER((_function), (_expires), (_data), TIMER_DEFERRABLE) - -#define TIMER_PINNED_DEFERRED_INITIALIZER(_function, _expires, _data) \ - __TIMER_INITIALIZER((_function), (_expires), (_data), TIMER_DEFERRABLE | TIMER_PINNED) - #define DEFINE_TIMER(_name, _function, _expires, _data) \ struct timer_list _name = \ __TIMER_INITIALIZER(_function, _expires, _data, 0)