Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp294050pxm; Wed, 2 Mar 2022 15:39:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjkK2UF7hmm5leK2Bp6IqKvkkgWDhBIuK9jxg6/nBM5Wd+jaw2wSe+2Qtr8OKd/8zsrAhw X-Received: by 2002:a17:902:c106:b0:151:a54f:b14c with SMTP id 6-20020a170902c10600b00151a54fb14cmr2186769pli.103.1646264395899; Wed, 02 Mar 2022 15:39:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646264395; cv=none; d=google.com; s=arc-20160816; b=JPdJSQqKeqHcWiYw7DJbZv2RLIEfVH6EKWmHk89w6/1fYeRoITo92MiKtcowpt6Bf9 iCrZW64p1EvIdjag34iftdLXvbGBuA6P/5RhZdae/Skf2WPmN+WzbWIQYeh7gqtc94Lt A6x44MC98T1DwZbqvFHibRm2CVkadEA2rLYCfFh5xy2Jp9y6HrmKhApI4VmdGtret5b4 eVNAnMN95QzD+GfLwFv9Z/+7qf3w4l6/wJJYAdnw+Vb6P4+XZ9q/ePfQi6lxpWwpzfqC EiuPT4i0YA7HbAQg0pduZIMPD87M7/bdq6xSgfbJNm+Rts/ZCtAN2OHvE3EeoLgayeRI 91xw== 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:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EhwakpZsgRjAK3Qs90JQZNZYd0i0DAXh3eXk7fPyF6I=; b=GhXzqAWNj/lajv3KGZs+tVi8Z3PEwmUA69XWxaNlIZdVs5FWk6oebW2hrKK7AMNWMu mrJd54ghicAz0rMwHW4EFv3OlSAsVOVDpkhtSJyGTrUU3SIcMdwVXONDsn1Rr3A54UhR U9Y+uUdbe8R2XGLLByvWQLRXdd2mrpkJpcW3pTPvYlWc+NyncmcoveHUGxv5DnA7hhxj bTP2sl7X0jegbzJeocnVY/3ej8XwoesQStVtA9rAvxtJ3Jb5OkX/+S2otT6DUPFOA+hG sjkCY8cvZLaXhc/RNjy4nK1sG1/M1VV34ue8BZmmOMf6ChfPX1ZPIhOBi0KQrVLeRSXw 41Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NJWTMKXz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f12-20020a631f0c000000b003706482437dsi449863pgf.441.2022.03.02.15.39.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 15:39:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=NJWTMKXz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B2999167FA6; Wed, 2 Mar 2022 15:07:10 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239508AbiCBEg6 (ORCPT + 99 others); Tue, 1 Mar 2022 23:36:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239493AbiCBEgb (ORCPT ); Tue, 1 Mar 2022 23:36:31 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C88BB10AB for ; Tue, 1 Mar 2022 20:35:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=EhwakpZsgRjAK3Qs90JQZNZYd0i0DAXh3eXk7fPyF6I=; b=NJWTMKXzFFlrerlPPV5LQfwARD PYTUjrgAHD0B58nOKjnUtIEst6VYbu2rpsN2+x+bZLdRvP8x7dUxalFJ34w7MOcefhjO/b06yKzJ9 9Me+6VUVoA7eT035Z6Hq+AU35TyUdQtvBs0latqDqJ2WY0pWiglkcsz8hNjvNCBCGSMgPs8PFdAdM 6XYG1XlwgxD+zL9QmzmKISBOsBQj7F9uKF2V1UCV8WbUM+ThQtH8NbpDOROhODM5cfAqkQpBtYV2f +ECdgRZ2NffjImFoRCz9n9IjM8w3UoMKg1nSMTmV4rp32zsoUZpUA8VNjBH9myoQ7Eun7+7IASu+x ptU5QgUQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPGhS-00AF7B-9D; Wed, 02 Mar 2022 04:34:54 +0000 From: "Matthew Wilcox (Oracle)" To: Kees Cook , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Linus Torvalds Cc: "Matthew Wilcox (Oracle)" , linux-kernel@vger.kernel.org Subject: [PATCH 07/19] wait: Parameterize the return variable to __wait_event_interruptible_timeout() Date: Wed, 2 Mar 2022 04:34:39 +0000 Message-Id: <20220302043451.2441320-8-willy@infradead.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220302043451.2441320-1-willy@infradead.org> References: <20220302043451.2441320-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Macros should not refer to variables which aren't in their arguments. Pass the name from its caller. Signed-off-by: Matthew Wilcox (Oracle) --- include/linux/wait.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/wait.h b/include/linux/wait.h index 5f2c43373061..a4a17f3b6871 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h @@ -503,7 +503,7 @@ do { \ __ret; \ }) -#define __wait_event_interruptible_timeout(wq_head, condition, timeout) \ +#define __wait_event_interruptible_timeout(wq_head, condition, timeout, __ret) \ ___wait_event(wq_head, ___wait_cond_timeout(condition, __ret), \ TASK_INTERRUPTIBLE, 0, timeout, \ __ret = schedule_timeout(__ret)) @@ -534,7 +534,7 @@ do { \ might_sleep(); \ if (!___wait_cond_timeout(condition, __ret)) \ __ret = __wait_event_interruptible_timeout(wq_head, \ - condition, timeout); \ + condition, timeout, __ret); \ __ret; \ }) -- 2.34.1