Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6353470rwd; Mon, 19 Jun 2023 06:13:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YVE1PPXBftbAKroGXVzfzJtFvM9MtKqobAVlIPFvD1xog0+LEwENqE6+cye6h/Fsa9Tcn X-Received: by 2002:a17:902:ec90:b0:1b2:450f:99e with SMTP id x16-20020a170902ec9000b001b2450f099emr8664696plg.46.1687180397576; Mon, 19 Jun 2023 06:13:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687180397; cv=none; d=google.com; s=arc-20160816; b=bGyUNIcHhVb8RYjT0L5hpnd0XZhoZ5C8HBxd1byHu5sSo9ZQ+p1S+hJHRoavN5/Lrx 8+/AGj+XG+izdV6GF+sUItpRSkGCS825sZtCme//zo3b7aJsTy+L3egAsWWDqFNEWh7Q VDOdp7dKlWgvePQ3JBi83NF43FsPXpxniQ2Ju9brFnm7mI9opa7caQidLN8zgNfEmIyR 2MYuxtilRG6lTZIDOuQeDPktP3Kq0Z4K8cVEF0lgOh9hmTs1Xpukm1xslryU6DH8i63M j8gXUU7eskGp0c4zpKgBmsd1k4lz6igDQadTwUZHJ5qAHodLj82lcyRoo/Cget8IcJ4g haKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AzbZZy3BJgSDueDGfrFEwOJZAFzsD+TV3O5pUHdzWBU=; b=WoS4jFrT9YLyzpVQTSxfbq/EAF0AYLYGFTtK0CBhb68PzkFH2TFrX4Q3E08QhLuIdN GmMYz7xYQG1002jcttQPbOMlFTtLSuze9AfrspKQzMkB/+SIlpJDfzTJU8z/654h1fWz prKW5rWeumwMWqGY7+PlTCOeWTpgRJswfeUBTZGejj8JUYNLwn6/8SFN02meh9LlqYFP du90QEl1QJgNc+AzilLeCmZU81J5elK8knzHlKAvBBSXwXPJXTYPkkt7+orQa5vai7+z umkdvmQ1yQk3Af7BVHnGrHkUgaQwT5j6uvb6LCbSVdnIBv5ssWn/E5QnQY2RbfcQjhVV mMYQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p12-20020a170902e74c00b001a9b4bda723si18135481plf.421.2023.06.19.06.13.04; Mon, 19 Jun 2023 06:13:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231386AbjFSNAz (ORCPT + 99 others); Mon, 19 Jun 2023 09:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231491AbjFSNAs (ORCPT ); Mon, 19 Jun 2023 09:00:48 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 17A401738; Mon, 19 Jun 2023 06:00:37 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3B3BE12FC; Mon, 19 Jun 2023 06:01:20 -0700 (PDT) Received: from FVFF77S0Q05N.cambridge.arm.com (FVFF77S0Q05N.cambridge.arm.com [10.1.36.163]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 03FA23F663; Mon, 19 Jun 2023 06:00:34 -0700 (PDT) Date: Mon, 19 Jun 2023 14:00:32 +0100 From: Mark Rutland To: Naresh Kamboju , Anup Patel Cc: Linux-Next Mailing List , open list , clang-built-linux , lkft-triage@lists.linaro.org, Anup Patel , Atish Patra , Arnd Bergmann , Anders Roxell Subject: Re: next: arch/riscv/kvm/aia_imsic.c:237:9: error: call to undeclared function 'arch_atomic_long_fetch_or' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 19, 2023 at 03:27:47PM +0530, Naresh Kamboju wrote: > Following build regressions noticed on Linux next-20230619. > > Reported-by: Linux Kernel Functional Testing > > Regressions found on riscv: > > - build/rv32-clang-16-lkftconfig > - build/rv32-clang-16-tinyconfig > - build/rv32-clang-nightly-defconfig > - build/rv32-clang-16-allnoconfig > - build/gcc-12-defconfig > - build/gcc-11-lkftconfig > - build/clang-16-lkftconfig > - build/rv32-clang-16-defconfig > - build/gcc-8-defconfig > - build/rv32-gcc-11-lkftconfig > - build/clang-16-defconfig > - build/rv32-clang-nightly-allnoconfig > - build/rv32-clang-nightly-tinyconfig > - build/clang-nightly-defconfig > > > arch/riscv/kvm/aia_imsic.c:237:9: error: call to undeclared function > 'arch_atomic_long_fetch_or'; ISO C99 and later do not support implicit > function declarations [-Wimplicit-function-declaration] > return arch_atomic_long_fetch_or(val, (atomic_long_t *)ptr); > ^ > arch/riscv/kvm/aia_imsic.c:237:9: note: did you mean 'raw_atomic_long_fetch_or'? > include/linux/atomic/atomic-long.h:1087:1: note: > 'raw_atomic_long_fetch_or' declared here > raw_atomic_long_fetch_or(long i, atomic_long_t *v) > ^ > 1 error generated. It looks like this is because: 2f68d5420412040e ("RISC-V: KVM: Add in-kernel virtualization of AIA IMSIC") ... added a call to arch_atomic_long_fetch_or(), but we've reworked the atomics in the tip locking/core branch such that arch_atomic_long_fetch_or() doesn't exist unless provided directly by the architecture. Does this actually need to be arch_atomic_long_fetch_or(), i.e. was there a specific reason not to use atomic_long_fetch_or() here? If not, then please use atomic_long_fetch_or() -- that'll work before and after the locking/core changes. Otherwise we'll need to figure out how to handle the transient breakage. Thanks, Mark.