From patchwork Tue Jun 20 12:44:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 694506 Delivered-To: patch@linaro.org Received: by 2002:adf:e885:0:0:0:0:0 with SMTP id d5csp286302wrm; Tue, 20 Jun 2023 05:47:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kcDmJRKnjWEigNJhyQaWF7BkiJhKDc6NBdCq1aPRs5ujYgQVbi1KcGCT0IfkL5wNyme2A X-Received: by 2002:a1f:c1cf:0:b0:471:1785:e838 with SMTP id r198-20020a1fc1cf000000b004711785e838mr3743961vkf.2.1687265243580; Tue, 20 Jun 2023 05:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687265243; cv=none; d=google.com; s=arc-20160816; b=Ud3nK1gUPTDg4HMSe+KeaF3Cdg9s2Vz9msvlfO2DA2jogGndn6v5uC9aMsU49885ZP g2+EfKnRApXM+1jGOi9uFrtsTGLVoHxYPPP3gBNSJVIx7UN4dTfPbUkiWpWUK5O9nAkr 3r10LPBnetr1ypKhQFa4o1HXCq8CsP50VNCQmRPAA7O1x2dau1Uw0+7KGMtSZIHuKk8P ooPClKf8FCEzdK08iKRHI0GvyvTRfWvQjaXcpZOOU8f4SLSqkUuB4nrJsEZHdKx7JDr7 VyPJGreb31YgVAQAHLctH0piee8XzQTEhPGNkheXlfV9ffa2DjTUECFwIK1gFxQ/utHA W7QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=oYM1MGsrvUKsckHAPaAPGoH4M7K9gyTZzZ7Te/btT8c=; b=SW/mb5OxDg8U57AWErh47lDox129tR/UwQCpO4l6fu+I2mOhbrbIYl8livZ+hnfCaa 2tdpzYJSPubW0+qWu1TmJaz1BOl7T+qGXjYvfBRTVuLw6mDgI1bkj2NihYrHJk6Cxm1Z gY3jELmhOiJymYs45E273qihXsAXarKkiwS67SButIsap8g29xl+cX+Qzsg099ab/7yh z18YHKP4FwB5n7cvF9s+D6eIUyB4a4Ph5hWrFou5DUHvjqr8Xy7/mUiQHrZofdVU9U7g PnrjUpjs5OoVjYaYearUY0TwibisCuqv+muboM/eOY1WB24PLB1RonmQWr0mpUzelA+M uLNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SPEhzb+A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id hu3-20020a056214234300b00626287fd4e5si803409qvb.273.2023.06.20.05.47.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Jun 2023 05:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SPEhzb+A; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBair-0001ZA-Gh; Tue, 20 Jun 2023 08:44:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBaio-0001VU-Dq for qemu-devel@nongnu.org; Tue, 20 Jun 2023 08:44:34 -0400 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBail-0001x2-G3 for qemu-devel@nongnu.org; Tue, 20 Jun 2023 08:44:34 -0400 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51a2160a271so5888082a12.1 for ; Tue, 20 Jun 2023 05:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687265069; x=1689857069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oYM1MGsrvUKsckHAPaAPGoH4M7K9gyTZzZ7Te/btT8c=; b=SPEhzb+AdollQEdp3HX3JQng19/ma3XyjwJu/ePJtiDKhVTRacJ6/IdiRWMmq7MBQS 8dJxjPl5dntKq9/RKDy5u+jxkbxUVZD0yjUrag1fhz4PpMoiEDzIc2h1tqfEtOaw4y1k BLrRKX+q/rpqmRur/b43tKby7fEvfYoJgNNmMX2aY/Mk/CNSfiK0gmvaggfsmg7csMsb Dh74wMgm9LAIrsUAO0El4YiB9l7KJ/X496LD2S66hx3utVPznB77ZY9RLxW2dGoz0dw3 hDUMCWeYBKZT33If0FObhaue+nYHgmXNlav3QZ+YXbWxpYpM+qYOXkNbrBYC/3ZJYm+z t3tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687265069; x=1689857069; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oYM1MGsrvUKsckHAPaAPGoH4M7K9gyTZzZ7Te/btT8c=; b=CwvLrgyvXafQMUhQc3ngJNqyKulzKDao38nDwfRJ3NggBcEwft/4qpDAEq3N6+7rO3 fa+a2/jMx5su/PU12a3lGiEzBW2joT7wL941u9UzoQA+FgV09GZZqY/CqrX0jzYMSAz7 Pkky4YXwzKuB1+hvSdhw4Y5mMSb1M8nj0t6UmyGP9cj1xMf78BFzsVRtbWEBRnYva2Vn 1Jrd7BykLJAGYeYN/eZtAWA+3y51NCuQbgtdoLS4OArcoXNty+Ys7WEIXA3H+tcJzufP mzE7Uhug7VW8jSEOxF7B6Lu3P8cvgwv9/TnLThXTWSwhufBgexhFJONtWBzoEvYgvhaH Nruw== X-Gm-Message-State: AC+VfDyiWDhGXZpwrx5BIzSWgy3lIi1p3NA6nRztDfdTDj4nOaZiK+Nf 72bz/xbb3J2zurW+pOdgpdD5DJGbTChEnEAJxcuY3I9c X-Received: by 2002:a05:6402:1b0e:b0:514:9df0:e3f3 with SMTP id by14-20020a0564021b0e00b005149df0e3f3mr9365963edb.0.1687265068932; Tue, 20 Jun 2023 05:44:28 -0700 (PDT) Received: from stoup.lan ([176.176.183.29]) by smtp.gmail.com with ESMTPSA id w9-20020aa7dcc9000000b0051a313a66e8sm1142541edu.45.2023.06.20.05.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 05:44:28 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v5 09/20] target/arm: Remove __attribute__((nonnull)) from ptw.c Date: Tue, 20 Jun 2023 14:44:07 +0200 Message-Id: <20230620124418.805717-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230620124418.805717-1-richard.henderson@linaro.org> References: <20230620124418.805717-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-ed1-x532.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org This was added in 7e98e21c098 as part of a reorg in which one of the argument had been legally NULL, and this caught actual instances. Now that the reorg is complete, this serves little purpose. Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/ptw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/target/arm/ptw.c b/target/arm/ptw.c index a742bc1826..f7cbb984f9 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -34,15 +34,13 @@ typedef struct S1Translate { static bool get_phys_addr_lpae(CPUARMState *env, S1Translate *ptw, uint64_t address, MMUAccessType access_type, bool s1_is_el0, - GetPhysAddrResult *result, ARMMMUFaultInfo *fi) - __attribute__((nonnull)); + GetPhysAddrResult *result, ARMMMUFaultInfo *fi); static bool get_phys_addr_with_struct(CPUARMState *env, S1Translate *ptw, target_ulong address, MMUAccessType access_type, GetPhysAddrResult *result, - ARMMMUFaultInfo *fi) - __attribute__((nonnull)); + ARMMMUFaultInfo *fi); /* This mapping is common between ID_AA64MMFR0.PARANGE and TCR_ELx.{I}PS. */ static const uint8_t pamax_map[] = {