Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp156887lqo; Wed, 15 May 2024 10:13:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXP4xxzF684F1fMRQMq3lS8fJUM9wl0jqn7Zmb8aiAOktjJpt+r187L0IUn2+awrRBalkrO1vEBe3BFxJUA9hGRhfW5Pw5trBuphaHNAw== X-Google-Smtp-Source: AGHT+IHyMeB8NQLnuKiqISMJddBLluJ4GXImRysY0PBN1zskl18+6dGihQ5fQfUcvXQoC18aYX7o X-Received: by 2002:a19:761a:0:b0:519:e878:9385 with SMTP id 2adb3069b0e04-5220fd7c7eemr12676755e87.18.1715793218917; Wed, 15 May 2024 10:13:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715793218; cv=pass; d=google.com; s=arc-20160816; b=1AMAApACfHUFhdzhFYEIcURmorBse1nDmSn9t3j6AaWs0J+0rfev21Hp2RABSVTnk0 REDh8j+Y4z/xb4z/cj6cWl+JASJgdUO8t7rHo9UNGHvRiDhXJcKqb2IYQvYVoyYGgj6J hG/33gzw7SVL7tTDZBMpxnQSfpjPvZSzAPTQkxku7V71t/b+M+CshMGxOwttNT8y7W7j f7+B7SxK7GeMmTSfGUigXVfaYssWqqBxTW6FMtrj10iDilMWXnaHQQVPEA3Rn961ShNy ozmW+CL1mxqSmYdq6JwB1X+aqgqo4ueBs48oJ1n2ZEPGHkwXDBC2xH5RJfvnhEvtbwIU r/kQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=nG8JDEZluA+U+D68g8z0TeZdm/BEqT6rREHFgTIhPW4=; fh=OHt7GdznaRjGrynw55iLLXCN8u9Kt+B1zl6iH7Imw9U=; b=wRh4qcWB8ARbuOheLQDRtUmOlbe7/cb+0XggBDtjrfvwuWswVYrtIy2Ev6ozO5SAEU tLXOvWfdFxDsiCaxdTCzsSOuUTZmkwBMeZQPPm7fldxs0IJdOp8nBOqco+0fH8kIgQQS kqy9wJxtVme4PC9ZfRlHzpEp3t5FAbTCDBXb0xyZCnBrChoohp7cVNhDq9SSq9uEE9+E tGYkdcpeu4SBYhny8ik2nX9LA3Wr8er4ykyZyuoked28Vt0542CkEhsKjdauMgUF8fyP zZKZdxoBxPybppe3gSgeaw++StLaY+8HIeDgi1P5IJxBoqhVDFcXxOOsAeuMg+o5omE0 UWOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=lRLO2TL4; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-180194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180194-linux.lists.archive=gmail.com@vger.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 a640c23a62f3a-a5a17b21b66si715480766b.443.2024.05.15.10.13.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 10:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180194-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=@ventanamicro.com header.s=google header.b=lRLO2TL4; arc=pass (i=1 spf=pass spfdomain=ventanamicro.com dkim=pass dkdomain=ventanamicro.com); spf=pass (google.com: domain of linux-kernel+bounces-180194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180194-linux.lists.archive=gmail.com@vger.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 6A3F11F2353A for ; Wed, 15 May 2024 17:13:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B1C73032A; Wed, 15 May 2024 17:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="lRLO2TL4" Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EE9E36AF2 for ; Wed, 15 May 2024 17:13:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715793211; cv=none; b=OtCK2BmvuJ4YyKk4OtUnEcKKFgYKwBSG/WIlqpF6DJ2jivYdrVgu8rAERuCbCPGmHWSlhRhnWdlBUG9WDnSN4EMedLgOm/opO13Oy9Y3YoIoUqi5iRAFACdtuLW/xnMjW/USEsCVwtiym37dvN/VrsMhPHo1kH8Ikaip6b4jc70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715793211; c=relaxed/simple; bh=cvIV6f3GkDNs0QXxlEwPSB7F2//s6+TIdkMo1948Phs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=TZ62y/W3fseDialChrN1f01hKkm8oMSQlNOy6hoGtQHBV9I9T9xvOLGggYpCg2tjUHz55Tu8f26bLXlAdGAtHwXSFkdASO1fD3eVBPsEKYc3B+5FE2Jnp6latX4vl1YTmkgonFun1D8HWI62s/7EXnR/Ur4EtHvf9B8juI+NgAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com; spf=pass smtp.mailfrom=ventanamicro.com; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b=lRLO2TL4; arc=none smtp.client-ip=209.85.208.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-lj1-f170.google.com with SMTP id 38308e7fff4ca-2e576057c2bso74585821fa.1 for ; Wed, 15 May 2024 10:13:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1715793208; x=1716398008; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=nG8JDEZluA+U+D68g8z0TeZdm/BEqT6rREHFgTIhPW4=; b=lRLO2TL4neNYn3MR4tadXjLoCHx8YLpBoVc+hSH7+Ha3t4iIMGtaoXE+gHFxk7uPMM Bj1gVBe79RzIshkP0Bv0YEeteZyDOVoxENabG2J+L2cPFi8mhmQkzvfVw9kH3+yuRmlr LLNzIsMv7kqYhZUIjtJ2BFW2PTRqggKxQrePJbp47r0ryxx1YKSIjGsxN/Q7cUcZjJOX 3Aa4GJHkMR6EcPnoX0laDBo4Zja6qSyHL7J6TaYHouSU1oqGwNUEngIT/TloPPGZAsF9 suFTz6/Y1GH1A/GtjLkI5FfohO9DuRP7iNB3NHGPpv0sOzGafFahHnj1pkvUzyg1xxSQ /gGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715793208; x=1716398008; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nG8JDEZluA+U+D68g8z0TeZdm/BEqT6rREHFgTIhPW4=; b=eV7ssAseNK18tJg85rB0n8qwWmIXmgUEmfpSI69XUwWW9NIcWGWAiEuaCx/Khdv0Ha 6Qu8K3f7KOSUo3ZbDXNjA9m7f/MQlTtlJNmXYCN1rIi2QLFFbWCEEvIN23mhpMkZafUd zlOEri7obDoEJL2lwBwpZ1ZAG1xmhc6PEcsbPPRcd+lVsBZhow+Z4ljb4V28RtFVoCpz BEnQTGz9bVlU6wd3uqOo9PDLlGOXhfDGUDfGDdU0qeTOU6kBcSfCeXmvbRAV57hXGgco +PyTcAWPDm0dUI8cywK31GoZtehfOaogpOvC3JdWId1Pqnlx3YF2jEt/euvww/nrvpvO I7LQ== X-Forwarded-Encrypted: i=1; AJvYcCXdVCueQEXnk06noJQ4lV12qq0DO4kNj+VndGJMkTzTS25kAs4jwvEXqWkieyg8Gu9/l5A9/iyP2d1+q0TaUgZWmyYPdqIiZCjuRIoA X-Gm-Message-State: AOJu0YyPG6VEjMGSbyyfhOsN/1Xk0vNoULP1trjSf0FWAkeb2pP8SfKw y3hVcbtXxLLUOde/5BX7ru7/uqhJfOsaP2OyhO7FeEVeM/RPZE7eiyG7+9LDDiZojqlFsTLPLWD /ABlH+d1Vd8snsJJnDff/9vt1hblzmtkjTQ+p9w== X-Received: by 2002:a2e:7a0e:0:b0:2e2:466b:1a56 with SMTP id 38308e7fff4ca-2e52039e2c3mr125315251fa.53.1715793207549; Wed, 15 May 2024 10:13:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240515-zen-calculate-289cfb90cd65@spud> In-Reply-To: From: Anup Patel Date: Wed, 15 May 2024 22:43:14 +0530 Message-ID: Subject: Re: riscv: irq-riscv-imsic-early.c:52:9: error: too many arguments to function 'riscv_ipi_set_virq_range' To: Palmer Dabbelt Cc: Conor Dooley , naresh.kamboju@linaro.org, linux-kernel@vger.kernel.org, lkft-triage@lists.linaro.org, regressions@lists.linux.dev, linux-riscv@lists.infradead.org, tglx@linutronix.de, anders.roxell@linaro.org, dan.carpenter@linaro.org, Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 15, 2024 at 10:36=E2=80=AFPM Palmer Dabbelt wrote: > > On Wed, 15 May 2024 07:36:33 PDT (-0700), Conor Dooley wrote: > > Palmer, > > This is the issue I point out to you on the call earlier: > > Ya, thanks, I just hit it. Looks like it's a semantic conflict between > 21a8f8a0eb35 ("irqchip: Add RISC-V incoming MSI controller early > driver") and dc892fb44322 ("riscv: Use IPIs for remote cache/TLB flushes > by default"). I think all we need is > > diff --git a/drivers/irqchip/irq-riscv-imsic-early.c b/drivers/irqchip/ir= q-riscv-imsic-early.c > index 886418ec06cb..4fbb37074d29 100644 > --- a/drivers/irqchip/irq-riscv-imsic-early.c > +++ b/drivers/irqchip/irq-riscv-imsic-early.c > @@ -49,7 +49,7 @@ static int __init imsic_ipi_domain_init(void) > return virq < 0 ? virq : -ENOMEM; > > /* Set vIRQ range */ > - riscv_ipi_set_virq_range(virq, IMSIC_NR_IPI, true); > + riscv_ipi_set_virq_range(virq, IMSIC_NR_IPI); > > /* Announce that IMSIC is providing IPIs */ > pr_info("%pfwP: providing IPIs using interrupt %d\n", imsic->fwno= de, IMSIC_IPI_ID); > > as a conflict resolution, which IIUC should happen when Linus merges my > next PR. So I'll try and remember to call that out. Yes, your conflict resolution is correct. Thanks, Anup > > > > > On Wed, May 15, 2024 at 04:18:58PM +0200, Naresh Kamboju wrote: > >> The riscv builds failed on Linux next-20240515 tag due to following bu= ild > >> warnings / errors with gcc-13 and clang toolchain. > >> > >> Reported-by: Linux Kernel Functional Testing > >> > >> Build Log: > >> ----- > >> drivers/irqchip/irq-riscv-imsic-early.c: In function 'imsic_ipi_domain= _init': > >> drivers/irqchip/irq-riscv-imsic-early.c:52:9: error: too many > >> arguments to function 'riscv_ipi_set_virq_range' > >> 52 | riscv_ipi_set_virq_range(virq, IMSIC_NR_IPI, true); > >> | ^~~~~~~~~~~~~~~~~~~~~~~~ > >> In file included from include/linux/smp.h:119, > >> from include/linux/lockdep.h:14, > >> from include/linux/spinlock.h:63, > >> from include/linux/sched.h:2142, > >> from include/linux/ratelimit.h:6, > >> from include/linux/dev_printk.h:16, > >> from include/linux/device.h:15, > >> from include/linux/node.h:18, > >> from include/linux/cpu.h:17, > >> from drivers/irqchip/irq-riscv-imsic-early.c:8: > >> arch/riscv/include/asm/smp.h:52:6: note: declared here > >> 52 | void riscv_ipi_set_virq_range(int virq, int nr); > >> | ^~~~~~~~~~~~~~~~~~~~~~~~ > >> > >> metadata: > >> git_describe: next-20240515 > >> git_repo: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next > >> git_sha: 82d92a9a1b9ea0ea52aff27cddd05009b4edad49 > >> git_short_log: 82d92a9a1b9e ("Add linux-next specific files for 2024= 0515") > >> > >> Links: > >> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-202= 40515/testrun/23894295/suite/build/test/gcc-13-lkftconfig/details/ > >> - https://storage.tuxsuite.com/public/linaro/lkft/builds/2gUiKdxX7qM2= 7ritMJT5pRyZhyi/ > >> - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-202= 40515/testrun/23894295/suite/build/test/gcc-13-lkftconfig/history/ > >> > >> -- > >> Linaro LKFT > >> https://lkft.linaro.org > >>