Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2384706pxb; Tue, 9 Mar 2021 00:46:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCQdLky3VuPa7FBkKEXY+8Y3NASBAvcK7WnizwRQiV+dOd3cKv7eVqtn4ZkXQvaTOAjUIO X-Received: by 2002:aa7:cd63:: with SMTP id ca3mr2807434edb.265.1615279597479; Tue, 09 Mar 2021 00:46:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615279597; cv=none; d=google.com; s=arc-20160816; b=jkqdfCTTleNhH6vX/qMz2fjSx7eQ4ZE6i8mqFQ8V8tRZ0NoJ0gQiAlPX1KZ9k3TgYi /dnMXhgidI4W24ba0L7hnsKImGwlaiY1mBNttyrH+C02rKkDc0on/ysf4WviAjFTPEBA BQbgrqy+1iPZwxdnqEMLDT1ZCrRufEK+5AkYbDJc9y5zNMjSDjuys9aTZ3+RwvBVMsYn 2kL1WpASBsBJ+1241K94KIciPSfrrlKDlLmxLdAweWJOQm/B6Dca5r6EYvl72VT0Z6/e 36NDoitLplyPMWjcBzUDAVY1ravLtTh69Ji+QiSvz/tPo1Kq74n/zKZaJxM6lY9NJa1a pUmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:subject:cc:to:from:date:dkim-signature:dkim-signature :message-id; bh=o2CXUsE59obF5ek4K6XdcmLhe8s7XlVKrpUV1oOhJ6Q=; b=Jl6TR0eOiwWR6q+9wRUDLczjOj/2QYNV99Qigp5CA9CuFKHG6c+hnltk1CIu3wtyrb eW6cXKCo+Mh7ml+m6G2+Ko7OB9RIDEpBmA4+QTISMDNYw2GWd2jjeGs1FgeqrqUhW+ev W9nuvmBl+sAkoaTFGJ61kNSn3pdvJPBNmKHE+T86+mzN38F5G2IRR32tgmyMgm2AXTbr 9OonBYoW9f34jhbv3JoeLdQ9K8pGIjELsRMFTPy5Pq6aymzuRCtiiD+JyNre/6SATu5J w90DSqTe8weNDn3JI57lSJaewLo1DcCF7YJ5GhG9qmn7jI1tJIDoqibGyPn7AZ0BEu9J tSlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=h7x4o9iY; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si8680211ejk.478.2021.03.09.00.46.09; Tue, 09 Mar 2021 00:46:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=h7x4o9iY; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbhCIIpj (ORCPT + 99 others); Tue, 9 Mar 2021 03:45:39 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:51238 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbhCIIpc (ORCPT ); Tue, 9 Mar 2021 03:45:32 -0500 Message-Id: <20210309084241.407702697@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1615279531; 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=o2CXUsE59obF5ek4K6XdcmLhe8s7XlVKrpUV1oOhJ6Q=; b=h7x4o9iY4obbnaJ882WU+aDlrLddiyKnz43xPo7oD71f9Laof7rJaWus3NREAv0OzEOZVn TzEN8SlElmh1J6d/y583/7xR7qBEL/68wnsuoLE9msv9t6TU5Z3X+G5dNj9wPuwetcBwBS 5aVDGRn1K+u92JjZwDvHbf9z3NdaIjyvg08ORucxA0u2M6g7aMETtnSEGuelWnf3S5vwjH Y3A86H7le/gn0vaGSxPwF9UL0zx0J2dLxXf4MQeUNC1s6Q7anRp/b4BR5igTL39cM+B1v+ 4j2gu7EsnRjo3PgaEn8eWZ4MgvSTX+IQ8cAFFj8/8cKpWsjYULTSUqDzPrkG8g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1615279531; 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=o2CXUsE59obF5ek4K6XdcmLhe8s7XlVKrpUV1oOhJ6Q=; b=pqfi+4r4caBDXjnyu9+vuj+UoZmAX2xcL8obAZ2eLg85vmrLN3CEavkW/Mf27wU8fkmawC zbuw1nn45J3T4ICA== Date: Tue, 09 Mar 2021 09:42:05 +0100 From: Thomas Gleixner To: LKML Cc: Frederic Weisbecker , Sebastian Andrzej Siewior , "Ahmed S. Darwish" , Peter Zijlstra , Denis Kirjanov , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, ath9k-devel@qca.qualcomm.com, Kalle Valo , linux-wireless@vger.kernel.org, Chas Williams <3chas3@gmail.com>, linux-atm-general@lists.sourceforge.net, "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Lorenzo Pieralisi , Rob Herring , Bjorn Helgaas , linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, Stefan Richter , linux1394-devel@lists.sourceforge.net Subject: [patch 02/14] tasklets: Use static inlines for stub implementations References: <20210309084203.995862150@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-wireless@vger.kernel.org Inlines exist for a reason. Signed-off-by: Thomas Gleixner Tested-by: Sebastian Andrzej Siewior --- include/linux/interrupt.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -676,9 +676,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);