Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1886742pxj; Fri, 18 Jun 2021 19:19:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcPzM4l9r7A8jmGX0DkqSr2NX0P3MArF78xbq7vZio14Vw7HmN+rebadE7p9aXs95Sfk5Z X-Received: by 2002:a92:bf02:: with SMTP id z2mr9164769ilh.27.1624069193503; Fri, 18 Jun 2021 19:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624069193; cv=none; d=google.com; s=arc-20160816; b=AjfwRDx+mukR05f/ECSUnMTEu3OMgIscSqeClahjXQOPtKMmdaQ09NWHTmkU60MlAx NJEfw1E6DHlcGEpvy4tAVaE6s48a1a2+vSXrNchmwgHVQTLzzrVCCbKxNShP25dZL12V Ah33G+rU8Jzb2aAgqqKtLG5HcXkwRi0D03JokdQhLsEuejWRMDrbV40wZJKML0wPnFMn xgkyP6tA75ZMUAPa/6XeP0cBzdN7dxHn6vutrNuQJ0QGxHHIDo100Z/HtO9l2tRzctjx +Em+LiRGFlSDYhhObcwyNZmU6vFtfCaArNRbmPmHPbiYLbBP/ADqKHmqtkhX49iN0Hds JlvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=9CauSEz6HxLbbaFiGe9BJb3XkCTojZuIQZ6pJCmdamk=; b=tP3E7CipppkwuRq2PGjEd4yJrzK0pcZtillNHHZmjmW1aGOgyccpm7u4kAYXQpNbF6 SSCz7Pu0Iv4NuwqBLdqXG9gZ8VprbpIy2KpN/zNe+27j+AUA5pTxNjmoS4AZgktubVWn GEX6YFz+xJmJX6/LTqUz71YdAAeJFCla2M2G8U83tbOwRYpjcG7TsoAHNmQjmgyJOreE krQcS2WnTG6oSo21jPE3bLVDezpqkorTMnqxfuvOKz+HSLM0gA3SVFCjutqLZ+HMlt0J xLmaWsRYs/mPacsTh1o4qZBC0MCbM/u+t+rkOpub64IbW4LshgQaxplp0d09MJRWHoWa G1mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kbqqelvA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g18si12351513ioo.53.2021.06.18.19.19.41; Fri, 18 Jun 2021 19:19:53 -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=@google.com header.s=20161025 header.b=kbqqelvA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233588AbhFRTfH (ORCPT + 99 others); Fri, 18 Jun 2021 15:35:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230318AbhFRTfG (ORCPT ); Fri, 18 Jun 2021 15:35:06 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3944AC061574 for ; Fri, 18 Jun 2021 12:32:56 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id n12so8564810pgs.13 for ; Fri, 18 Jun 2021 12:32:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=9CauSEz6HxLbbaFiGe9BJb3XkCTojZuIQZ6pJCmdamk=; b=kbqqelvA5GagoUTjV2Hj39sC5YL1E+IXyGv4rHbi/6Ghd1iWgCjRhK2hrVE31va7Qb YW7+RFRVKdSj5OuBhweEINiTaVXZVVMYcQ8nmo/FTm73N3+nKmMu4vME7llEaOUpiZnu j2a7oj+qdKwSwzo1Z4vtAzEa1xWu1ThhexzCBP9oaQoJ1x1m0N2Cympz425esovFpqyT mj7dqrgOPkVDPAK+6ErUTh40c3PDeNItiQc1OzW6MrOvkON1Z9XfDKrUDqbnN2Kq94iL 5g4oi2r6iA6+G1KbKqzNTKwU3Y+SR79Blp2TwZORdwBoH0qDEUxwRQTA2IzFht3sYyLb x0SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=9CauSEz6HxLbbaFiGe9BJb3XkCTojZuIQZ6pJCmdamk=; b=qX68NvzKK2vOffwlTQKtKW7dtfw/c2eDwnoGxFiwR8bNfqdWEXVwVq9mW8+NB6FUIs K9Hz+GcFe58v+YBZ7t72ZmvBQ6XNEo1rVBGPqdCWwam8phWhj/KOw9kyzQh4SgkzfrGE WfkPGW41QMTQIQpdpzhnVfGr0Wh0ofIlmH/5pKxQB+CjqrMbInQihnMc1hpckTUfl4th sgYw4P5bluew2wYh3N3/8PtaayxoqHq4s7WMhFvO4jqQmp6+2HpCbxdYoFASTg4sHkMP 8S37g2HFPVIBFrvTZ6eZSjNMTnW8v8BENUa7orWbvEiUH7Li6IoATIsx5s8kGbLOgr3U GgDg== X-Gm-Message-State: AOAM533YF+Dvr4G4HzvrFs1LsU8/Inw2VVIZ4bFzGrX2xTJlA1U+Pocd ppny7rUoBJZupBj4pdbcZducuA== X-Received: by 2002:a62:5444:0:b029:2e9:c69d:dc64 with SMTP id i65-20020a6254440000b02902e9c69ddc64mr6579262pfb.32.1624044775553; Fri, 18 Jun 2021 12:32:55 -0700 (PDT) Received: from [2620:15c:17:3:3a6:a5d0:1984:a150] ([2620:15c:17:3:3a6:a5d0:1984:a150]) by smtp.gmail.com with ESMTPSA id r8sm2009077pjr.37.2021.06.18.12.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 12:32:54 -0700 (PDT) Date: Fri, 18 Jun 2021 12:32:53 -0700 (PDT) From: David Rientjes To: Lukas Bulwahn cc: gumingtao , cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, Andrew Morton , Vlastimil Babka , Nathan Chancellor , Nick Desaulniers , Linux-MM , Linux Kernel Mailing List , clang-built-linux , gumingtao Subject: Re: [PATCH] slab: Use %s instead of function name In-Reply-To: Message-ID: References: <1624013943-13935-1-git-send-email-gumingtao@xiaomi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Jun 2021, Lukas Bulwahn wrote: > > It is better to replace the function name with %s. > > > > Signed-off-by: gumingtao > > --- > > mm/slab_common.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/mm/slab_common.c b/mm/slab_common.c > > index a4a5714..36127dc 100644 > > --- a/mm/slab_common.c > > +++ b/mm/slab_common.c > > @@ -381,8 +381,8 @@ kmem_cache_create_usercopy(const char *name, > > panic("kmem_cache_create: Failed to create slab '%s'. Error %d\n", > > I am just wondering: > > Can you also make that refactoring change for the panic() call as well? > > How about checking the whole file for such patterns and doing that > change for all occurrences? > Yeah, that would be ideal if gumingtao is willing to do it. These are some instances where the function name actually mismatches. gumingtao, would you be willing to do this?