From nobody Wed Nov 27 10:25:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1698747252; cv=none; d=zohomail.com; s=zohoarc; b=YyIZhI5JczupviJf/u58RRx/Gd+xlPB5eI7MS3UaZPLiJC8fb5UbjLE4PcBca/rC02Il/NjNfhWmxy56IMEeXJl1GkptxwCugj8MgyKRJpi8KiCsh/5hyXfN9gNkfJ9AL8SI/Brcoq7+CHuxVxRzKQOKy3xIbrT1m80sYs8zK88= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1698747252; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/+UGoB/YVkCPzNK+d54Zw2EOnbrcrfW9mhrCGDpErfM=; b=KO2Kih613d/IEnumanih0zJLAC+QIBSzDa+HUqFOiHVIzo1n4YPRDh0+mTjhuWA2kyr7EnYqc7btLA4jzY7lDyVcs+hDU2nAmSZukC3qNvIe0nDvmei2zXy6EEDOt2pDKi6BERO4MXTuyz3zLAZOXiIZvMWLhmiD/LPn5Ax8L2s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1698747252498331.37355212985653; Tue, 31 Oct 2023 03:14:12 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.625592.975023 (Exim 4.92) (envelope-from ) id 1qxlkk-0003E8-M3; Tue, 31 Oct 2023 10:13:42 +0000 Received: by outflank-mailman (output) from mailman id 625592.975023; Tue, 31 Oct 2023 10:13:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qxlkk-0003Dz-Iz; Tue, 31 Oct 2023 10:13:42 +0000 Received: by outflank-mailman (input) for mailman id 625592; Tue, 31 Oct 2023 10:13:41 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qxlkj-0003BG-9k for xen-devel@lists.xenproject.org; Tue, 31 Oct 2023 10:13:41 +0000 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [2a00:1450:4864:20::133]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 29c4d5d1-77d6-11ee-98d6-6d05b1d4d9a1; Tue, 31 Oct 2023 11:13:40 +0100 (CET) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-507bd19eac8so7849208e87.0 for ; Tue, 31 Oct 2023 03:13:40 -0700 (PDT) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id e3-20020ac25463000000b005041cc98273sm164308lfn.300.2023.10.31.03.13.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 03:13:39 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 29c4d5d1-77d6-11ee-98d6-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698747219; x=1699352019; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/+UGoB/YVkCPzNK+d54Zw2EOnbrcrfW9mhrCGDpErfM=; b=c4cwaa+zWFys8z/zaAiG0yuoPQt1YKHmA9CX52t3WGajZecJ1HA5NqICdFISHDh7JS 96o5Wj+fDQBkVfD4L0LpIVR0ARE1jv75rgj98avLT1vrDryaDlwTfS9gALRV2le8dwco y1/AQhoiC7U/dZw4Sl6UqKKzEoXxTiuNNGwfuhMSUQ0BZvfO44I8c6dTKF0lVp5KWXJk 90vSfYHKPcv/S+RfmDfc4vFVtaJYyJ6hs3UPf/dbRn8qAToO7L+NbmZUeWkGHr3G09/j HSt8GNvWcOChl1ReyFnsG5wHyO0O/Ik+s3n81aRJz5kzyc+5J+DrxxYdfarokFyJL0O6 MD+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698747219; x=1699352019; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/+UGoB/YVkCPzNK+d54Zw2EOnbrcrfW9mhrCGDpErfM=; b=ECFbyktYyEaLZ4+V2hpkCVIEu4FHplMiWIaX6gpTHTRiERJMz57MILBw9m5foRgoGZ vGuMQ5L7Tph4bWCMdcK5ROP55WIC2vRDiYTA+qVKnucI7ivLIdo/QGgN3WE/mmiDM14D Eurdn+Zgn1bdxyjudVKo13IpsJiEDG3/ahLvGYKTphdau+HnNSAErO81eTDBW3T90mBE WZIXtLkjJYFI9kAmJt8H72k675aWfdlfkVT/rT/TIScV8Jhqma8y9toRw3C09J8XEzYl /hZ17G7+SzILITnJLEfbsFLYCpLY4qPZvNxHiX6u8/0CreIfwz4qga6/717B9ET/AJ3g JxkQ== X-Gm-Message-State: AOJu0Ywovz/oVi/2XfAI/GC3pRvPE/CbaNYr+pYnUc9ZZ8QyvvgN7og8 wQgLjI1wbdd3ZdkHjhjnXzeJ4mzNpe8= X-Google-Smtp-Source: AGHT+IGydhocY4QehMNETMHftdd6w2MVIet3NE6G8sfD8CyNCL8MBQ6QAw5ItLTb5+5oa0xodIel5A== X-Received: by 2002:a05:6512:488a:b0:502:d743:8a6c with SMTP id eq10-20020a056512488a00b00502d7438a6cmr8517233lfb.9.1698747219268; Tue, 31 Oct 2023 03:13:39 -0700 (PDT) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Jan Beulich , Oleksii Kurochko , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Wei Liu , Bob Eshleman , Alistair Francis , Connor Davis , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Subject: [PATCH] xen: remove Date: Tue, 31 Oct 2023 12:12:42 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1698747253154100001 only declares udelay() function so udelay() =C2=A0 declaration was moved to xen/delay.h. For x86, __udelay() was renamed to udelay() and removed inclusion of in x86 code. Signed-off-by: Oleksii Kurochko Acked-by: Julien Grall Reviewed-by: Jan Beulich --- xen/arch/arm/include/asm/delay.h | 14 -------------- xen/arch/riscv/include/asm/delay.h | 13 ------------- xen/arch/x86/cpu/microcode/core.c | 2 +- xen/arch/x86/delay.c | 2 +- xen/arch/x86/include/asm/delay.h | 13 ------------- xen/include/xen/delay.h | 3 ++- 6 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 xen/arch/arm/include/asm/delay.h delete mode 100644 xen/arch/riscv/include/asm/delay.h delete mode 100644 xen/arch/x86/include/asm/delay.h diff --git a/xen/arch/arm/include/asm/delay.h b/xen/arch/arm/include/asm/de= lay.h deleted file mode 100644 index 042907d9d5..0000000000 --- a/xen/arch/arm/include/asm/delay.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef _ARM_DELAY_H -#define _ARM_DELAY_H - -extern void udelay(unsigned long usecs); - -#endif /* defined(_ARM_DELAY_H) */ -/* - * Local variables: - * mode: C - * c-file-style: "BSD" - * c-basic-offset: 4 - * indent-tabs-mode: nil - * End: - */ diff --git a/xen/arch/riscv/include/asm/delay.h b/xen/arch/riscv/include/as= m/delay.h deleted file mode 100644 index 2d59622c75..0000000000 --- a/xen/arch/riscv/include/asm/delay.h +++ /dev/null @@ -1,13 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* - * Copyright (C) 2009 Chen Liqin - * Copyright (C) 2016 Regents of the University of California - */ - -#ifndef _ASM_RISCV_DELAY_H -#define _ASM_RISCV_DELAY_H - -#define udelay udelay -extern void udelay(unsigned long usecs); - -#endif /* _ASM_RISCV_DELAY_H */ diff --git a/xen/arch/x86/cpu/microcode/core.c b/xen/arch/x86/cpu/microcode= /core.c index c3fee62906..48822360c0 100644 --- a/xen/arch/x86/cpu/microcode/core.c +++ b/xen/arch/x86/cpu/microcode/core.c @@ -23,6 +23,7 @@ =20 #include #include +#include #include #include #include @@ -35,7 +36,6 @@ =20 #include #include -#include #include #include #include diff --git a/xen/arch/x86/delay.c b/xen/arch/x86/delay.c index 2662c26272..b3a41881a1 100644 --- a/xen/arch/x86/delay.c +++ b/xen/arch/x86/delay.c @@ -15,7 +15,7 @@ #include #include =20 -void __udelay(unsigned long usecs) +void udelay(unsigned long usecs) { unsigned long ticks =3D usecs * (cpu_khz / 1000); unsigned long s, e; diff --git a/xen/arch/x86/include/asm/delay.h b/xen/arch/x86/include/asm/de= lay.h deleted file mode 100644 index 9be2f46590..0000000000 --- a/xen/arch/x86/include/asm/delay.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef _X86_DELAY_H -#define _X86_DELAY_H - -/* - * Copyright (C) 1993 Linus Torvalds - * - * Delay routines calling functions in arch/i386/lib/delay.c - */ - -extern void __udelay(unsigned long usecs); -#define udelay(n) __udelay(n) - -#endif /* defined(_X86_DELAY_H) */ diff --git a/xen/include/xen/delay.h b/xen/include/xen/delay.h index 9d70ef035f..a5189329c7 100644 --- a/xen/include/xen/delay.h +++ b/xen/include/xen/delay.h @@ -3,8 +3,9 @@ =20 /* Copyright (C) 1993 Linus Torvalds */ =20 -#include #define mdelay(n) (\ {unsigned long msec=3D(n); while (msec--) udelay(1000);}) =20 +void udelay(unsigned long usecs); + #endif /* defined(_LINUX_DELAY_H) */ --=20 2.41.0