Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1609488rwi; Mon, 10 Oct 2022 20:00:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4z4TJoY2p6SANPCiMCBn0ciCh5lh3Hf1NnI3T4jik2O37cKApUed5k5deYYr+myYa+MsVm X-Received: by 2002:a17:902:c385:b0:17e:deec:4702 with SMTP id g5-20020a170902c38500b0017edeec4702mr23083462plg.121.1665457258263; Mon, 10 Oct 2022 20:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665457258; cv=none; d=google.com; s=arc-20160816; b=U+ZN7hBP6JxIwD2rt/AUDrETONDhCHUt4zz7wz45smCzagsmKAmYjkOl5yjbt4uwhl fZGoLJDVT5ebq/zsQQBo1FxKDI0snFZuL7T1Mp7RgAaOqlYf4OufD1I/8/FW5tijlSF9 gFW6IjGi/cYFgc60cnt29W19/5tCUjlP8pSrO5MXGlKgOyQ/8owJu/L2JcjAQfzNo0VI tQfNRFINL2bJVD0RXnufF3p4ZCrOqVwC/DRqFuNmde7kFX9dk2O/Iju/ofN8kYTjcxn7 QtGn76NgD0x3hurz+w0BocjmsKIFD/41HQcxkMYVYK+lGbhtyDlxg26FEjxLDlH9TEJh aMEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=g5ZAeOU29ASuLEzMkvQnKWfVg4sMd2t7fUMu1orwx8o=; b=Ha2R9eajFKUlpghY7vEhhG3OExHqXiVXu3O31AS6FdJaMZ4n17sbVC/dE6qwzgPHGQ m7v63b9nkNi8rhzo8nG6lHRnuZ1MEZkwQLPLLLsj/FL/HCf9EhroZ4qCsRuu2jPb0Yql Gw8QtAhXkedxV+eYRz60NzOzb69kohMbESzuMVFvZQWklw3ofD0Il5qXtXTbeg0ulp1I zH5Fv7NK+qURDcpBSO8lRGcakrhXTKC6EgCWhkw13C4UsJFEamA3oxtnTIbQBihCvkm/ nJRNibzrsBzZfLyTYz4T55h6ErfrQol+QHmOTpui9pGqcm0U+NVxtg8PHSgqI9rzq5II in1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LV39s2kx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a17090311c700b0017a0c17e47bsi16616553plh.78.2022.10.10.20.00.46; Mon, 10 Oct 2022 20:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=LV39s2kx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbiJKCsk (ORCPT + 99 others); Mon, 10 Oct 2022 22:48:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbiJKCsi (ORCPT ); Mon, 10 Oct 2022 22:48:38 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCD218304A for ; Mon, 10 Oct 2022 19:48:37 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id 67so12273545pfz.12 for ; Mon, 10 Oct 2022 19:48:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=g5ZAeOU29ASuLEzMkvQnKWfVg4sMd2t7fUMu1orwx8o=; b=LV39s2kxcJjEcL7z4uZu7vYeNHwwfikFHBtGULtOgM1giuAWLkYFCqKtrZdv5y/AZb 09Mxd9ysVB4B6Dnzch1o5mZedcB9ElOo+GqHFctnqjtnQfGjfLxFv5+cwudB84PRL0Cs FEeaaxNB4Ivnx3Wa6tp/Sl4pQYNglkZ3js7iTE+LxFPQDbVkwj7CxJEw2RBIQvuDKVMA O4AylRm0Ev5tOVAUVVOm+OxYj9f9GE7yFBu8GDhD9HZxaS2/j5H/2rJZ2nEVqo1lxOdu mfyKkouSmXZfCGJe/mIGAyMURtdBbbWKKjgVcG694yXSL5+ZvyHwghtKSpXb6Bb5kieo w3Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=g5ZAeOU29ASuLEzMkvQnKWfVg4sMd2t7fUMu1orwx8o=; b=nvvEEwsm5DZwL9DaK4k0ug+MxaztFliubLZNG3wpbo4DwvXpLKYymLzDMczi6abyxq ryi9IEhFaBz1uLPB43Oph0LG5u4it5C+0+Au0RTqlhcyimTa4PZ4cpImxT0kaVuaxvUa qIfApX6keUjfKuxMXsMJ5SYoGDp5xBFNpKZfB0auiOvlHgtJzf5XJudlLAQCe9vtArgW r1inb7vm79lNzDZ7tqijW16m1kg1RKXc7RAGrTP0t26lv1lAvcfr+COtAOi0+6+idyAe OJynYXVPLdDJNLQJaXz6yPIOJwmSklIuTtKMdVEVZDDXT4ul10irVnujzDB90XixFxCP dpRg== X-Gm-Message-State: ACrzQf3S7coRx5NQMSazNBnQ3akMK3QkeLiJmoRaHynS1eSJOs02pzit FveaE6GBm1DsJIJ531lKLvc= X-Received: by 2002:a63:5519:0:b0:457:dced:8ba1 with SMTP id j25-20020a635519000000b00457dced8ba1mr18901984pgb.163.1665456517177; Mon, 10 Oct 2022 19:48:37 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id j5-20020a170902c3c500b0017c3776634dsm7407169plj.32.2022.10.10.19.48.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 19:48:36 -0700 (PDT) From: yexingchen116@gmail.com X-Google-Original-From: ye.xingchen@zte.com.cn To: pmladek@suse.com Cc: rostedt@goodmis.org, senozhatsky@chromium.org, andriy.shevchenko@linux.intel.com, linux@rasmusvillemoes.dk, linux-kernel@vger.kernel.org, ye xingchen Subject: [PATCH linux-next] vsprintf: replace in_irq() with in_hardirq() Date: Tue, 11 Oct 2022 02:48:31 +0000 Message-Id: <20221011024831.322799-1-ye.xingchen@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ye xingchen Replace the obsolete and ambiguos macro in_irq() with new macro in_hardirq(). Signed-off-by: ye xingchen --- lib/vsprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 24f37bab8bc1..5b0611c00956 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -866,7 +866,7 @@ char *restricted_pointer(char *buf, char *end, const void *ptr, * kptr_restrict==1 cannot be used in IRQ context * because its test for CAP_SYSLOG would be meaningless. */ - if (in_irq() || in_serving_softirq() || in_nmi()) { + if (in_hardirq() || in_serving_softirq() || in_nmi()) { if (spec.field_width == -1) spec.field_width = 2 * sizeof(ptr); return error_string(buf, end, "pK-error", spec); -- 2.25.1