From patchwork Mon Feb 27 23:01:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657151 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp2616693wrb; Mon, 27 Feb 2023 15:03:39 -0800 (PST) X-Google-Smtp-Source: AK7set+1RlgeLx3eAUKGjNkxKsC6T3+XyW6cbNWRzMUy8gQn5Rx9uPqGRuZzPEKiMwn0HrVFE8CV X-Received: by 2002:a05:6214:d49:b0:56e:f417:2ad7 with SMTP id 9-20020a0562140d4900b0056ef4172ad7mr2481921qvr.14.1677539019043; Mon, 27 Feb 2023 15:03:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677539019; cv=none; d=google.com; s=arc-20160816; b=ltJAk7RapFidmj9aLtq8Yc+WtinwTHwoz54bQVlpJkociqnuVdUDCq6g+/XOR+Ry+f k29frIhtLcQwXQtRtIMIm4nNGA9zLT3FPGPkIEH4P3zxNdWRJrEVuft2iexLEY38anUj 6Wdu/MBdh1Db5P/iLXzKhTsjOaltUZpFj6LcQDHkRovK7CpKX9urQEtpiqCOkJZAlM9t FGI5lj5mJYMHgPXZ2pi6+gvMhCVNEcRTNqwiM3CZSXD7EHF8ODnjmQiWEeakJ0J4lIiN eNWI1Yw6tsby8mU3dflGCAmiY/8M3fhII6PQBmBb6EFNWQmFMje0r+tlnlk6U4cRogJn cwqQ== 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=UwykunfgJ4wHWdk7tq7XjhvoPxXNDp8LS8Cf559qMMI=; b=h04hV4bqkRbzMO0DIofdZZ/GuVnPwb/iWB4zCYyk8vrz3RVy68Qnx4mbHWrXV9+L8y 1RIHuxOznaJT47XBT4oFBHKuGc4sQO0nS6Y/o7rh8gPu/5Nlt2BHKMr+9+L4V4nWUj93 LbZsIc7gZvBDslKgh4LhdFqYMxGXb+R8+jkLl93/9bLVCLReeCkD0xtf0Mgv6tKhifdv HEYjhn5IhVJfDWqPwWRJZhUFQ5mR6EaRs5moDrPAKxu41+43IVcrhEgmBa1jRuc6Gqk5 GtW75jC879O2VQGhvLC38eXpqdB6tjcxAEHR8oJ0nMM3vnp5bfoJMHrMfNI2hMIfC1L9 O22w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dD/Hxj+i"; 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 l9-20020a0ce509000000b00571aaf9c066si7444292qvm.395.2023.02.27.15.03.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 Feb 2023 15:03:39 -0800 (PST) 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="dD/Hxj+i"; 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 1pWmVP-0008Fr-CR; Mon, 27 Feb 2023 18:02:03 -0500 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 1pWmV5-0007rL-Vw for qemu-devel@nongnu.org; Mon, 27 Feb 2023 18:01:49 -0500 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWmV3-000125-AG for qemu-devel@nongnu.org; Mon, 27 Feb 2023 18:01:42 -0500 Received: by mail-pl1-x62b.google.com with SMTP id c1so8515219plg.4 for ; Mon, 27 Feb 2023 15:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=UwykunfgJ4wHWdk7tq7XjhvoPxXNDp8LS8Cf559qMMI=; b=dD/Hxj+i4JO5E9/7bDVlNFbiuK2VqASHUD/v0D3HSg7yvIuvl2H+TnVnpwmmt1e/jU +0HrWsTnl+1PMWOseAJe7PuqtZCBeB8kjTn47dnGH3fi/v2XFcbGBlPqQ5UJxzo1XT5+ 531oqjqoxzZADgWOMYmgk+o9nTrCNYkkVNcBJYSKCepaihithtw7X/J7DWQeh6HB0HCI 26OulfIkqGFxqM+4Jfq5lSueMN3B/C4pP8ZO+6JvJRNJpa7IYQUYUPb1lRwzDQJHR1Zk EcBBOumzNkI8bDoOdXV420SwGRAZbJgzUeq98t2YwWmeSGsnwtk7joCvbKYMGr/G7kBc LHRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=UwykunfgJ4wHWdk7tq7XjhvoPxXNDp8LS8Cf559qMMI=; b=AT90moaY9MWOgL5Mp9ErIDx6+lYKxft+1JKnuDbg7C0tqUzzwg1JMZ2XbZarGbelEG rilx/ANM8D48lghXQPyvAL8kMqDS2AzJv/sOXMSXowZmI0pxvukGwQ7WcgYv5WbBYmWM +Hkk9bEw0AEBtqOzfymJyBEQijSqDa5WCLdX/U6VXS6ML0Avo1I/woMNG/SgWD8LrfBg b/6W1O9ivKFnCSAD5thv30RsLLmKCvLhSA0apAyBOSe2IhbeUe1KN3VojNOHcmnRNt0/ dfRNhZAbGt82izwc2Axt9ep7RJ3PG9RrIqTpXnzaPBTf+GAjzyMYy2NkKUYbU1RuopW6 hKbg== X-Gm-Message-State: AO0yUKVt3itDx1RoN1bCr15EnohTSud6ZUfHC/BfiFfiAbtWIzGEsF24 3MTtSlA3Ob/WEQ7xVSS/8vrpwdUTJQXTgsB7lGI= X-Received: by 2002:a05:6a20:8e06:b0:cd:1e80:587d with SMTP id y6-20020a056a208e0600b000cd1e80587dmr1482783pzj.23.1677538899838; Mon, 27 Feb 2023 15:01:39 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id u2-20020a637902000000b0050301745a5dsm4406130pgc.50.2023.02.27.15.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Feb 2023 15:01:39 -0800 (PST) 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 for-8.0 v4 09/21] target/arm: Remove __attribute__((nonnull)) from ptw.c Date: Mon, 27 Feb 2023 13:01:10 -1000 Message-Id: <20230227230122.816702-10-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227230122.816702-1-richard.henderson@linaro.org> References: <20230227230122.816702-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62b; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62b.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 autolearn=unavailable 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 0788c342b8..1a51add39c 100644 --- a/target/arm/ptw.c +++ b/target/arm/ptw.c @@ -32,15 +32,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[] = {