Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1033433iob; Fri, 13 May 2022 20:25:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwC4ZLVUKSCdCR3bsz7WKuhMkZSsmFm8xXfXsmss/Iur6/usfg8GW0hTZOKw44zJcumyPmE X-Received: by 2002:adf:ea12:0:b0:20a:e14b:2710 with SMTP id q18-20020adfea12000000b0020ae14b2710mr6065252wrm.81.1652498703829; Fri, 13 May 2022 20:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652498703; cv=none; d=google.com; s=arc-20160816; b=pz0Oep+N2NxeEkeKlP/TO80TsLuoc1Ix3hbBoFlqLGUjZSSlNOiYHG7yYnEvefKRcC 7L+rrpUfqTgtn1yQJJ5NaSiXsim5gV6yAUfpK+/lHTImbTzLnYhaWmGxBrqA/QhvvX5/ kXx8NsE853pS+omvV126ry9NAboItDy2tYaBD44gxHuEcJ8G2w09z5XJdaAMIFNsSK0h yARuCu+JApb3c5tSWx1bvPtYU6DhLoTujKyBnK1/lFvTrA+TvdMPhO0vkvgoanZevQtu /kM8TrodeufAKC28fZ2dIZ7O0LrkhHI0ekQP+j4L7oDntHEQJ8JcrSf68owAnzWNKdBm NWJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pszSDfe0UbNgZW4RxKcUIgfomIDDQRx5VP5T7VUEGIM=; b=IG7nJE92dZdRUPZ0CXmLw1SMv8Y69A32F+YaHLtGMRjGwgHfRjhIBFx2GtdLEUWM5M jVhdTun9KEAmqf2C1pLWDG86zr48zPjs5WVi4S6V+7eBOMbhZa3WlCWkirhkRcULRjLK x9StmxXqfxs9jskVi2vGeV/q+Q721yzuYWktd4PK+jFpxdjUZyrg59MRu3y315l88BKu DFXKAikOObrH5luPX4Sgm+bdjPVS98erCxBG9r4IXnZfo2N7dO2I7zz6xYqtSlIjCTy9 x59feRNXNLv76gEh+Hcswue6cglKxrdFNuIFGRQiVN+Vnk3eb+cUFHhAsor7WCz04JCU pWDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VQA5v8vq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 6-20020a1c1906000000b0039400a80237si6803344wmz.136.2022.05.13.20.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 20:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=VQA5v8vq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E509140B81B; Fri, 13 May 2022 17:02:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357845AbiELTBg (ORCPT + 99 others); Thu, 12 May 2022 15:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355699AbiELTBf (ORCPT ); Thu, 12 May 2022 15:01:35 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 757E84C406 for ; Thu, 12 May 2022 12:01:34 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id i19so12010956eja.11 for ; Thu, 12 May 2022 12:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pszSDfe0UbNgZW4RxKcUIgfomIDDQRx5VP5T7VUEGIM=; b=VQA5v8vqLahAK/ejzfmgUBIfDmleeuUyWizNuLo7eork68u0Kdo0mLk2LagPzvdFwu bPCS9pMREZcOLfpyQDK34HFBotdepKvHzCsAOrES5gBMNoFMkdTjhNWo3ROXCx8UIc6v BCV6hXpLKsRMRyhsT3mtXAL6JctiOwVyu0Mtk+yNpYb9O3TLaydg6GrpNp6If5JZq/2u rssY3r/WK4mSLTJQ7j7QHbvFf/6tkQnm06XpMa68d3wW/OykknmCFx3ve/RcoC7VmZQo aMmeuLlc6VWJC+vLFjNH6JHeTvcDMOyWHEaZB5+wgl5AgyD4B4DGg2VFzVrGtKgI1+lS OgMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pszSDfe0UbNgZW4RxKcUIgfomIDDQRx5VP5T7VUEGIM=; b=LjdLwU/m2TLA3KQ5gPNP1QJmu1Ginau3R9zK4iUDZNyiKeOkbvqNDwQqN/qWUzDF2k 1BLQNFzqkJOVIWC+6S14XY/qNkXmdOyHc7Sg7AouCWF3Eiju80inP9HofxQ38j9XvhSF WQt9xlLt+b6xe9xbTfwJJl4SzmZ1FcRmxg9e6Plsn5i1aoxyEoCyBGxLiMEJckpELBZT ofkQ6i08CDMSZb/1RQ1zE229PfjekXfvVjDPU2bkDSX+rEg7eL/eQ+EXkbXwed+7tHoX /sBOB9v46z2j2xMm6vGvWT2+8wCYmdNFEfR0x4pgb1pSpi1ovBPuLp3Vy0d0gHltAWRs O6DA== X-Gm-Message-State: AOAM530vJQeH6nW0Uhu2hAINqPmMSpeicn1i5Ex9DEont13dboG2KfW4 Bfg68ajsft3bO9i/Q+Ad4T0ZaKMX2CQT8OscXGWzN+dUoqw2GuDP X-Received: by 2002:a17:907:8a24:b0:6f4:82c9:9adc with SMTP id sc36-20020a1709078a2400b006f482c99adcmr1202252ejc.223.1652382092846; Thu, 12 May 2022 12:01:32 -0700 (PDT) MIME-Version: 1.0 References: <20220507052451.12890-1-ojeda@kernel.org> <20220507052451.12890-5-ojeda@kernel.org> In-Reply-To: <20220507052451.12890-5-ojeda@kernel.org> From: Brendan Higgins Date: Thu, 12 May 2022 15:01:21 -0400 Message-ID: Subject: Re: [PATCH v6 04/23] kunit: take `kunit_assert` as `const` To: Miguel Ojeda Cc: Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, Jarkko Sakkinen , Daniel Latypov , linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL 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 Sat, May 7, 2022 at 1:26 AM Miguel Ojeda wrote: > > The `kunit_do_failed_assertion` function passes its > `struct kunit_assert` argument to `kunit_fail`. This one, > in turn, calls its `format` field passing the assert again > as a `const` pointer. > > Therefore, the whole chain may be made `const`. > > Reviewed-by: Daniel Latypov > Signed-off-by: Miguel Ojeda Reviewed-by: Brendan Higgins