From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Date: Fri, 13 Nov 2020 14:02:25 +0000 Subject: [patch 18/19] tasklets: Use static inlines for stub implementations Message-Id: <20201113141734.788853107@linutronix.de> List-Id: References: <20201113140207.499353218@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: LKML Cc: Marc Zyngier , Rich Felker , Catalin Marinas , Paul McKenney , Arnd Bergmann , linux-sh@vger.kernel.org, Peter Zijlstra , Richard Weinberger , Frederic Weisbecker , Valentin Schneider , Jeff Dike , Russell King , Yoshinori Sato , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Helge Deller , linux-um@lists.infradead.org, Will Deacon , Sebastian Andrzej Siewior , linux-arm-kernel@lists.infradead.org, Anton Ivanov 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); 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=-6.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 419B2C61DD8 for ; Fri, 13 Nov 2020 14:24:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 031C822226 for ; Fri, 13 Nov 2020 14:24:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bibqvpSi"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="r81MeMUb" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726945AbgKMOYj (ORCPT ); Fri, 13 Nov 2020 09:24:39 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:52700 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbgKMOYi (ORCPT ); Fri, 13 Nov 2020 09:24:38 -0500 Message-Id: <20201113141734.788853107@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605277476; 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=H39LibppQlvIcymGFnJumuF0TnrJv/wQeeJyrMh1wnE=; b=bibqvpSiXbaOS4h7rid9FwsrfZSPl9dqxvvgGgVUV9uMsDpeVlzjuZBL5vmTImnrP8aKgV W75ixYNzPjvGLHB88W8l/PfqJkl2eNqE+AOJfxUdflFalLioQXWlwzFwEOeErkpduUMv2T hDTxcgjpz300WGMDoXe9QVdQolKoXoyQeFZRUG+sc6QOFdLOEug1POHDDMo0Rnw6dn/VhC 3bHFASxxIKjReHu3RkXYKgSweZTTUxfSnAG5kRhGsvHOJpthEpvQH0zTb/i3PIzTTYrKar lGIj6hnPgNEg7qHHgMND18ig/lg3lWYVjZh91/LIpb63t+M6EiR2BKOd8cBqGQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605277476; 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=H39LibppQlvIcymGFnJumuF0TnrJv/wQeeJyrMh1wnE=; b=r81MeMUbNWSbPQgCuPKytMvpffni1swCI25j1iY9kSh6gfm/DKBFJAFvtL/QEa+0xZbfNJ zDN9yQZWdSAL1bAQ== Date: Fri, 13 Nov 2020 15:02:25 +0100 From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Frederic Weisbecker , Paul McKenney , Sebastian Andrzej Siewior , Arnd Bergmann , "James E.J. Bottomley" , Helge Deller , linux-parisc@vger.kernel.org, Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um@lists.infradead.org, Russell King , Marc Zyngier , Valentin Schneider , linux-arm-kernel@lists.infradead.org, Catalin Marinas , Will Deacon Subject: [patch 18/19] tasklets: Use static inlines for stub implementations References: <20201113140207.499353218@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-parisc@vger.kernel.org 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); 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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 A0FB6C388F7 for ; Fri, 13 Nov 2020 14:28:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 569E322226 for ; Fri, 13 Nov 2020 14:28:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Ef+5hKWY"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="bibqvpSi"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="r81MeMUb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 569E322226 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:Subject:To:From:Date: Message-Id:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Owner; bh=3WuufAN1asqut5AoFo5LStnZ/pCju5ATcASSS6sgnPk=; b=Ef+5hKWYHoRObs4y6JG3/Mtyb w+pdUIpn6DkO18YOSGzB3PkL3wfqC50AEMEKJ8Lax+ss0GTKyvdJzHD2/mPV7fF0QiTrS+E3YQibr 8S+Y+W79pJ1J1wXWB/zo6DGmaNZADnwj8eJsv31bPUQr4bqYMy1uvUsFrN+PCljYoWNuA4FFqve2D VDfhZrQjXCuUNK8pG4K9Y1YRvexBUsLT7Vmw3wBhuMHGeIk2gP6Q3MpDIv8Ifjm9NCODEN9KNB9IE 5crMZdpsVQ9HTZ2fNwQ3KJFz52o2S/tR1VyM9zGUs/ojY1ddH9dSu6UFw8sPTgfsLJB/e1Ve+tFQx A9KgOQfQg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kda3X-0008A3-VQ; Fri, 13 Nov 2020 14:28:04 +0000 Received: from galois.linutronix.de ([2a0a:51c0:0:12e:550::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kda0D-0006PS-VB; Fri, 13 Nov 2020 14:24:46 +0000 Message-Id: <20201113141734.788853107@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605277476; 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=H39LibppQlvIcymGFnJumuF0TnrJv/wQeeJyrMh1wnE=; b=bibqvpSiXbaOS4h7rid9FwsrfZSPl9dqxvvgGgVUV9uMsDpeVlzjuZBL5vmTImnrP8aKgV W75ixYNzPjvGLHB88W8l/PfqJkl2eNqE+AOJfxUdflFalLioQXWlwzFwEOeErkpduUMv2T hDTxcgjpz300WGMDoXe9QVdQolKoXoyQeFZRUG+sc6QOFdLOEug1POHDDMo0Rnw6dn/VhC 3bHFASxxIKjReHu3RkXYKgSweZTTUxfSnAG5kRhGsvHOJpthEpvQH0zTb/i3PIzTTYrKar lGIj6hnPgNEg7qHHgMND18ig/lg3lWYVjZh91/LIpb63t+M6EiR2BKOd8cBqGQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605277476; 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=H39LibppQlvIcymGFnJumuF0TnrJv/wQeeJyrMh1wnE=; b=r81MeMUbNWSbPQgCuPKytMvpffni1swCI25j1iY9kSh6gfm/DKBFJAFvtL/QEa+0xZbfNJ zDN9yQZWdSAL1bAQ== Date: Fri, 13 Nov 2020 15:02:25 +0100 From: Thomas Gleixner To: LKML Subject: [patch 18/19] tasklets: Use static inlines for stub implementations References: <20201113140207.499353218@linutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201113_092438_239836_FDC05DB6 X-CRM114-Status: UNSURE ( 9.21 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marc Zyngier , Rich Felker , Catalin Marinas , Paul McKenney , Arnd Bergmann , linux-sh@vger.kernel.org, Peter Zijlstra , Richard Weinberger , Frederic Weisbecker , Valentin Schneider , Jeff Dike , Russell King , Yoshinori Sato , "James E.J. Bottomley" , linux-parisc@vger.kernel.org, Helge Deller , linux-um@lists.infradead.org, Will Deacon , Sebastian Andrzej Siewior , linux-arm-kernel@lists.infradead.org, Anton Ivanov Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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); _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel