Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2669058lqt; Mon, 22 Apr 2024 19:18:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmUEGivJf3iWuGj6ZPD65X/eyeHk8K2N+nVAny74rnBjj0ZB53yAACvquTioqvsfxb9IU4SmptaUHleRJ13hbFWSkNo3OG2Gy7eDJqwg== X-Google-Smtp-Source: AGHT+IH70wpGFpn8rOghLBJaNegOilUA4qYuqbGUa7AEd7/p4smf/N2vWPQDoSObr1OaTv097iAN X-Received: by 2002:a17:90a:7182:b0:2ad:3688:de80 with SMTP id i2-20020a17090a718200b002ad3688de80mr7095178pjk.30.1713838710102; Mon, 22 Apr 2024 19:18:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713838710; cv=pass; d=google.com; s=arc-20160816; b=AaqP3jhEJ682PCwF/mVMmxSHoPSE1VMFddmmPFH8OL1gXNHyefIEQTD26qkm4IOP/k sef+VGEhWkC+Cv6+5H7kQFjjTXblKTHo5QTiCEMniw+kCgeeYTgKOsY5Fbuva5Izs66Z HllyC6SFaTZsWsK6bO9PCMnymM1cHv0xYaoGrH6eacZyMHD2BoCQcmjd/1PuLY7MjAEf hDXAHFxVY8ocVbgREptKoUenp2vmnCq4mzBDxmCYGT9sI13/ZXwzbURcSRr92iJ/k1yQ 73A8YAEI275S/Fl7f6NzzAh7IL7VIk079R6FQt7RnbbrBXzveSGk733Z0uaP00jYCH4X DRaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=JTmT0aRAaYilDGs53g3InL2hfe+6k4CiHBwn64E28OU=; fh=0lz/aKQe52PRv4nb1E8kpzDsCn7RqKY2nm7XDwxV3/E=; b=aW9bnp5NMXBFVF77fwmunL3u0llOejnmXXJrFT9vtVO0CdjS/fs3uk8hpl4nhoymGG PkdMsthBPbz1c6caaWj7bQOT4TcntQuohmpTmJb246QBSyKDw4S+Dogu+U5w2XGg45IB yrqm7tGeb8Uc1d8YZPHNrQHFUxp4QQ5IIFnCS5hfJkqAWOVBz0pgTbH1AzfMaCyUrqhM IEv43lncZ1l5q+pNbJpFGnC4273b8VoAW4K2MAjK+t7k758nwL0huvt23M4lf7uNIk6X c3eLcxQ6wXacgVNnOAsGh4bIzVc3m6Z0BlWe6ciXhqt8hWZZUVgrALhEC/RmK+yso9bw G+Vw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-154416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y23-20020a17090aa41700b002a2b5b86925si8810651pjp.94.2024.04.22.19.18.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 19:18:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-154416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-154416-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-154416-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com 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 19FE6B219BD for ; Tue, 23 Apr 2024 02:17:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9926117991; Tue, 23 Apr 2024 02:17:05 +0000 (UTC) Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) (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 2DDB710949 for ; Tue, 23 Apr 2024 02:17:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.187 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713838625; cv=none; b=YNymRaEOvbsoKuDAcOeIO8mowbj+SBxJKCoAJPFSqRzbuAANZm5Sdr7bFHnM5WQUdwD9vl5D4upnO9spt5boesB2qMVoixIKDUSKYzzc6pxtAnacyf2dk+4dUZ0RpDXHF0Fk9K+KIhCvsW6k9mqmrI//eFmwS/IlkkKu2B5E9sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713838625; c=relaxed/simple; bh=5ysTMKHeHEPNPsU9UhvdWt+UtNAlM07+Q+HOP5hWwjo=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=J1F72VoZ/cf1bPil8W5bqwg6bREHcAkdaHb35uPMrRWiUwblACPwDY1kHYXO0idBElmcz1BGS+il7pKCS3xV+iQrjg0NBeBsgWbGK6F4+C3zBFWZ1mkqesF+miUquMg4wj05lulDOwsfIKzbiKJJjUzus0QzZSb1YEuKp4/1t58= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.187 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VNlzP0Bf3zvQ1n for ; Tue, 23 Apr 2024 10:13:53 +0800 (CST) Received: from kwepemi500008.china.huawei.com (unknown [7.221.188.139]) by mail.maildlp.com (Postfix) with ESMTPS id E79D318006B for ; Tue, 23 Apr 2024 10:16:52 +0800 (CST) Received: from [10.67.109.254] (10.67.109.254) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 23 Apr 2024 10:16:52 +0800 Message-ID: <12f4d203-615b-0937-857e-ef0a478cd183@huawei.com> Date: Tue, 23 Apr 2024 10:16:51 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH -next] genirq: Reuse irq_is_nmi() Content-Language: en-US To: Thomas Gleixner , References: <20240417085616.3785647-1-ruanjinjie@huawei.com> <87r0exun6e.ffs@tglx> From: Jinjie Ruan In-Reply-To: <87r0exun6e.ffs@tglx> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemi500008.china.huawei.com (7.221.188.139) On 2024/4/23 5:01, Thomas Gleixner wrote: > On Wed, Apr 17 2024 at 16:56, Jinjie Ruan wrote: >> >> +static bool __maybe_unused irq_is_nmi(struct irq_desc *desc) > > Seriously? What's wrong with static inline? Use "static bool" has follwoing warning: kernel/irq/internals.h:283:13: warning: ‘irq_is_nmi’ defined but not used [-Wunused-function] 283 | static bool irq_is_nmi(struct irq_desc *desc) But us "static inline bool" is ok. I'll change it to inline, thank you very much! >