Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp907338pxb; Tue, 9 Feb 2021 16:16:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7WoQUrMZmgckZpcqbAxYJyG3l97woXbi24DIwfqm12etfN7EG08nhIJNb4aXhR4ZuPH7T X-Received: by 2002:aa7:ce13:: with SMTP id d19mr734026edv.208.1612916200073; Tue, 09 Feb 2021 16:16:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612916200; cv=none; d=google.com; s=arc-20160816; b=dVTwacfbTzpLbzuhni/w3soZ6HXloDPoKo/SK9lPDW54iJHR6maP5rIT84evj6p+bh neepekt0ukr/U8MtlvonOzH7771T2TsuCVz07Lz/gbs6AgaL3Q5Utzf5GSIrSvovGH68 /zEssfppqSaZ/ZKDHPsN2MX/GLrJVuOMgQQy1i24OigGhy6QQ5rncTfiDc00UdN75AJ0 3Suavv2zu6I/JlkWNly+Adx2cL8LtjRK4mAD6pzqTf+2Hg80SoaflFhIT3K7X+h9M2q4 jnY9VNrIvwDb37uv4U3LRNKFmhDZ9ZFX5pTloZ0JRanU/163s0VdkkuUrrU5O5CZ4rXL N1Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=b7jUaMxS9WvU0nvaR4lPpE29E41vntfff3TxhbLAxsU=; b=qSZvY+08pgIhD6zdMoW4pngO7ABeup+wBzP1AbAYBKYJnjLjAMPRkSPrityZnq3O2m ZhgBOFtxwPZbOIwmrzdLkjtotbjNv3GpyFVUc65k3Ceia8Hd8QKkq2xLVKaxFkV/GNmJ MaooQAB2OjoAJtDNAstqO5HlfBeyv8o9uG1+rNlIyojWjuRfEl5NZWkZ1ktXndvjTJQG +jfyCo1IKNDyp870gjXnPtMMujrFYrno8XZOQSTGdKqbkA7/LUoEY/m5l8o+UHpTA2bF /XGN4HRHcc8o2DIhtW7TJEHvuJXenIyo766yDJ/JBFaB0mVxC4vak/nO7Mx1UlinF94y Ow6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LyN2VE16; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si260501edg.104.2021.02.09.16.16.16; Tue, 09 Feb 2021 16:16:40 -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; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LyN2VE16; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235199AbhBJANT (ORCPT + 99 others); Tue, 9 Feb 2021 19:13:19 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:46364 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233948AbhBIUn7 (ORCPT ); Tue, 9 Feb 2021 15:43:59 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1612903394; 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=b7jUaMxS9WvU0nvaR4lPpE29E41vntfff3TxhbLAxsU=; b=LyN2VE166aOewaHejGq3b/xCLEfPK9uLP2p79EOuPymIGG4x8su8T+YeYuxdAmcw9fj4mh +vbZ8+Rdd4Ok293OUjP9uoQiriXB+HOMMv6krp8wCuLeoBVEqEGlZly3Co5wC+zYkGn6o/ lv7BRifmm+kaN5GMMxb1a9fH9uJ13g2LKSIitas449G0bEsO0wMVPYhyh1LpKdrBnfIBlc mB1BIlct3D29tpKMpF7Ag7F7dR7f2RzfCkOAhUKEEMN8DEoZJ4OEiJjilDsVL1jncCXZPS z51W0xpi3yaedjYe21cpaMv83hCkQ7FwVG9RR6/z4CnE/hSLe9C8fBS4Osj5yA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1612903394; 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=b7jUaMxS9WvU0nvaR4lPpE29E41vntfff3TxhbLAxsU=; b=AFetXLnWjWgEYScVDm0SpUSPIrLG9BpORSy9KQRTh0kRTLKdx5uA8HbguTXdbDU7SBQdpz 6ddgN1UtLbQ6r8CQ== To: Lai Jiangshan Cc: LKML , X86 ML , Josh Poimboeuf , Kees Cook Subject: Re: [patch 11/12] softirq: Allow inlining do_softirq_own_stack() In-Reply-To: <87a6siagna.fsf@nanos.tec.linutronix.de> References: <20210204204903.350275743@linutronix.de> <20210204211155.214169844@linutronix.de> <87a6siagna.fsf@nanos.tec.linutronix.de> Date: Tue, 09 Feb 2021 21:43:13 +0100 Message-ID: <87r1lpas66.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lai, On Fri, Feb 05 2021 at 12:38, Thomas Gleixner wrote: > On Fri, Feb 05 2021 at 18:14, Lai Jiangshan wrote: >> On Fri, Feb 5, 2021 at 10:04 AM Thomas Gleixner wrote: >>> static inline void do_softirq_own_stack(void) >>> { >> >> Hello >> >> This patch and the next patch have three "#if[n]def" with >> __ARCH_HAS_DO_SOFTIRQ_INLINE and this one is nested in >> __ARCH_HAS_DO_SOFTIRQ. >> >> I wonder if we can use __ARCH_HAS_DO_SOFTIRQ only. >> >> For example, we can move "void do_softirq_own_stack(void);" to around >> the code where __ARCH_HAS_DO_SOFTIRQ are defined in very ARCHs. >> (And for x86, do_softirq_own_stack() is a macro instead of function >> declaration as next patch shows) > > We can do that as well. No strong preference. actually it's not that trivial. It ends up in include hell and then pulls the whole irq stack macro mess into every file which includes interrupt.h. I've moved the default function prototype and the stub into asm-generic/softirq_stack.h and let x86 override it. Thanks, tglx