Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2645923pxb; Fri, 5 Nov 2021 02:09:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZyYOMsy9rx4zOdWKyZPsl+CrbAZy9/Fl+WGqN9znMF2PPSwGpDTWY0HFipf5LY2y30IqV X-Received: by 2002:a05:6602:2d88:: with SMTP id k8mr30685489iow.18.1636103359517; Fri, 05 Nov 2021 02:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636103359; cv=none; d=google.com; s=arc-20160816; b=rd3D2PQnczPgn03miMoR9Nte5m/u9GWbBNgFkLdRapVdcIY6ZAnDhjEm3cwfIaZGMy /aHZvEPRUpnqXVv0ipjQaLA6LnvJw+S6lgNfwxfB9woGEL1Y2B9+BVT27ThSh6TgBKn7 oyuAmk63AkDGIJsbtRPCqSMweh4rARiyLNDPMak/neiuruDe8MdHqS2oE9CNpMRaidLM AjqPTtBPz+ZGxV59VTgcwu3kBX18ZLkDa7VHZABAQ7pqPIjt5WobJs329e/egJKuq+AF RYFJPFNKQkpeYq4sjokv2U82cmiZyjBbRPLs94akl4oySZoF66sFP1LYLyNqy4Qrp73C QVFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=ySSYSSRANv06wW3RzwGvD6KRkw+9mAkGLzIgDqWTJuo=; b=D8nCMs7kdTyNWVU9UdxzawWSmmeOIv7AYmQq4VrEOANkZ43Um2QKrNRueVkZctgajF SpfjtGK6GzqqrUZxgqq1rH1rq0IQytWO310SNVcqXisZ/sn6dZjAMPVRis+mbXefznwk rTdiXIfGz0SI6Re7jNa28HoVcqil1z5aanOXCqXX5Qeyt7UX+gEbycZ0ls8p14RQBxQR E+sfznAcPhygWCSdl9rMGLLvRGX+6wak0pqVIBip4Cgsr7wOc2Zfth9gj4jdB89LgOXm EvRiEobmid6AJPtu5Y+n9yrMMwCu/j96kcuLkov5JaK9BFp1PzrInkSTPaQOD/eF3deF q5jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metafoo.de header.s=default2002 header.b=IdtuzkjN; 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=NONE sp=NONE dis=NONE) header.from=metafoo.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si13811931ili.174.2021.11.05.02.09.05; Fri, 05 Nov 2021 02:09:19 -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=@metafoo.de header.s=default2002 header.b=IdtuzkjN; 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=NONE sp=NONE dis=NONE) header.from=metafoo.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232818AbhKEIxl (ORCPT + 99 others); Fri, 5 Nov 2021 04:53:41 -0400 Received: from www381.your-server.de ([78.46.137.84]:54902 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232814AbhKEIxj (ORCPT ); Fri, 5 Nov 2021 04:53:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=metafoo.de; s=default2002; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID; bh=ySSYSSRANv06wW3RzwGvD6KRkw+9mAkGLzIgDqWTJuo=; b=IdtuzkjNVjPl+FeD2F/LMO8L7K drQiTHnrxkJ8BV5hW5XHylIWIVAsIUfInahOW2AA6noEjBYbkj9VpEsIXbB4AWgnVFWXgFNSkVdvP OIZghvK7LYRS3YCSitiMTUe4SGhf0N76By5W/KmpCA8YObSOAiw0ZBOp5gURcSwvDhiZjZ6DYwei3 4L3JHerZQ0uNvFIrVi1y6HSoLw9KshdxVM3MAbUozBuDzXAuVVN1uNCYXLAKmk4RbGpPUM8PlBbHk R4IOmfWfUurm8OXi2EJnCa7c5Sz2x10nzoE4RRSpBC0nxoKl6r4h76vHg4wROJOzKRyZ+EQPBEAWi oru439gg==; Received: from sslproxy05.your-server.de ([78.46.172.2]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1miuw0-000Exj-Q3; Fri, 05 Nov 2021 09:50:52 +0100 Received: from [82.135.83.112] (helo=[192.168.178.20]) by sslproxy05.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miuw0-000FJ3-Hv; Fri, 05 Nov 2021 09:50:52 +0100 Subject: Re: [PATCH v7 3/3] iio: test: Add test for IIO_VAL_INT_64. To: Andriy Tryshnivskyy , Andy Shevchenko Cc: Vasyl.Vavrychuk@opensynergy.com, jbhayana@google.com, Jonathan Cameron , linux-iio , Linux Kernel Mailing List References: <20211102073300.13376-1-andriy.tryshnivskyy@opensynergy.com> <6d909cca-46a9-3f40-5d4d-97ef2fbe33e9@opensynergy.com> From: Lars-Peter Clausen Message-ID: <0c449b88-a6fb-76ca-5c13-807f7728f1da@metafoo.de> Date: Fri, 5 Nov 2021 09:50:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <6d909cca-46a9-3f40-5d4d-97ef2fbe33e9@opensynergy.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Authenticated-Sender: lars@metafoo.de X-Virus-Scanned: Clear (ClamAV 0.103.3/26343/Thu Nov 4 09:22:31 2021) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/5/21 9:45 AM, Andriy Tryshnivskyy wrote: > On 02.11.21 10:11, Andy Shevchenko wrote: > >> CAUTION: This email originated from outside of the organization. >> Do not click links or open attachments unless you recognize the >> sender and know the content is safe. >> >> >> On Tue, Nov 2, 2021 at 9:33 AM Andriy Tryshnivskyy >> wrote: >> Now it's good with format, but you have missed the commit message. > > Actually commit massage contains a header only (no body message), but > I can add body message too. > Thanks! > >> >>> Signed-off-by: Andriy Tryshnivskyy >>> >> ... >> >>> +static void iio_test_iio_format_value_integer_64(struct kunit *test) >>> +{ >>> +       char *buf = kunit_kmalloc(test, PAGE_SIZE, GFP_KERNEL); >> Shouldn't this be checked against NULL? > > Good question. Truly speaking I've made new test similar to other. And > no other tests has a check for NULL. > The other tests not having it is my fault. There should be a KUNIT_ASSERT_NOT_ERR_OR_NULL(test, buf) under the allocation.