From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2E388827; Mon, 23 Dec 2024 16:20:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734970833; cv=none; b=Yig8uY5jwrvRlTPHzhXZpSPoxzy4qgOCpltxwUinzSDqHZa/18zs40YLoVO7NqDUZAkYuEJGAG2IcIKjqwQpXfvhzNY5Gu5tPeWZcC1CIfAQJzCz5lEvx4roKDh297llE2lu1K7rIIDcew3W2lEcZoZMWdzkJa5qi4A40noDvpA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734970833; c=relaxed/simple; bh=6YXyz/solEWs1CY3RlvTI08WHD1gvfrudJ4MIIACxVo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WpF5gRY0I4j6cB80Oq3f0sUzWMetHaTJ6IFCSwBFVyXduyCAm4deN5gRfQCFJDMX9XD8LxelRCIPBYWNL/n8iXo1SmC1bVzQczgr3Ade+/83do5WwTvuOgidIWUmMEAzkWrKJ4FTn8Hj7siQh2A59fCJfcqu7aGJdMGfxWW5BVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fm00i1aZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Fm00i1aZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32AF8C4CED4; Mon, 23 Dec 2024 16:20:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734970833; bh=6YXyz/solEWs1CY3RlvTI08WHD1gvfrudJ4MIIACxVo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fm00i1aZJRfjI8MV98EC3sgbx+KLXAHza4A2RI2nxKB7eGLxIj5fgvZrVzEVf6wIG 15SKH24ZTGW/CLAnZ5nQAgxHe1+PLcf3dfZXrROK0Ytc6WllCMtRxaG1bp04cI7vjj IcUd9Faps/7Q59atNB+OF0NdNcZ4csyzBTMwh/9k= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Weining Lu , Li Chen , Tiezhu Yang , Daniel Borkmann , Huacai Chen Subject: [PATCH 6.1 65/83] selftests/bpf: Use asm constraint "m" for LoongArch Date: Mon, 23 Dec 2024 16:59:44 +0100 Message-ID: <20241223155356.142240354@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241223155353.641267612@linuxfoundation.org> References: <20241223155353.641267612@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tiezhu Yang commit 29d44cce324dab2bd86c447071a596262e7109b6 upstream. Currently, LoongArch LLVM does not support the constraint "o" and no plan to support it, it only supports the similar constraint "m", so change the constraints from "nor" in the "else" case to arch-specific "nmr" to avoid the build error such as "unexpected asm memory constraint" for LoongArch. Fixes: 630301b0d59d ("selftests/bpf: Add basic USDT selftests") Suggested-by: Weining Lu Suggested-by: Li Chen Signed-off-by: Tiezhu Yang Signed-off-by: Daniel Borkmann Reviewed-by: Huacai Chen Cc: stable@vger.kernel.org Link: https://llvm.org/docs/LangRef.html#supported-constraint-code-list Link: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp#L172 Link: https://lore.kernel.org/bpf/20241219111506.20643-1-yangtiezhu@loongson.cn Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/bpf/sdt.h | 2 ++ 1 file changed, 2 insertions(+) --- a/tools/testing/selftests/bpf/sdt.h +++ b/tools/testing/selftests/bpf/sdt.h @@ -102,6 +102,8 @@ # define STAP_SDT_ARG_CONSTRAINT nZr # elif defined __arm__ # define STAP_SDT_ARG_CONSTRAINT g +# elif defined __loongarch__ +# define STAP_SDT_ARG_CONSTRAINT nmr # else # define STAP_SDT_ARG_CONSTRAINT nor # endif