Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3702206pxb; Mon, 24 Jan 2022 15:48:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzzV262qaq4fSEZlFo/himTJxEjmVxINdPV2kEBb/cGw6nmWskMz+JjOgBEoEz6PItSpchE X-Received: by 2002:a63:7c51:: with SMTP id l17mr13538865pgn.469.1643067966523; Mon, 24 Jan 2022 15:46:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067966; cv=none; d=google.com; s=arc-20160816; b=WecgnvVNE39dEQF8TtleoqBDgSdYBkEDrkPiLX/rKif06Ozlqa1LXVX+2huPT8cyAa Se6z5WM4NzKghowiq6hgNfD1zz4/f/YP22WtuwtWAWvgxKCwFTClft1HxvU5/BifDysh bVgJAiq2w6C7rMnVLpwqJEZKTMJwxCVEdFvjH97CwiBCWgEs1sJky131RpB1TtIHnXLY iE6xArJBfmwCTyhWsmr0LCn2z6zfILDS7mg7lkQgbZfs60WX4padeMH8pU81AoF4ruok BaMVUVqK78cyg3vU3n8jeZfmE8mYz74yDubZ9vVxn1ANQQt1uzhxARrsbWas9V9s8qBP 6PXA== 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=vQk+fwH1gO2hVYzrSFCCHxDhqjLy5CNtTL6bwgq/UxToOLwpj2LDZRnzYkqXd4Bj3q VjtbOZbrCKnHGr1Ggyn5zZSJPZM42mb1MjSgXUmS82GDQUzA10iVdDxCjeVIQP7SU6zH EuXHFMbIlzvUQ1iKbDNC8GsryGtLYhKn5BQbTRlUyqmhR920mx5wW1n51T/Xj48vZLLO zM/iR0IGV6tdSNTxgPD8KyTC78n+YNOQqxh5VfcFmvvtc+YggXJB0wmYI4IRdW7mGpjg tZcl62QTaN2JkeSD3Xe0SSPHlzE1jwQEc4thvCLg7+BHTco7cmnc+M337uYqyOk+XSAr +JWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2NBjjzo5; 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 s8si15461076pgg.581.2022.01.24.15.45.54; Mon, 24 Jan 2022 15:46:06 -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=2NBjjzo5; 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 S2360652AbiAXXhJ (ORCPT + 99 others); Mon, 24 Jan 2022 18:37:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382588AbiAXW4D (ORCPT ); Mon, 24 Jan 2022 17:56:03 -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 84BDEC055AA8; Mon, 24 Jan 2022 13:11:08 -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 21C3C61469; Mon, 24 Jan 2022 21:11:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4302C340E5; Mon, 24 Jan 2022 21:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058667; bh=8y110tx3r7t2HN8cFeLXNOvhc6Q0LIpe9KAMP9H6Dxw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2NBjjzo5WiwdzH7lKGhCoTS3aDOmllDMfHpNR3oB5l7rN8k30WTR4oO4YVlsIcIb4 FeYUtkM/x9f9Br926It3FhRJ4sOkLhPE2tFiLetQR++pTd8y21G30N0qz75JCE7xA6 cA4syJZshF/BKhyDc5ZBNXJJ7B2CWdcEdzK7H3yA= 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.16 0336/1039] um: fix ndelay/udelay defines Date: Mon, 24 Jan 2022 19:35:25 +0100 Message-Id: <20220124184136.599342727@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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