Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1867921rdb; Tue, 20 Feb 2024 09:12:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVeMfEDy4eqjr7JPlqzEUQN8pk1CqV1EZgc6ZLL4bFIBgJbwAdpqPCGahPjTGDphTmFe7ZaPLXtb2aFBDDPSQofR7qcrs7zK/zJdNdneQ== X-Google-Smtp-Source: AGHT+IGFWp5cXD09CI/41wKOLWGwM7KnSyMWzltqhPgEHNUZNBWqCNuC0s9yelyfdTuE6+jOfd27 X-Received: by 2002:ac2:5970:0:b0:512:9c8f:d4c5 with SMTP id h16-20020ac25970000000b005129c8fd4c5mr7192328lfp.26.1708449174776; Tue, 20 Feb 2024 09:12:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708449174; cv=pass; d=google.com; s=arc-20160816; b=j1NFMcDfIICaCobCeuc0TsUvCvvp5gWaPw10+Rmi+ZbVKjhaN3bUSruMcGmzJOYigI O4XFyVekspl6EEQBWxo17BSUhQktgHGjYHM0TqqHhKcFEyOzZ53sc54rLjav49D/qyaU v+SlcecMrpSngzB1bgfc/WLE/uI0MUrbJlFg5nES2v/2gcfYc//k/h3GilNf4pgEhNkb gqydfORC3YI4M9LHagmoA0LDhPPcTw3y6Mkn/4Q30ToRaFg92qE9AYcmfj2z15cQ3Vrf vAgABt5o4j3h/3VnQlcUK0vTY2ZvcXttoPg9DjiQrMpZjexX3AlW7ETqyTOVzyLg26jo xPbw== 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:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=mSHAfYIgTOaEzn4d0Y9lfsKjNJQSBoDQ7KhW/iaFfb4=; fh=qvEeX5v6lUuBlXo+TgVhXfVcrz5W5Rjn4IHIHYR5hPU=; b=edJyHZ6IRiUwfgepJiFRarF2F4Yd353bkHg/6bcLfsdjC/Zf+JkXFS31JkqXMK1CRD PS2XXAfm79JEQvy42eY1L86D2fEgcQCBQlg+QBrAws0yIooWvCmeYTLKCJzpd2GGcRnQ x/ln3wVf3YKfRldcYVWFcgaKiHuhnnDLI2Rt+IARhWV/kMY3h5RvUb0PLY9HJtqXG2YW 9psTcny3z6jpcRgFptZg5brj3FTr4qX4mVn9Ur2BTD7Q6Oj7SAXcAvt52d74nfUgP2L+ 5c/Ld6NGo+GTnkbfA9ohAQP6Zfk1FXC9bxsU8wUg22BP0BsqAUY42IUmTQitMSXHHyDl LyEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=A2fWMjB1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=zXskBNwp; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-73409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id nb33-20020a1709071ca100b00a3e3fab918csi3081084ejc.428.2024.02.20.09.12.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 09:12:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=A2fWMjB1; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=zXskBNwp; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-73409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73409-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 83E2F1F237A6 for ; Tue, 20 Feb 2024 17:12:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9BF576C65; Tue, 20 Feb 2024 17:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="A2fWMjB1"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zXskBNwp" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 8DF85768F3; Tue, 20 Feb 2024 17:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708449166; cv=none; b=WfMj83LFitd39iYEYXgjoiiZXw0pXAzKSBA0VGJPjNPH4woioTeFN5Drie5mUwZUhZBtjqeRYuy0yHaNkvLNGvrIGYIUckUUEVHPWPjUvYgUmdJuW4E57wXUOdtQO8JIJ40NY/mSS3F0j8OvsxuSreCqux5O3YrOzb+1jgcPjUY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708449166; c=relaxed/simple; bh=mzwyhdq+fMgEafvqseGJTXtDYih/dQ4/kROp9V9RbeU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=CXgaWHH9+n9d/YvFP8xut2ROpGlTpa1+I2y7UlbduEDB505d9q4MSHfWIaq45LcZes/JM/eKFpHcv3rHR+Bglo1iQFJY+VffaLPpGgPNRS80lcvFOMJyP2TTJBVZxq3/47E5myiXzrJQuFTba8R9lAOvTgTKgB9o7I5prJ5NQlA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=A2fWMjB1; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zXskBNwp; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708449162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mSHAfYIgTOaEzn4d0Y9lfsKjNJQSBoDQ7KhW/iaFfb4=; b=A2fWMjB1JjQPtT1dSVxjD+FBAizT/AOYIkLhHJP4m2JnRw0E4Qb9bBrBlQnxy2fWBQMpWR 7Apwn1AMbyR517PEwMC9+K4ePwHYVoU+aCtOWWiX/3VgYXDUc0MXcC0vZDmLYG/LChTibe hEFR7LGGNiziY9NHM39vIFlSQJmPNQNHpsosbrLLSrn88bK+JVo+kZojWGbdW8+ZZ/apdg HAwZMZQaRZsFEszqyBElRvVYfcLmZPE0u86PK/tMd9C5XcPxaCPwar555zcilXIUdXuQRZ JMDGvZhyS2ceh5rPZa6r+o38lr+B6I41E3QYBjd5AHnnq+2krsxtY+jRxtTMuQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708449162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mSHAfYIgTOaEzn4d0Y9lfsKjNJQSBoDQ7KhW/iaFfb4=; b=zXskBNwpTlyCapqr81po5bvbMgoWyomCGNp6X1ypT2UybdZ24qQN5BRov2Mvl3dWK+/Gwj PqXrEsIBOCvzzlDQ== To: Anup Patel Cc: Palmer Dabbelt , Paul Walmsley , Rob Herring , Krzysztof Kozlowski , Frank Rowand , Conor Dooley , Marc Zyngier , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Atish Patra , Andrew Jones , Sunil V L , Saravana Kannan , Anup Patel , linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v13 07/13] irqchip/riscv-imsic: Add device MSI domain support for platform devices In-Reply-To: References: <20240220060718.823229-1-apatel@ventanamicro.com> <20240220060718.823229-8-apatel@ventanamicro.com> <875xyji7mc.ffs@tglx> Date: Tue, 20 Feb 2024 18:12:41 +0100 Message-ID: <87msrvgiuu.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Feb 20 2024 at 22:22, Anup Patel wrote: > On Tue, Feb 20, 2024 at 7:02=E2=80=AFPM Thomas Gleixner wrote: >> >> On Tue, Feb 20 2024 at 11:37, Anup Patel wrote: >> > +#ifdef CONFIG_SMP >> > +static void imsic_msi_update_msg(struct irq_data *d, struct imsic_vec= tor *vec) >> > +{ >> > + struct msi_msg msg[2] =3D { [1] =3D { }, }; >> >> That's a weird initializer and why do you need an array here? >> >> struct msi_msg msg =3D { }; >> >> Should be sufficient, no? > > I had taken reference from irq_msi_update_msg() in > arch/x86/kernel/apic/msi.c Which is equally bogus :) The charm of copy and pasta... Thanks, tglx