From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F20DAC4320A for ; Fri, 13 Aug 2021 15:44:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D1BD460FBF for ; Fri, 13 Aug 2021 15:44:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241180AbhHMPo5 (ORCPT ); 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