Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3664550pxb; Mon, 24 Jan 2022 14:49:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOb458OAVa99rpzfq8SOn2nco5+Z4lDN00y1iJ+5hZUGYcy+IjFlIsQCSXw7Gzyhed1uJ/ X-Received: by 2002:a17:902:b181:b0:149:90e2:896a with SMTP id s1-20020a170902b18100b0014990e2896amr16093912plr.149.1643064544418; Mon, 24 Jan 2022 14:49:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643064544; cv=none; d=google.com; s=arc-20160816; b=SXpKIi4Ahonn2iOp+HNXiWNPxcxvtrFWbi4UkZoBLGUIs3rmFen2NOERohafbtifqF 11DyKo9SD8gFOSY5JGJapK/2of/oocpAxlyps5SHE2+6XuK8omiXp8QNzJLQMgvYvDu4 tx2syyKD4UmrPERLZHfp6Zy0yKgXCUdxp5QotIabXOnjTccZhMC/lnljdCzY+k0Suv8n N70RLfJ5aNN3xsJUodSwWP8ik+yusETz/zWP3MrVv1YmN1He6h5UH/lXIVj+W1x4RVY7 kbopSSXrcdTUYigr1aKXL9weq0iTF53ikUynWYiEMMXILUXnlGy/n8iX8usoUO6K1XRl RF8Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=S5q8KLsFWN4nXBxF03r1wgg1Dat1RRd16KTFGuPXccM=; b=X8ha6l58YUcpjDm7OxEymaFHnYrPEA+dSfF/fYhW9QMLyXYx9Xvi0aWdPkIttXhRj1 KzLHSWJ9zo1JV6i4bfpfPqTR4ZpdGcGyJYQIblOzyPyMEDGYYftiS44MEJ1UVacwuFKz vVj0R4MaNXOLj1XW5wRAowcQBYT/O/UtFgAjaBRIEk9oz+wrOJhDXSDQOepjSJmHJgwo Vg4n9rvCgeU/9umJtmr2jGdIIIGyMALOZd5mCfi/cuj1a4UZQcAjtF4iHliArl9hnlrS bOtvEqHhE2xqA7kCzHlRSV8T3x7GByosO/7VsaR0KQOIUK66lJv2jJcB0ECC4fIfYo/6 M30g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MKftoACt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x184si8988809pgd.280.2022.01.24.14.48.50; Mon, 24 Jan 2022 14:49:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@linuxfoundation.org header.s=korg header.b=MKftoACt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837851AbiAXWp1 (ORCPT + 99 others); Mon, 24 Jan 2022 17:45:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456059AbiAXVhk (ORCPT ); Mon, 24 Jan 2022 16:37:40 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8B16C0BD123; Mon, 24 Jan 2022 12:23:46 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 782606090A; Mon, 24 Jan 2022 20:23:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5197CC340E5; Mon, 24 Jan 2022 20:23:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055825; bh=8y110tx3r7t2HN8cFeLXNOvhc6Q0LIpe9KAMP9H6Dxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MKftoACtbORfdaZrySg+MAoeVaeYzG86qB/W/a0J/hTNkOIWm3acPdCNUCGfmUbuz fsUeBxt/g3GYuOBrwWy3m9P4l1f+nvmdj1iW7AmDKRxI4zbi8QmidmOsu507yHJOvN RrsTOqGqYoPiwwuHHqyTC2D6ttz8ov+u3/yVQjKM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Johannes Berg , Richard Weinberger , Sasha Levin Subject: [PATCH 5.15 278/846] um: fix ndelay/udelay defines Date: Mon, 24 Jan 2022 19:36:35 +0100 Message-Id: <20220124184110.524009825@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg [ Upstream commit 5f8539e2ff962e25b57742ca7106456403abbc94 ] Many places in the kernel use 'udelay' as an identifier, and are broken with the current "#define udelay um_udelay". Fix this by adding an argument to the macro, and do the same to 'ndelay' as well, just in case. Fixes: 0bc8fb4dda2b ("um: Implement ndelay/udelay in time-travel mode") Reported-by: kernel test robot Signed-off-by: Johannes Berg Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/include/asm/delay.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/um/include/asm/delay.h b/arch/um/include/asm/delay.h index 56fc2b8f2dd01..e79b2ab6f40c8 100644 --- a/arch/um/include/asm/delay.h +++ b/arch/um/include/asm/delay.h @@ -14,7 +14,7 @@ static inline void um_ndelay(unsigned long nsecs) ndelay(nsecs); } #undef ndelay -#define ndelay um_ndelay +#define ndelay(n) um_ndelay(n) static inline void um_udelay(unsigned long usecs) { @@ -26,5 +26,5 @@ static inline void um_udelay(unsigned long usecs) udelay(usecs); } #undef udelay -#define udelay um_udelay +#define udelay(n) um_udelay(n) #endif /* __UM_DELAY_H */ -- 2.34.1