From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F160C1B0D9 for ; Fri, 4 Dec 2020 17:10:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D09C522CAE for ; Fri, 4 Dec 2020 17:10:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731211AbgLDRKk (ORCPT ); Fri, 4 Dec 2020 12:10:40 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:48740 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731192AbgLDRKj (ORCPT ); Fri, 4 Dec 2020 12:10:39 -0500 Message-Id: <20201204170805.535920431@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1607101797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=sCjEAo7PXYGtuOfndYeVtCu06KHMeYV/70/xL6X2eNE=; b=X46fflSP9QJOpjXm6VyXn1JcE3XXNe9KsBh6Zmej1XoL4IdzYEX8jgrEYUs1cnq03QHfzM Z8IICR3PYyaVR/ebL2/IHROagyZ2/XwPdxieYhdZwqNgkIVWwbGVwfUCkR7GHBspDLnIc2 OWJSVWlrCPpj1Iexx+dJjItmiQvRZ4BjazHJ5mrAiC+zHTR8slkUWHtI8oucMkTfsBWv9P 095TeL6ZkkTw2M8gYuUjReo5njDBMdnEFAv9rHCEDTRfUHgrvdVDhk7I6zV/oDTh5Dw2Gd 58/6Ly708BYi1YvEp/aeCScoU6I/tGemCf3OJG1bdnaoKmVoWN2vpxOvEKHZCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1607101797; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: references:references; bh=sCjEAo7PXYGtuOfndYeVtCu06KHMeYV/70/xL6X2eNE=; b=ifQddLxCsxf9Ol3XrASvWZOKqQarU2oHkn+iYyno8+PLCRgxjmKOxBVgj/RJOdELnWNldb tMBWrJYxJ4mDx2BQ== Date: Fri, 04 Dec 2020 18:01:59 +0100 From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Frederic Weisbecker , Paul McKenney , Sebastian Andrzej Siewior Subject: [patch V2 8/9] tasklets: Use static inlines for stub implementations References: <20201204170151.960336698@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-transfer-encoding: 8-bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner Inlines exist for a reason. Signed-off-by: Thomas Gleixner --- include/linux/interrupt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -672,9 +672,9 @@ static inline void tasklet_unlock_wait(s cpu_relax(); } #else -#define tasklet_trylock(t) 1 -#define tasklet_unlock_wait(t) do { } while (0) -#define tasklet_unlock(t) do { } while (0) +static inline int tasklet_trylock(struct tasklet_struct *t) { return 1; } +static inline void tasklet_unlock(struct tasklet_struct *t) { } +static inline void tasklet_unlock_wait(struct tasklet_struct *t) { } #endif extern void __tasklet_schedule(struct tasklet_struct *t);