Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2917946rdb; Tue, 13 Feb 2024 00:46:56 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXee2qL3Uu2a3xnyn3ua9WPbhjsoLzo962A1FnsUUYQXCYnXpX0p5IhPItAN2D+YD5T78MnzZW/9+P+Its+/OXjX0jAeWB1Gu7meFUUvw== X-Google-Smtp-Source: AGHT+IHYxvz4TJ3iiV9dGixs7gacG9lR9KtxR2uKMOqe7Pfg3vHoVDMy66ivu9OHNyxxEHWVy+fn X-Received: by 2002:a05:6830:39ea:b0:6e1:4d:d283 with SMTP id bt42-20020a05683039ea00b006e1004dd283mr9541812otb.22.1707814016221; Tue, 13 Feb 2024 00:46:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707814016; cv=pass; d=google.com; s=arc-20160816; b=PzwXF/FLT7gfeSpY4nP3VrR2MulfM2C5ofyHxbztMvPMuFMuLIQxxQ7uPqVXPLcNQD cRjSC2iJ2pn/V41/kNG9Dsj5Qy7eUyEV4UlRR5ccsxyvbxG+lCz8nKsizglnw4DEc/t2 oL0JCOQa3Mh4v2KcrqGM3U4PtVg0RiooPjLESsBt5k3MA/JHi9bGV6+mJkXZSG57V6ia stwANh+e5McdggymzglJxbWO0ZRfmgqfwFEIrkorrSJ0nhbmhDAQWZmWrTRqg/RElHUh VTlpGzTe28EOeDyEPYKZP0HSWFRqUJH2QAZx3SLLygQbpPZGDa2YrHu2/RhMqqmGag0y 2DRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=sv7XIDRdwrOpwhStOB8VNj5SMdSkv/7xoAweXnGu+b0=; fh=HFsUAXyW4sTqByFkEPRt6u5qmgnQLfno9RQpy0IquwM=; b=UCFmmAycxqV+ZLevEsG2PIdI1WYW82LD4Xgx4Czb1U0KRX21kITGBwEQGqziwNl8ho dqlbDGqJhW5M6eC53CiBdH7K/SHsKhiklYNS1Ei3Md2aCgyxirIYnmxgfrSUogae1fnB AXjVWhOB0mF5bVjrmkWCQcYXjGmTGxdaF8J6guJrdggT/oqzfHELqW6z0VlCKSYKTZbh EB8L6ClETLN7uoOh8RpZiozfyrjAGPz8t6i9cEJUveSewFtNQK6yi9jDrD2Azo0/O3bn MoxZ3RCwONlTJBoBGRvDa9mM2sa6wxCIViT0gFQqImPa7M6pd5bUVTQchOU+i0iWMEB8 rdWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PfBosD5V; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-63142-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63142-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de X-Forwarded-Encrypted: i=2; AJvYcCWMpn6uLVcsPODOV+QtIdlNi5c6Hg9KWCr+AD6pUkERnqPzNX5ro6/CBOXOvQ/e/wl9fuoYylk84kin4QryECFIEp8QpdjG/WZdqRayJA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n4-20020a632704000000b005dc5061f211si1592678pgn.560.2024.02.13.00.46.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 00:46:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63142-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=PfBosD5V; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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-63142-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63142-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id ED674282187 for ; Tue, 13 Feb 2024 08:46:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8386F225A4; Tue, 13 Feb 2024 08:46:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="PfBosD5V"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="d3EQaR1t" 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 35C79224C6; Tue, 13 Feb 2024 08:46:40 +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=1707814002; cv=none; b=B33jJK8HCcNIO/XbOgylW+Ga1qw6JMvAB1tEbqHthaJWPLj2w2ha70FTP3/pNS4dheH9im2RxeQIEp1rF3MvKASYuZg56KIJMg396WHnouKego5h21+QODJhi+KzytBYvjVjebKbEKW76g0b7XzLG8cDOiI54BRfad6O83jPdsE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707814002; c=relaxed/simple; bh=qQiwpn09B4+vwleHQGtUBug9CbJpwTwlrCSrjzBa3z4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=UObQu9QBk0O1mT3GE4UBEd97z+m1Wrl4sVFuf2/shfQUrzOYdDH8jmgf2Cpg2DpKTFNeXWL4d+AtafeABBmYzH5HIRrIdbLUDnOgMndMQRyAwUo6fJlQJhzKFkGLdayHfI+eXbqfNwWjBHQsOeozDGLTks8uGGkke6d3nWZtpYo= 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=PfBosD5V; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=d3EQaR1t; 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=1707813999; 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: in-reply-to:in-reply-to:references:references; bh=sv7XIDRdwrOpwhStOB8VNj5SMdSkv/7xoAweXnGu+b0=; b=PfBosD5V0ngTuqtDPittmA5h/Gr0F4p9mccJqaALyIIvxeMC1WkTdYQIVkUDnP5g7tT4HC nVI6onaEYHpm7OD+KkOlUeeZ+6Y9DvYQTFeaooJ1wvS7gYbAdbZT76SC8GIZKKFbx+Oscp rSWrsHFnYxFXBCbTv7S84ood32Em5nLWbFWwdvtwsiqZu7nCmZPuXsb4+oInKgr5rUs+Wj ys88ZB+nuhQPgMC5GeOwT+XSm0ZMEbvfWCyfIJO7OoIf36eNmLKR0wXVswNHBayos9H2Dx 3bxg34TMU2wPA08iMfOkXbt7DpONHwpcIogb5tf/VsV1ill6B45DHk2P9XjLLA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1707813999; 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: in-reply-to:in-reply-to:references:references; bh=sv7XIDRdwrOpwhStOB8VNj5SMdSkv/7xoAweXnGu+b0=; b=d3EQaR1tV6hGzu+06Fh8PgLDPqDxQfWAfnF1J0MzvPuDhoSppXX/D8yErXivQ+0cYj+POq h8dzB4ZaYwCmjcDQ== To: Bibo Mao , Huacai Chen , Jiaxun Yang Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Shtylyov , lvjianmin@loongson.cn, Huacai Chen Subject: Re: [PATCH v5 1/3] irqchip/loongson-eiointc: Typo fix in function eiointc_domain_alloc In-Reply-To: <20240130082722.2912576-2-maobibo@loongson.cn> References: <20240130082722.2912576-1-maobibo@loongson.cn> <20240130082722.2912576-2-maobibo@loongson.cn> Date: Tue, 13 Feb 2024 09:46:39 +0100 Message-ID: <87frxwiweo.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 On Tue, Jan 30 2024 at 16:27, Bibo Mao wrote: > There is small typo in function eiointc_domain_alloc(), and there is > no This is not a typo. The code uses an undeclared struct type, no? > definition about eiointc struct, instead its name should be eiointc_priv > struct. It is strange that there is no warning with gcc compiler. It's absolutely not strange. The compiler treats 'struct eiointc *priv' as forward declaration and it does not complain because the assignment is a void pointer and it's handed into irq_domain_set_info() as a void pointer argument. C is wonderful, isn't it? > This patch fixes the small typo issue. # git grep 'This patch' Documentation/process/ > Signed-off-by: Bibo Mao > Acked-by: Huacai Chen > --- > drivers/irqchip/irq-loongson-eiointc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-loongson-eiointc.c b/drivers/irqchip/irq-loongson-eiointc.c > index 1623cd779175..b3736bdd4b9f 100644 > --- a/drivers/irqchip/irq-loongson-eiointc.c > +++ b/drivers/irqchip/irq-loongson-eiointc.c > @@ -241,7 +241,7 @@ static int eiointc_domain_alloc(struct irq_domain *domain, unsigned int virq, > int ret; > unsigned int i, type; > unsigned long hwirq = 0; > - struct eiointc *priv = domain->host_data; > + struct eiointc_priv *priv = domain->host_data; > > ret = irq_domain_translate_onecell(domain, arg, &hwirq, &type); > if (ret)