Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp253178pxb; Mon, 8 Feb 2021 22:21:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlOT7qozsIMxoPiM8rCnvSe19gS1Q5TuSriq89MPAWrUxsS26UnpT2LbxVXLW7CcYKmB79 X-Received: by 2002:a17:906:7ca:: with SMTP id m10mr20245379ejc.257.1612851660105; Mon, 08 Feb 2021 22:21:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612851660; cv=none; d=google.com; s=arc-20160816; b=YMdaI/haOheCGRKpo4nqcMHJuisz91N2GW4TfF8GrmdVKc6IJ48LFL2miPtR5rqu8h nqi+CWANx1kVZNljtAhRTKL9ncWAIB9sXrAB7Fi0MeiKPV2TG8CiMXFnDDLhiSx7ZqVs kKZsnQdDE3lU3H6PXRJYBAAFQVZweI8K0i4lfZzyicyoY8dT4xYfdK5+qlmEfXEqEfKb Rdxz3Eahc/kq2ceDJg+8oycjpuF5nGg3h33y6GcqyMDLkppChnGOVsvP8giX5xLqd9MU V6XS06WWoygY33wObGMLe+lycX7NF+hE9VdC4LHHT+xNErp8q/k1yg9wsvf8fZE1dHG8 LdDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=mKoevIJ6bsvN4Wg/C8svmT1cVyvb+vzmRJWO1pypDOo=; b=HTzj7bR7Bk6343OI6PPREXfGUPbKOJV28494Jqomp5dauiR+iQddf0YODi2ymgMOsf NAPaCsp/J1YxsDw0BSLxBDTm6sZPrGkZoK5LBXipg4yt3marrxSRFieFm6xqV47gTbj8 9XBNNeWCm+67K4J0Rj5vKZKDq++NPTLFj4+hi6/2oz70eLlmrTltpXViI+2YA9PkRfZH xGcVEF4kPzse/oSiwBZ9AMYGistzDYjeQbxGOuEDNqwmO8g98ClS5rkQQFB8Vo2s3L10 aCUdfR6jLrzANeD5XmWY6rec2vx9JDcq+K7HO47E0Gxkq0hN+p3JC0QTmz/lTcQVZlmK whpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si13015372edc.229.2021.02.08.22.20.33; Mon, 08 Feb 2021 22:21:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229639AbhBIGTd (ORCPT + 99 others); Tue, 9 Feb 2021 01:19:33 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:48528 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbhBIGTc (ORCPT ); Tue, 9 Feb 2021 01:19:32 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4DZXlR52gxz9vBmS; Tue, 9 Feb 2021 07:18:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id uMwsPFVyGa3r; Tue, 9 Feb 2021 07:18:43 +0100 (CET) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4DZXlR2dJyz9vBmK; Tue, 9 Feb 2021 07:18:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 0D6D48B7CB; Tue, 9 Feb 2021 07:18:44 +0100 (CET) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id UWE8sIuMAx0B; Tue, 9 Feb 2021 07:18:43 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 7AA778B764; Tue, 9 Feb 2021 07:18:43 +0100 (CET) Subject: Re: [PATCH v5 05/22] powerpc/irq: Add helper to set regs->softe To: Nicholas Piggin , Benjamin Herrenschmidt , Michael Ellerman , msuchanek@suse.de, Paul Mackerras Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <5f37d1177a751fdbca79df461d283850ca3a34a2.1612796617.git.christophe.leroy@csgroup.eu> <1612832745.vhjk6358hf.astroid@bobo.none> From: Christophe Leroy Message-ID: <5987787e-ee80-ed0e-0c34-9884f6aad3c5@csgroup.eu> Date: Tue, 9 Feb 2021 07:18:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <1612832745.vhjk6358hf.astroid@bobo.none> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 09/02/2021 à 02:11, Nicholas Piggin a écrit : > Excerpts from Christophe Leroy's message of February 9, 2021 1:10 am: >> regs->softe doesn't exist on PPC32. >> >> Add irq_soft_mask_regs_set_state() helper to set regs->softe. >> This helper will void on PPC32. >> >> Signed-off-by: Christophe Leroy >> --- > > You could do the same with the kuap_ functions to change some ifdefs > to IS_ENABLED. > > That's just my preference but if you prefer this way I guess that's > okay. > That's also my preference on the long term. Here it is ephemeral, I have a follow up series implementing interrupt exit/entry in C and getting rid of all the assembly kuap hence getting rid of those ifdefs. The issue I see when using IS_ENABLED() is that you have to indent to the right, then you interfere with the file history and 'git blame' Thanks for reviewing my series and looking forward to your feedback on my series on the interrupt entry/exit that I will likely release later today. Christophe