Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp386742rwl; Tue, 11 Apr 2023 20:44:58 -0700 (PDT) X-Google-Smtp-Source: AKy350Zdr3MNDzav3JM7f3CdDTVVGWYGjjhQ2WjIYDVAUCvgnWaVYOUnKloB2I859HoibP45znBm X-Received: by 2002:aa7:c913:0:b0:504:a3ec:eacc with SMTP id b19-20020aa7c913000000b00504a3eceaccmr1335677edt.4.1681271098295; Tue, 11 Apr 2023 20:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681271098; cv=none; d=google.com; s=arc-20160816; b=z6OVjqXBnU6RU0BmMtG1ufES2rsZzK703Q4LrtyANmg+6z9MskIgv1niA9+3/aIpv+ lvV4sacseJ6Byv7/Kwbus0fJgUyMgIMbS15P3SCHh3TPAMalzaVHfCaNA0K2/f73M8fw 6VxUHr0wg8Gjg8Gn1cu58u/R4XKjF0BEL3acsN+9MafWN7y7NiGvtImNhzPL5NjYTUkS h4Mvsjta2dQtRGDAl69Tuyjrb56zWr/NjKS8qyAtI2f9l3H59izLIx1v+dQhLyI5lhcs 62S9pA8S0aD6VNCQ/UObYDxzXoADxf2Pr2RT5bllULT4xi6nksrd/s8mY8vLsDj7d+aX 2YBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=agvz4oF+06+P1I3Dywr9vXf4P0PNC8SN/2J0BcuAGYw=; b=XwBYQFmsfJwptI+/wrCVTaG/zsSD4Jp5uagnYhV1HAaEj22SFpWuPFEP16dUXypfDn 7yNBUSAnoE/XK37eutAnmHLKX654uk5wN1IAyZrW3I23yaxgcbnwE66B1U74ti/GdhCA AaMONAANq3fkctWgX2OeklT9QjuywowxxQcvJVqd2hh63UvwLPUE85WfOy8h5OlnxKlU HlZvB13FP5UTtlMBCSooJPzQDsqIte0Oeo3liTRQW9OjN3Vjm7ucvPeUK4wKB2o4/wM1 eLd7OD+x9y5gpV6K5rAf9PHO2juGzKxpG0i0iyPqpMQ7DKcpVu7z+3WYkR/Odivckx8U GgeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="C1r+H+/T"; 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 j16-20020aa7ca50000000b0050499b11f8bsi5577947edt.167.2023.04.11.20.44.29; Tue, 11 Apr 2023 20:44: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=20221208 header.b="C1r+H+/T"; 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 S229633AbjDLDkj (ORCPT + 99 others); Tue, 11 Apr 2023 23:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjDLDkg (ORCPT ); Tue, 11 Apr 2023 23:40:36 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 923113C3C for ; Tue, 11 Apr 2023 20:40:34 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-633af513162so1068550b3a.3 for ; Tue, 11 Apr 2023 20:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681270834; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=agvz4oF+06+P1I3Dywr9vXf4P0PNC8SN/2J0BcuAGYw=; b=C1r+H+/TJLQD3G3y1Uc2gUP54iJey7FbM8Y3Gm/xyERny5GaNri/LXtyq38HwNrz0b Pa0gWw0rGBdA6G1lP+kNl6JiOaTIAYdLzyTvWCdTryURQ7BJsb6UwTEFBCkJcLlX7MTf xXQPuFiwwqFHuHJJ1+8G767XOQSqX+aY8XXqpG6mJFeE7UCRtNTrPL+nXRGccgOpuQmI PL55yVAJTkKrv37gDRQGu8F9BLogvFc3SMHCzQQYc4TA41L7IqJVAnNtf0DmKgWT60g+ dsuqRJT/vUH+fQFrYIvzOnvVL1Ib6mzzhazM1tvqMWMBrVXCZdTdI6JhnFbyl4kyakAD 46HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681270834; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=agvz4oF+06+P1I3Dywr9vXf4P0PNC8SN/2J0BcuAGYw=; b=p+GgWB+BYfd8xpK1UJ1iB+jqpSzXU70QgALZfqfr3Ve9WpFmoWmwN2BCOguAZSHY5T if/qs8lbw7MnsTdoMUolTk9Pg8pvBYHUbGiO6YsRgVNNk0ykQHIbkMIaRh1UsJ6cZcDS F0K8MfG9V7BJqGyVji9GaK0YnhR27GFPWZDKeTx+IPbcnTYy4HNElg6Hjc3CB6/gtOgJ 5yMxh5TbB4ug2VrOiqQAqtT234m+3/Tqgc4LwIJkvTM/NuIfCS2JCvfqVWUKBxirXCVf 4OZyT0lsfZHggTh+zsFNtZzUaYtjHwOkTYywKQjEHBeZmC7Gz1ZPnom8diGHNaGZtyR2 PDCA== X-Gm-Message-State: AAQBX9c+ccoB0Eme0Nd+sCAhkLMZUSssSd3cnjr6Sb4pM19znW0sh6vx cATsZ9GctKgN+7M5FqocMnk= X-Received: by 2002:a62:5f06:0:b0:634:b231:d2ec with SMTP id t6-20020a625f06000000b00634b231d2ecmr13111740pfb.25.1681270833933; Tue, 11 Apr 2023 20:40:33 -0700 (PDT) Received: from [192.168.43.80] (subs03-180-214-233-66.three.co.id. [180.214.233.66]) by smtp.gmail.com with ESMTPSA id t15-20020a62ea0f000000b005a84ef49c63sm10485715pfh.214.2023.04.11.20.40.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Apr 2023 20:40:33 -0700 (PDT) Message-ID: Date: Wed, 12 Apr 2023 10:40:28 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2] mm: Fixed incorrect comment for _kmem_cache_create function To: zhaoxinchao Cc: akpm@linux-foundation.org, cl@linux.com, iamjoonsoo.kim@lge.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz References: Content-Language: en-US From: Bagas Sanjaya In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SORTED_RECIPS,SPF_HELO_NONE, SPF_PASS autolearn=no 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 On 4/11/23 16:13, zhaoxinchao wrote: > diff --git a/mm/slab.c b/mm/slab.c > index edbe722fb..399daa4d0 100644 > --- a/mm/slab.c > +++ b/mm/slab.c > @@ -1893,7 +1893,12 @@ static bool set_on_slab_cache(struct kmem_cache *cachep, > * @cachep: cache management descriptor > * @flags: SLAB flags > * > - * Returns a ptr to the cache on success, NULL on failure. > + * Returns zero on success, nonzero on failure. > + * This function has three return positions. > + * In addition to successfully return 0, the > + * first failed position will return - E2BIG, > + * and the second position will return nonzero > + * value for setup_cpu_cache function failure. > * Cannot be called within an int, but can be interrupted. > * The @ctor is run when new pages are allocated by the cache. > * I don't see any visible changes in my htmldocs build (since the kernel-doc is for inline version of kmem_cache_create()). You will also need to update kernel-doc comment for kmem_cache_create_usercopy() and kmem_cache_create() in mm/slab_common.c. Since the latter function is actually a wrapper on the former, the return value description (Return: field) should be same on both. Thanks. -- An old man doll... just what I always wanted! - Clara