From patchwork Mon Nov 8 19:51:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 12609041 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B281AC433F5 for ; Mon, 8 Nov 2021 19:53:19 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 69F50619E1 for ; Mon, 8 Nov 2021 19:53:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 69F50619E1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mkAhi-00050y-L8 for qemu-devel@archiver.kernel.org; Mon, 08 Nov 2021 14:53:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mkAfn-0003rW-Mi for qemu-devel@nongnu.org; Mon, 08 Nov 2021 14:51:19 -0500 Received: from [2607:f8b0:4864:20::52f] (port=34798 helo=mail-pg1-x52f.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mkAfm-0007BE-4O for qemu-devel@nongnu.org; Mon, 08 Nov 2021 14:51:19 -0500 Received: by mail-pg1-x52f.google.com with SMTP id j9so16144550pgh.1; Mon, 08 Nov 2021 11:51:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zj7AQVX+x87/tg9+P6j8jJmHy9YTaibeJh0b4X92FGc=; b=UrMSvfZdPECtZ+P9DrmfzqzzUidS2J4s0j8AzK4INzOJe/SfmNpgF5iAQI9Iy0VauV wa/9UZC0g+AX3aR8FZCKO9KaqB+7zB1Zhs7nfmzRhmInKrNBxlr0XC9jUzaYJaAyndif tMnTDQCP0/WvgYF5O/HYhmFh9bwFvkV3T6x1KQmHAXG1g/SVzKB1WdhGEkw7J6De3HAJ ffK3PRfANCsC7/PPGgMVXHrMmnbqZZTXYWv6oryjyvbk4BNLDNUNo9gJkZeLM78aXQhg gZowOTPb24xK2ZR8wRiwx4wbqgTtQ0Fq+bzNoAXvIqJF6qAOiQeDFA55HeaiQ3cD33ko 27IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zj7AQVX+x87/tg9+P6j8jJmHy9YTaibeJh0b4X92FGc=; b=2SQrxrI8aBDtthfUm7zRpr5JQX1NibH/v30oDfRS8cxTIufuIv3X9hDs6tqEwHkSIH 2jLqckNhb+KupTMhNzQhA3MV6E1Yk56n3tC3KvOTScaX1FTaHHK6bCZXL30PkOH8ivdD s7FoIwBgd7wF86NYPX0HmuZFgIxM772BNMZ4zAVGOB4QNyQgc7osp1jDZ0b3WtXJo/8q 8A2Ur0KzdNRus4BViKk6vhhBlckJ4uLLe8TMjVuvLz8yYEgHL953HLi2fBt8k/dcyzDA Z3iqXb8JxyWJKJaOVIBbeqNqmWfwWD4OnOUSNjA6+1NjgaNamKNrj+9RXL4xLPlASL7j HWKQ== X-Gm-Message-State: AOAM531Upi64au670W5gG4dgn+oB+D5kYugDf28e8A1HnYnTOTPsVp0F O+DUY0jdd3Tu4luFWwDaEpK/2gLu/Fo= X-Google-Smtp-Source: ABdhPJzjS2G00LbUcDwRw9H7ZQ1Z8+1IJWaagnY86gqEzWrXKACOBw4GijHREiK5pX2lbfngCpXu0Q== X-Received: by 2002:a63:6c43:: with SMTP id h64mr1494957pgc.306.1636401076210; Mon, 08 Nov 2021 11:51:16 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:a0f0::f94a]) by smtp.gmail.com with ESMTPSA id rj6sm177354pjb.0.2021.11.08.11.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 11:51:15 -0800 (PST) From: Khem Raj To: qemu-devel@nongnu.org Subject: [PATCH] linux-user: Replace __u64 with uint64_t Date: Mon, 8 Nov 2021 11:51:13 -0800 Message-Id: <20211108195113.1879836-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::52f (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=raj.khem@gmail.com; helo=mail-pg1-x52f.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, Khem Raj Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" uint64_t is available in all userspaces via compiler include stdint.h therefore use it instead of __u64 which is linux internal type, it fixes build on some platforms eg. aarch64 systems using musl C library Upstream-Status: Submitted [] Signed-off-by: Khem Raj --- linux-user/host/aarch64/hostdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/host/aarch64/hostdep.h b/linux-user/host/aarch64/hostdep.h index a8d41a21ad..34d934f665 100644 --- a/linux-user/host/aarch64/hostdep.h +++ b/linux-user/host/aarch64/hostdep.h @@ -25,7 +25,7 @@ extern char safe_syscall_end[]; static inline void rewind_if_in_safe_syscall(void *puc) { ucontext_t *uc = puc; - __u64 *pcreg = &uc->uc_mcontext.pc; + uint64_t *pcreg = &uc->uc_mcontext.pc; if (*pcreg > (uintptr_t)safe_syscall_start && *pcreg < (uintptr_t)safe_syscall_end) {