From patchwork Thu Aug 17 19:14:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rae Moar X-Patchwork-Id: 13356878 X-Patchwork-Delegate: brendanhiggins@google.com Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DFCBC531DC for ; Thu, 17 Aug 2023 19:15:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353536AbjHQTP1 (ORCPT ); Thu, 17 Aug 2023 15:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354613AbjHQTPC (ORCPT ); Thu, 17 Aug 2023 15:15:02 -0400 Received: from mail-yw1-x1149.google.com (mail-yw1-x1149.google.com [IPv6:2607:f8b0:4864:20::1149]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5055A359C for ; Thu, 17 Aug 2023 12:15:00 -0700 (PDT) Received: by mail-yw1-x1149.google.com with SMTP id 00721157ae682-583312344e7so1835027b3.1 for ; Thu, 17 Aug 2023 12:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1692299699; x=1692904499; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=bFN9dp01RtqHwqhQI1dVarxsGtiPL2F5fMs/c+uKdWk=; b=DjzAqPJrxIfw1BYw5i3FrieFrPSbaM+YcbWnz6sZAiIOz7zApNgX/BlsxaUITOB7iw yCnIS239SXQ+yTqLs6JZm/h3Jvfh3dh4+oOkiUGEnKp9cLL875BN2opF+m5WNDI/TG0J mPOdug1WnENIOFf5R7TJzlcr5pE5G7Gx/n0lWRxl9fk3MRMc/eWHeq+9IjPMT09mNcFa PsmRvN7tq4U1WIYX7DdU2daYJB49YcuvtbHqDDIEm1A8jv2TvEyyCqt2cWIzJBHINfOj cxrWVcT75yc6XmnLiK/PPsf/IBFO5mupHWPXQs3Z7Lf7+YN2wxPC8wJvtDQY27iF9rrS 2Z3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692299699; x=1692904499; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bFN9dp01RtqHwqhQI1dVarxsGtiPL2F5fMs/c+uKdWk=; b=gtXwcfzHMh+IW85nvKit7jHF+LBqRP9HVyCbH2P5zcN/gjcZXLNf97liYLUIsaWIAV 7RK++1r+5cB39D1x6cFjsyBaKahnIvvUGD7E4IMt9vqEhRb0dYk0Kl6S7Y68fqoSJxKE MY3n9D7xqxA0tgm4XUJAoWOnXZUC0Xgm+PYcwXDzz0g/hSQIGnWdzRov6MFAxESyDdy3 MC72cLJh3DSnR+Y+oLq1fxFzuH70FeVOxLjORLrzq/i0YLGs5jY6ey7gJFpnDgrbYSKJ G20s+ng35k9OmJLPS3OuijB+watuwFrLq5Eqsmj+22qTIwCFtAORo2RPnA5t6IbXKH3m lvhQ== X-Gm-Message-State: AOJu0Yz/E5LXlesTnhvxj224aUyMmv2+TcXaPwfdZFkdNsFv1tEU+qXT EhH/ipIfnxu4FdpJdKPRaLeP8ScJ5g== X-Google-Smtp-Source: AGHT+IGX5b4WQOsC3kP+cTVvJ7mVySPhcsavQyeEdDAUh6zcBnD/TXahce8aIDy43n9+rZRTSf81ojTVhw== X-Received: from rmoar-specialist.c.googlers.com ([fda3:e722:ac3:cc00:2b:7d90:c0a8:45d3]) (user=rmoar job=sendgmr) by 2002:a05:690c:707:b0:58c:9fda:d043 with SMTP id bs7-20020a05690c070700b0058c9fdad043mr4166ywb.10.1692299699585; Thu, 17 Aug 2023 12:14:59 -0700 (PDT) Date: Thu, 17 Aug 2023 19:14:51 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.42.0.rc1.204.g551eb34607-goog Message-ID: <20230817191451.1026413-1-rmoar@google.com> Subject: [PATCH] kunit: fix struct kunit_attr header From: Rae Moar To: shuah@kernel.org, davidgow@google.com, brendan.higgins@linux.dev Cc: linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-kernel@vger.kernel.org, Rae Moar , kernel test robot Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Add parameter descriptions to struct kunit_attr header for the parameters attr_default and print. Fixes: 39e92cb1e4a1 ("kunit: Add test attributes API structure") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308180127.VD7YRPGa-lkp@intel.com/ Signed-off-by: Rae Moar Reviewed-by: David Gow --- lib/kunit/attributes.c | 2 ++ 1 file changed, 2 insertions(+) base-commit: 582eb3aeed2d06b122fba95518b84506d3d4ceb9 diff --git a/lib/kunit/attributes.c b/lib/kunit/attributes.c index 5e3034b6be99..1b512f7e1838 100644 --- a/lib/kunit/attributes.c +++ b/lib/kunit/attributes.c @@ -30,6 +30,8 @@ enum print_ops { * attribute value * @filter: function to indicate whether a given attribute value passes a * filter + * @attr_default: default attribute value used during filtering + * @print: value of enum print_ops to indicate when to print attribute */ struct kunit_attr { const char *name;