Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1852962pxb; Fri, 5 Mar 2021 00:56:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ17QFM8zBfqLJoJ0esL1rCDNMcRrrdOF+BSOQv4V9Pf4oIFymSRLo5yCqY7w0NyEMDBKG X-Received: by 2002:a92:1312:: with SMTP id 18mr7412626ilt.92.1614934581242; Fri, 05 Mar 2021 00:56:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614934581; cv=none; d=google.com; s=arc-20160816; b=pXl0q4K5Q0oz2SYD0jNPU1iO0YtLWfXcpIZl+nvG8t3wPM0dwX1b9d5ChBRsT0hf1+ 0YbOfClWXTdW7xtOMrhP5C3iDTygqZK6+PNd4zPJCa7nAeWQYCEirfDAcJKbQarpSF3h sFRJRVa+WFx2JEVxrqQpihR3Meq2E/rPlG7aUEmBHhXC/iGLEP1ltwevBHCb48PPV3Fx 3SNEe4/7deXO4I7HXMML+snf3mcZRXUXf+5T3B/m5X7gIQG7qk+paozFo7Av6EmHeMo0 5QIdRUm7TndoanJYUciz350AzHSRmm7BCUvA2jfdzoNL0t74CDx8ArCG+9eFwmeTuXRS Tsig== 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=cgdcIEFWnubX12WFTqFmktaYTjMf4DdCHbFs5Zpn+jw=; b=xe3gauBunGtN4BYh5a9u8twh641VYvqY48h0qMJ+4p6BO96Nyu4B3LY02SDiz7Zlfz Nom8UWOtgmOm64hjFyRezB2PgWkn9GE2KthMhghs4ZdfvqOHZl/1MGSiLC1ck6TR1Gy7 TgQzr16m2ouv+7zNwAi9tiRpxTIPAY6tC1CgtwxZzDVxcWR9Bp+Rs+v9z5bcdGSsdyV4 0GyeITq0o1m2yXmphFJ54RJlalLvaqgQrMo1u46fIjc24tZZlmnwvdC7/LfWIKaMiFQb ynkVXukiTcx3bY0z4xN5jZUBh70z9kZVhBnqqPnMI9EQ0BN4UOtrrEaTPWimbs0mVk7n 10eA== 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 x5si1700907ilj.86.2021.03.05.00.56.07; Fri, 05 Mar 2021 00:56:21 -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 S229573AbhCEIyr (ORCPT + 99 others); Fri, 5 Mar 2021 03:54:47 -0500 Received: from pegase1.c-s.fr ([93.17.236.30]:52688 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229493AbhCEIy1 (ORCPT ); Fri, 5 Mar 2021 03:54:27 -0500 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 4DsM406713z9twsP; Fri, 5 Mar 2021 09:54:24 +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 T8CJAndR9POI; Fri, 5 Mar 2021 09:54:24 +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 4DsM405JP6z9twsN; Fri, 5 Mar 2021 09:54:24 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id B77808B78B; Fri, 5 Mar 2021 09:54:25 +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 ODY3hqu1EVFa; Fri, 5 Mar 2021 09:54:25 +0100 (CET) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4D8ED8B818; Fri, 5 Mar 2021 09:54:25 +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> <5987787e-ee80-ed0e-0c34-9884f6aad3c5@csgroup.eu> <1612856863.0x6ebz3hce.astroid@bobo.none> From: Christophe Leroy Message-ID: Date: Fri, 5 Mar 2021 09:54:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <1612856863.0x6ebz3hce.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 à 08:49, Nicholas Piggin a écrit : > Excerpts from Christophe Leroy's message of February 9, 2021 4:18 pm: >> >> >> 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. > > I thought it might have been because you hate ifdef more tha most :) > >> 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' > > Valid point if it's just going to indent back the other way in your next > series. > >> 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. > > Cool, I'm eager to see them. > Hi Nick, have you been able to look at it ? https://patchwork.ozlabs.org/project/linuxppc-dev/cover/cover.1612864003.git.christophe.leroy@csgroup.eu/ Thanks Christophe