Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp4940431pxb; Tue, 5 Oct 2021 13:48:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwBKdC9M5zXkIu1hT8Q4+sxPjSJJ/57KAuAJo+dqFLRQy68QYXkeipHUIXr3gsUx8aimzR X-Received: by 2002:a05:6402:358c:: with SMTP id y12mr28038392edc.159.1633466906131; Tue, 05 Oct 2021 13:48:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633466906; cv=none; d=google.com; s=arc-20160816; b=bXFSvoyqyDtqnjJOqm+iICXdJIg6mujTN8qnjgDlJqBCcZRjWYQ8hgSB/lwXJYnX5I j51HTxSBqFae6RLaZCDqs8aF/wGac7/AfPIEfL4HZ05hO3g4+XOPjpedLk0FhKTCBG3f yl8bA6VWpbNRtKXIIHE0fhlajvxoMzfRHBeZMhmIIIbCSYpxv7I4ZtvvhQ7cg9oZBU25 8yr1XcZUVK4z8Mc9fGnqRZSSQQgkHzaVK6YAn32PLMJ8yBG79/+MbHhtXI5YI1V3yfSd LjHe4PKWAP90t27hudTWjGgOK71HtxCX6QHTYF50pEhFEBeV5yefZfwJNNGnyZktdkVi w0RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :dkim-signature; bh=FO2aPS6pZorVRBf50npiyQHLDER/25pHVLgerA3vbnw=; b=dIb17OOb3nQ5q8GxrXMc/vSV2CIAZ8J5R1v9dn+kRu8Zmm/WwSdPM6xB6c0P1z2cSB Jh6hZK6O1AZ7iTgfAPICmT3KbBfrwH7SBsTG0+JVJMxJr+AGXPk7Vhag6wjbUyHGEjMO ZuiwTnzn/Kmm3yjvd0d2MT/l9dBek52NsnINhxCv+6HoxFJ0W0chnQV6Pz16fBbpu2ZR Gm8fAmoP4BZ6ERvtr9EAtYPNeEZ+4T5uYbTozMoAqtSdXqsCwDFKgYNqe0VzFapLPWpC Wv5zCIkllBKvg3m3fDJVMne4mKpnnbnRQSYOU3NeQ6CPW9HEROZboPPsc3P+d1fxvNAO y4sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=nxZ5J3Jj; 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 i2si19509239ejw.120.2021.10.05.13.48.01; Tue, 05 Oct 2021 13:48:26 -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=20210112 header.b=nxZ5J3Jj; 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 S235927AbhJEUsd (ORCPT + 99 others); Tue, 5 Oct 2021 16:48:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbhJEUsc (ORCPT ); Tue, 5 Oct 2021 16:48:32 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DA5FC061749 for ; Tue, 5 Oct 2021 13:46:41 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 124-20020a251182000000b005a027223ed9so344183ybr.13 for ; Tue, 05 Oct 2021 13:46:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=FO2aPS6pZorVRBf50npiyQHLDER/25pHVLgerA3vbnw=; b=nxZ5J3JjL9zO6250ntxxadz7P6bGzDZZbF0uQ1Nezk/oZEzsxgLwA6oiYSR36lkAju XO/vTS3YP+f1a3vaXlYnmDgkMbqA9+jcW03Uf7nfjRoe3hE5fhSIHWjodDpo1R5hGsJR 42v/HL+BMlskuKM4D/fpVCZi8FGeoMIEL7cg/JLIFCToHF72KbXhBN5rbdjMt1yjkLZW xAoQKbZlBtBJH/XQtemXl6pzSVqX/UwNNgj8NhADrJ4WBWmmQ3qmYrB5G+jT5aoJ5Sxl FlLhHGEjArqRWhCm+C1pPWMItceRx8BzWfvWYkdyVoN2sNEYzBPIa5ahwc8t8cC5GW/u pQUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=FO2aPS6pZorVRBf50npiyQHLDER/25pHVLgerA3vbnw=; b=YamRcRlF7L8kvfm6a1+LKIVihMl5X0toqwuwF++2DfGuL/lXThkytHz1cMOjKfO9eX bjZ/7wDNrpjZHE0BaaFMDeVSaRWshtPO2+8E5B1B9Uc6Wd5250/q8fDSJOOE89l+L0on oLLLdHLW7b065w+tDxC2NYZfC/lYvh51nSwcnlOViGSJ40ACUwb8D+z7YnH4rCJUQdWB xm15zyDaq7zwy2kXME8NKAjeBcAnJZ4Da2GFIKmOok1xrWdwVKyUtnqyJhhQyNss6Dq5 BWiJUZmw/asRCIiVjX2MUQrXjPujsI5171j7dXFfEcTEtq0CLLwooHzWq+paYrbPTdMV q2tg== X-Gm-Message-State: AOAM531FkPLZ/ansLTyvJiiGsNG8jPckkH+9Wo804acgukqYJYI2IFKD 4BU4ieTeNkLKmrkrucoNKaWyZCoimrvwSA== X-Received: from dlatypov.svl.corp.google.com ([2620:15c:2cd:202:d252:3bd5:53cc:fc46]) (user=dlatypov job=sendgmr) by 2002:a25:3fc1:: with SMTP id m184mr25047881yba.236.1633466800517; Tue, 05 Oct 2021 13:46:40 -0700 (PDT) Date: Tue, 5 Oct 2021 13:46:32 -0700 Message-Id: <20211005204632.3132652-1-dlatypov@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.882.g93a45727a2-goog Subject: [PATCH] kunit: fix kernel-doc warnings due to mismatched arg names From: Daniel Latypov To: brendanhiggins@google.com, davidgow@google.com Cc: linux-kernel@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org, Daniel Latypov , Randy Dunlap Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 7122debb4367 ("kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers") added new functions but called last arg `flags`, unlike the existing code that used `gfp`. This only is an issue in test.h, test.c still used `gfp`. But the documentation was copy-pasted with the old names, leading to kernel-doc warnings. Do s/flags/gfp to make the names consistent and fix the warnings. Fixes: 7122debb4367 ("kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers") Reported-by: Randy Dunlap Signed-off-by: Daniel Latypov --- include/kunit/test.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/kunit/test.h b/include/kunit/test.h index 24b40e5c160b..018e776a34b9 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -613,7 +613,7 @@ void kunit_remove_resource(struct kunit *test, struct kunit_resource *res); * and is automatically cleaned up after the test case concludes. See &struct * kunit_resource for more information. */ -void *kunit_kmalloc_array(struct kunit *test, size_t n, size_t size, gfp_t flags); +void *kunit_kmalloc_array(struct kunit *test, size_t n, size_t size, gfp_t gfp); /** * kunit_kmalloc() - Like kmalloc() except the allocation is *test managed*. @@ -657,9 +657,9 @@ static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) * * See kcalloc() and kunit_kmalloc_array() for more information. */ -static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp_t flags) +static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp_t gfp) { - return kunit_kmalloc_array(test, n, size, flags | __GFP_ZERO); + return kunit_kmalloc_array(test, n, size, gfp | __GFP_ZERO); } void kunit_cleanup(struct kunit *test); base-commit: 3b29021ddd10cfb6b2565c623595bd3b02036f33 -- 2.33.0.882.g93a45727a2-goog