Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2604617lqp; Mon, 25 Mar 2024 04:16:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPMjMJVC6evJcoX7gQYQqPabHJz0j/Q33AE45S67FvxvSKY3hIswvC+3nIm4PKDuqKW7NCQAJKol8A0+08zltx4KYQlARaZS71eQYMrA== X-Google-Smtp-Source: AGHT+IGDhq6BPTZ0+kqIyy5eQcIW83fpAlH92lAIbc8qrOHNgUr9cdWz2xcx/vqQeP46dAu/Ahi2 X-Received: by 2002:a50:9547:0:b0:567:a318:ac0b with SMTP id v7-20020a509547000000b00567a318ac0bmr4625713eda.16.1711365414424; Mon, 25 Mar 2024 04:16:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711365414; cv=pass; d=google.com; s=arc-20160816; b=cKToSuGbzLoKrJdY9iazE8OYCkfpH4N4oanBCfwYckeX0zoM23CyXKsHdCyz/dN9vD Zhsk6TVazyMyfWc9mtCHCYnYV2eJqk1Mp7mrHyZLs6NOcjBrsV5HbZJrWHDtHUqHVmEk ShZYz73o1huVFKhhUlyAYzR9nArU26qGZsoVN7P05HAw6J9eyY8DMmp/Z4LASfI9hZBT S3JOE2TH21TQDVZFFkOVSoiybX5brKD6GQ6uLnSU9BMgngUQuoCzseEfEKHkVs97J981 GTp708Z8B7yTyRmGjYHP8x9IpRrDD0oXHEfVu+1mjxGs5gy/2x0Y57gcYW4jjxAQG/cr Hyww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Eee8soKtAtlZ2K9NhDpFbmii7r1AJQnQxLwYGij/WJA=; fh=M/eTbvlJL3eFybD2+7vlbXCiPr6gJiuQL5qmAEUGXGo=; b=W7CbUce653PdKFdi4VIr024yZGRKZ8L6OuT2jBNcaBq0/o7s6aJGsXuBtYDD/j1N45 hDX42v9v8WKEvuvm5hKArvZcpLHg8eW/dtvk3pu+PIJ8zezBEdNRUlS8CUNOoBny/9TB bsszNn0+ZOs5aX/gwHgjCgmua1EyCObCCW43Ck1ffbMMEf/1G8XgBIwu0+257M4BW0Sc fc53bTmcKNfusVCHE3yNNvHIwhAKulj5STFG8KQgmdkbk5jXE9wn+FHk/pzxUeGgCtFy XRK7z4xqdsJKZe5GvDh2nxPr2yQhlk6OhNmrVUFqhtRjqGCPQjMR+lRdIeVkHO8Ak6CK EhgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fbBmmgWz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 10-20020a50874a000000b0056be8ec9b42si2458241edv.416.2024.03.25.04.16.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 04:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-115547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fbBmmgWz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-115547-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-115547-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 291971F36398 for ; Mon, 25 Mar 2024 11:16:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E283D24A87B; Mon, 25 Mar 2024 02:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fbBmmgWz" 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 A28791EFE28; Sun, 24 Mar 2024 22:57:28 +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=1711321048; cv=none; b=nC86LOKB2CZpIB36J4XfwQO+2LhIIGzZHh5OyAcpMU9crfHJ9hPBbFCF9jBAiulL8VZPk3VUQhZ1MU6M+uV4bGcJnehKym8Lht7axohH3OR2fLJxCA3oMbQ3u+OCQU7vXe8gOtD4BQuMt17MG0WwvLSBcEwXZuhvIZX72ti45NA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711321048; c=relaxed/simple; bh=A+Xsytz4MnzIXKoWB28lM3p54mT0uJ1kwuAxvS4h74I=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K+jTcGbJF/z5xsk0iBoSwV8tjgU5EC3Y/Oq/VCqgVtvf9MpphwCk3q/Jj5oAZVnh7cicObV94NxKFk/b/gigNB7JPBZDgdaiZ1kLjX6aGgWD5jS3Wv9ZdR6FVVDopx1GrikUBWOBxAuzSsy7avDgTWwOxWcUyFO6s37KpB2yIYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fbBmmgWz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBA9DC433F1; Sun, 24 Mar 2024 22:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711321048; bh=A+Xsytz4MnzIXKoWB28lM3p54mT0uJ1kwuAxvS4h74I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fbBmmgWzXxpkZIpfoXja7RoH0LyRXEBUI7YFXb8/faXu873KF2nK53UHzUtTHhRnY OPa/8R0RTl0dNLJf7dYtb3pwfl6TYKC0ey1AI4eXcqwyNws9R+i7NjZ8qSzZ9DilWf F28G1aWcxn0Sy5mpJUpXVsga+iFtZNlCA5A2tjsO0lQ2CMk7J/RLk0lhqwnqu+KGaC T1JoDn+U4ma1SiZp3RQugiVTrbbl6Di+mrVHnvwkmheT6/KZD91HGocuilK1yVBxmF ZkjpYi+AUIqeyS/THntaiIV1UDU+vEZFMWCThA2icEaKewHWhvJKpI1aua8vE9p28m pozqSZMGvi31w== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Helge Deller , Helge Deller , Kent Overstreet , Greg Kroah-Hartman Subject: [PATCH 6.7 611/713] bcachefs: Fix build on parisc by avoiding __multi3() Date: Sun, 24 Mar 2024 18:45:37 -0400 Message-ID: <20240324224720.1345309-612-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324224720.1345309-1-sashal@kernel.org> References: <20240324224720.1345309-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Helge Deller commit eba38cc7578bef94865341c73608bdf49193a51d upstream. The gcc compiler on paric does support the __int128 type, although the architecture does not have native 128-bit support. The effect is, that the bcachefs u128_square() function will pull in the libgcc __multi3() helper, which breaks the kernel build when bcachefs is built as module since this function isn't currently exported in arch/parisc/kernel/parisc_ksyms.c. The build failure can be seen in the latest debian kernel build at: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=hppa&ver=6.7.1-1%7Eexp1&stamp=1706132569&raw=0 We prefer to not export that symbol, so fall back to the optional 64-bit implementation provided by bcachefs and thus avoid usage of __multi3(). Signed-off-by: Helge Deller Cc: Kent Overstreet Signed-off-by: Kent Overstreet Signed-off-by: Greg Kroah-Hartman --- fs/bcachefs/mean_and_variance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bcachefs/mean_and_variance.h b/fs/bcachefs/mean_and_variance.h index 647505010b397..056e797383fb5 100644 --- a/fs/bcachefs/mean_and_variance.h +++ b/fs/bcachefs/mean_and_variance.h @@ -14,7 +14,7 @@ * type */ -#ifdef __SIZEOF_INT128__ +#if defined(__SIZEOF_INT128__) && defined(__KERNEL__) && !defined(CONFIG_PARISC) typedef struct { unsigned __int128 v; -- 2.43.0