Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp901839pxb; Fri, 13 Aug 2021 08:47:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztsWqeFYPNttUi3A+2Hd8BnyJAJ+2hDHLWOhtorTB6R2gOC1tSKSM0qAOV3SRf8d4chpce X-Received: by 2002:a17:906:791:: with SMTP id l17mr3075792ejc.360.1628869634181; Fri, 13 Aug 2021 08:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628869634; cv=none; d=google.com; s=arc-20160816; b=pUcKm/Qj57z2yAq6xubrtEw2JWwXZXlkFQu1qmwPLYCXSyMECRs69xv4W4DLMn5Qpr ueTlZUqOZIBYnM/E/cXmWajiYwYmyuFIcssJ3amLdZ5UdDbtNLHXLiyL5PSW8Fm4fDs6 tuO3eq9TQA44gDSJDyEGr2W1jCHr4JSOSCSBB7SkXDuJ7BNE2Bf7sDbkDMYNJ8o63mDj vA/LnFzdUiYuX+ydWcRagJyeqRx2BSX+TuAAPm+EIf5YycW76lacsroIQBoV74N7yFHP BpOiFKT5G3C2ZTYfnynR7gmzmWFSeuqF4d0HDNCPeorG9btOO/MN9rKQYhEfokdazGaR GA/g== 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:from:dkim-signature:dkim-filter; bh=RVDS4amGP7ioflmfiU6sdMVFaxdxocLjvCtU764fm50=; b=lZjyLUCWd9oU3OrD1BI4VWYTZu4vHg66OieZ33ayBj7ji6GXf6LQwohT2+Ax/bptsK ElQqHYo+bE2K7434KOARNW2xAduGq2FL6H7jXUw2alKxnW/4K8pEjSRwD3V5m7X25hVl VDd6AFzWUFNhPuVxtTziEJsM9A3uuHgYMRmARI/jx/vtmrIHmSZKRomi/kL46Q4Ob96p /8yxRxZs2lWdh+iybiSibQMfrntKxa6BN1ivZhqBX9pVrORpxv4CxS6WqpYBdXfxc6FN KvbYZK5QFsD60/AbqLmqDLSk5bcTnwOoJy+q+EsZqOtcxiMbWBZ0sMqmJUISIrBrFP+1 +KXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lwn.net header.s=20201203 header.b=cJNzzI3K; 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 ky22si1172153ejc.543.2021.08.13.08.46.50; Fri, 13 Aug 2021 08:47:14 -0700 (PDT) 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=@lwn.net header.s=20201203 header.b=cJNzzI3K; 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 S241150AbhHMPo5 (ORCPT + 99 others); Fri, 13 Aug 2021 11:44:57 -0400 Received: from ms.lwn.net ([45.79.88.28]:41974 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236919AbhHMPo4 (ORCPT ); Fri, 13 Aug 2021 11:44:56 -0400 Received: from localhost (unknown [IPv6:2601:281:8300:104d::5f6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id BD906385; Fri, 13 Aug 2021 15:44:29 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 ms.lwn.net BD906385 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lwn.net; s=20201203; t=1628869469; bh=RVDS4amGP7ioflmfiU6sdMVFaxdxocLjvCtU764fm50=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cJNzzI3KwzA2NOTsrfmf7cGnO1eBpmbSg3FmcV9Dd6PIyetQ6JteUhCfb6mBcR3vj BA4kkyo29eaA5S6oFS2G4Wk4wljlf3N/eLZqpuzQ2+J0DlUqd3NZyeWWXBdqCUm+eP HjF3AnVn0Tf1phYBYJKAgyz173uNPePCCOj49lNRm7kIjXLJP+bpvEjmM8AzxQCigy 0Z8qDZeB4+pQQseOH7SGJzhf8db6h/tCu/QlaGyTFGQZcm/MXaNkyzXR6p5AcauahJ MMUPJWhF6OepvSHZT7h97WSi2AKWOiDHOv9oiY/iFOzPgsVeYQ/trYvvvFuVAS4Yna q8LjpMEB0bw/Q== From: Jonathan Corbet To: Changbin Du Cc: Federico Vaga , Alex Shi , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Changbin Du Subject: Re: [PATCH] Documentation: in_irq() cleanup In-Reply-To: <20210813144713.85598-1-changbin.du@gmail.com> References: <20210813144713.85598-1-changbin.du@gmail.com> Date: Fri, 13 Aug 2021 09:44:28 -0600 Message-ID: <87o8a1xsbn.fsf@meer.lwn.net> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changbin Du writes: > Replace the obsolete and ambiguos macro in_irq() with new > macro in_hardirq(). > > Signed-off-by: Changbin Du > --- > Documentation/kernel-hacking/hacking.rst | 2 +- > Documentation/kernel-hacking/locking.rst | 4 ++-- > Documentation/translations/it_IT/kernel-hacking/hacking.rst | 2 +- > Documentation/translations/it_IT/kernel-hacking/locking.rst | 4 ++-- > Documentation/translations/zh_CN/kernel-hacking/hacking.rst | 2 +- > 5 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/Documentation/kernel-hacking/hacking.rst b/Documentation/kernel-hacking/hacking.rst > index df65c19aa7df..f514cec8e16b 100644 > --- a/Documentation/kernel-hacking/hacking.rst > +++ b/Documentation/kernel-hacking/hacking.rst > @@ -77,7 +77,7 @@ fast: frequently it simply acknowledges the interrupt, marks a 'software > interrupt' for execution and exits. > > You can tell you are in a hardware interrupt, because > -:c:func:`in_irq()` returns true. > +:c:func:`in_hardirq()` returns true. While you're in the neighborhood, can you please get rid of the :c:func: markup? We've not needed that for some time now; simply saying in_hardirq() is sufficient. Thanks, jon