Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2834168lqo; Tue, 14 May 2024 10:26:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV+Djb5vwSB9Qo1RhhSs9xI2wKaWhIbegf+o1XmOJPK/p7QMGp00mqRtdsjyPh05/xNLOtc+/jYGLHquyDnhd5lG3tHAyw5lXUr6V7KHA== X-Google-Smtp-Source: AGHT+IH/h+9cSy9b382F6l2x6iUzUnmmEZUUTEsu8U0Xxent97vzGTcOYr+PjKUCCvn0p5l1GtQA X-Received: by 2002:a05:6358:3388:b0:18d:7b30:eec1 with SMTP id e5c5f4694b2df-193bb64d4dfmr1309189055d.19.1715707618845; Tue, 14 May 2024 10:26:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715707618; cv=pass; d=google.com; s=arc-20160816; b=XfSWUj4ZNkAdfxlX3EqShTyxP97qXOWArShgb4qO5ry/0ri2Wj7zrCkas8zVcVhFPR EyrHe5C748P6QoDVZGXMB+gE+gw3dHPe5fmQqqe4JFU2+cmqWn8NzpNkmGCTBzgBA/No t4DxyYEUdeW1hc1ClG6G10cjWrz+AOCxstPrkogD7sVfcyAg74gUl9KgIENQY4BM8DIr bQFWP0gfYaet9CpavhBhnTrVgSfEGIHh9ulO2zXraH/o2pfIGy6OQLt/58Lr7krSdrWJ Krn36zoPaKb4QBJxdBjfFjLRFlGyijki101W7R8xz4HC9oYHB2CG0OLb/N0aDuq9kHsH gyJQ== 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=6G6DQyPhwSC91Uzzzi51uTfYXPdGZ8cCXSYSci/EkjA=; fh=E762zwGjlneN3nVefwferRmxrYPVMeB4RPy755j6/pg=; b=aLTqxUKsXWx3KMdR3NxRNTzxY2wVSzFl3gzLZtP4d0CoZdmXPUN9bTCzaT/plB5qZv 4IdpT6pC+tF16xg9nFhtOhAnLuc09gVUbNlfPwrdtiYVM9dsDthM5csono5r8jjPAmbl BONgXGYapKCrWTDqBAO2h1HhW9Bro/Y/nc8H+v+JwZIitn9LkgqJg1b4/DPpNkXvpSY/ JrVdEIlZjUju/1TMM72Vg4kCPffXqZaYKtmAlA8MJ5A9kgYvrArfGRW2MDUZM3i1t4KJ kVNyhUER/QcxPROMwYgnqMO/jP0g5YFtjtIdmzp7nsqqA+uP1LmlN3lNaJwELv0iaT0U tsKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="u//H3XAF"; 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-179004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179004-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-63409e825ccsi12863920a12.91.2024.05.14.10.26.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 10:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="u//H3XAF"; 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-179004-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179004-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 211ACB23010 for ; Tue, 14 May 2024 17:24:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72CC11802B1; Tue, 14 May 2024 17:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="u//H3XAF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="NYUd2FyO" 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 36A4417F394 for ; Tue, 14 May 2024 17:23:38 +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=1715707420; cv=none; b=rcsUQ4v56dnuREKpk+6ZlIcuYb4UaovbCYVxcEbC4bMoGlg3cRLzgSPqqGeS70CibM957WrdFxFxfbM6zpvUr55ak19Id8wXyYPuQlAXB9dj1GfqovjzLE9V6GKdxpVNg5deoBqUbZAB2C/LpkEpGtF/PKUaZwchxh8obJYAneU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715707420; c=relaxed/simple; bh=pJlUi+KXkei8lg6ra/Ca1kaBmxiwkdtHHBcOwgmpYNw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=FX3rU2QX84yLfww8cXjUjjZxGyHxq8dYrbPKe+n1+p2gCbYdXEPOoTUkycOyi44ffo1OQocdGJDzLz6UY64BCwfs6yEUYl0QZ35FxDFLaWNdelYHj5bOVfudwCWhX1ZEzDR+hyCSm4AvLIFpxvnFMUFjqYnHtqtTPhi0+k6oZNc= 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=u//H3XAF; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=NYUd2FyO; 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=1715707417; 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=6G6DQyPhwSC91Uzzzi51uTfYXPdGZ8cCXSYSci/EkjA=; b=u//H3XAF0bDpgKAq5YmtDErhqrHoq0magXqS2ITQJbedoZntfr20eM0d9IssJ+TxKKu4xO EOeVUdhkHXgMaQqFtQQzhOPAJ3AKy3x8v8oBLZbMVRNhvZ4agQixzb9s43nsW66m+Q69Tv gNFUN4jvIRjK7Jc5Od6AYNYSxBW+KmZofFhieneFOeB+clu/7Fxe57UCueuWWjTW9qZOzH QRSzQGWEMQ+tIJWfwQNTUaDrxGUs3Re7m+ytSTuAK5kOeiB5FIo5tyhGjywW7kxqiY46MS gR4+6bhunpmTbwHJB3Ko/2FHwPmVfmFnWZ52aVLreIbgXw4iH4UZZG73itXCaQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1715707417; 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=6G6DQyPhwSC91Uzzzi51uTfYXPdGZ8cCXSYSci/EkjA=; b=NYUd2FyOqm1bSC8UdWvEtly0qoG+IbTEQri9l0rM4LUUy6vDdsz2z7iqvruzjfMdyanqbC mLaqVtVsG+UbcpBw== To: Jinjie Ruan , linux-kernel@vger.kernel.org Cc: ruanjinjie@huawei.com Subject: Re: [PATCH] genirq: Refactor the irq_chip_xxx_parent() In-Reply-To: <20240514131910.2614027-1-ruanjinjie@huawei.com> References: <20240514131910.2614027-1-ruanjinjie@huawei.com> Date: Tue, 14 May 2024 19:23:37 +0200 Message-ID: <87pltol33a.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, May 14 2024 at 21:19, Jinjie Ruan wrote: > +static inline void irq_chip_do_common_parent(void (*chip_action)(struct irq_data *), > + struct irq_data *data) > +{ > + data = data->parent_data; > + chip_action(data); > +} > void irq_chip_eoi_parent(struct irq_data *data) > { > - data = data->parent_data; > - data->chip->irq_eoi(data); > + irq_chip_do_common_parent(data->chip->irq_eoi, data); > } > EXPORT_SYMBOL_GPL(irq_chip_eoi_parent); How is this equivalent? The original code does: data = data->parent_data; data->chip->irq_eoi(data); which is equivalent to: data->parent_data->chip->irq_eoi(data->parent_data); while your change resolves to: data->chip->irq_eoi(data->parent_data); Seriously? I'm starting to get tired of your flood of half baken 'cleanup' patches. Thanks, tglx