From patchwork Sat Jan 23 07:06:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Zhang X-Patchwork-Id: 12041159 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,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham 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 24D69C433DB for ; Sat, 23 Jan 2021 07:06:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A4247233EB for ; Sat, 23 Jan 2021 07:06:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4247233EB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2E74B6B0007; Sat, 23 Jan 2021 02:06:36 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 296E16B0008; Sat, 23 Jan 2021 02:06:36 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1852A6B000A; Sat, 23 Jan 2021 02:06:36 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0063.hostedemail.com [216.40.44.63]) by kanga.kvack.org (Postfix) with ESMTP id 006AB6B0007 for ; Sat, 23 Jan 2021 02:06:35 -0500 (EST) Received: from smtpin18.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id B1FCA3647 for ; Sat, 23 Jan 2021 07:06:35 +0000 (UTC) X-FDA: 77736156750.18.quiet29_250377b27572 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin18.hostedemail.com (Postfix) with ESMTP id 8699B100EDBE7 for ; Sat, 23 Jan 2021 07:06:35 +0000 (UTC) X-HE-Tag: quiet29_250377b27572 X-Filterd-Recvd-Size: 3821 Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by imf14.hostedemail.com (Postfix) with ESMTP for ; Sat, 23 Jan 2021 07:06:35 +0000 (UTC) Received: by mail-pg1-f173.google.com with SMTP id 15so5364878pgx.7 for ; Fri, 22 Jan 2021 23:06:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=y32mYIIEVwOv7vWlZTkvjmrL+on8Qmqm9Gq8oiBE60A=; b=Clrp3T6WXbqiA/HQDW2+tBqgwTF06olwdV6coRSucnYCjDedAKVzgoybtvGadupVSW 39Xp1h9GGg84eLeEE4Gh0fnesrsek68r6Gf4CW+Id3TY+KvGgssBIpZ20OODTPB+SMzx XbMUlA7ErxVX5j8D54WxvwYjzyoDa7ucHEM04BmQ2Ubus6dB8EAmMKKn6YLb/n5W8Sv+ ljO1y6uvYmTcXyQLNhriA+ABY18yt2mqojJQbocvSfIks1vrFoAS3yUt2Sd8sXC3Lj4O YGg/IYR9PPLTwmwcq1HmDoY0ec7tCiL4IQ3nV6U7+4rgSThUmYUeSm0/wnMkrfttXAPH 5Q5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=y32mYIIEVwOv7vWlZTkvjmrL+on8Qmqm9Gq8oiBE60A=; b=axlULW6vEJbA28TIXrwhA+O9Fuyh03tV35KKBWwYI2jUnQXISYULLh+qtWkorUfwmD VyTMUNpFS9lGwCRVIkvBZ6HHkXimWqXsytHqh+xU5tul9EElMqrgjSpJ6OashTElaWZe r5DP29GttXR2N5HvgHACLzxtj1b3HEmK4ry7zrdREQ8ZHAOafVl4eErOe4DfrjWxu7xp SkMuf9jqrApoo5GErwtrDJdbATuvBDfPp6DGLpCr53ZAUg5BdsbJJDBYJj8Y+9hDIucB HTc3dqZGx8pqSGu6lHD8NW8jc3Am0XcHv8OQS7Axi3SyPgmTJqBXY/NmHykBTTYli0Qz y+EQ== X-Gm-Message-State: AOAM533DcEE3ApKmqBo6Wz5oqeJZ6ELAkUw3162lIsn4BKkpJA70AXF0 buwnpmyLO339ovkZmlfR9ys= X-Google-Smtp-Source: ABdhPJyccqNpO3KUrvO0Ku7AIG5/eEe0KkEicd6jjV9SLeLAOstriEMqOUGaFGhDQb/JLHeDnLg74w== X-Received: by 2002:a63:e5e:: with SMTP id 30mr3250907pgo.181.1611385594280; Fri, 22 Jan 2021 23:06:34 -0800 (PST) Received: from localhost.localdomain ([125.227.22.95]) by smtp.gmail.com with ESMTPSA id mm4sm11465132pjb.1.2021.01.22.23.06.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jan 2021 23:06:33 -0800 (PST) From: Stephen Zhang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Stephen Zhang Subject: [PATCH] mm/early_ioremap.c: Use __func__ instead of function name Date: Sat, 23 Jan 2021 15:06:27 +0800 Message-Id: <1611385587-4209-1-git-send-email-stephenzhangzsd@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: It is better to use __func__ instead of function name. Signed-off-by: Stephen Zhang --- mm/early_ioremap.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c index a0018ad..164607c 100644 --- a/mm/early_ioremap.c +++ b/mm/early_ioremap.c @@ -181,17 +181,17 @@ void __init early_iounmap(void __iomem *addr, unsigned long size) } } - if (WARN(slot < 0, "early_iounmap(%p, %08lx) not found slot\n", - addr, size)) + if (WARN(slot < 0, "%s(%p, %08lx) not found slot\n", + __func__, addr, size)) return; if (WARN(prev_size[slot] != size, - "early_iounmap(%p, %08lx) [%d] size not consistent %08lx\n", - addr, size, slot, prev_size[slot])) + "%s(%p, %08lx) [%d] size not consistent %08lx\n", + __func__, addr, size, slot, prev_size[slot])) return; - WARN(early_ioremap_debug, "early_iounmap(%p, %08lx) [%d]\n", - addr, size, slot); + WARN(early_ioremap_debug, "%s(%p, %08lx) [%d]\n", + __func__, addr, size, slot); virt_addr = (unsigned long)addr; if (WARN_ON(virt_addr < fix_to_virt(FIX_BTMAP_BEGIN)))