Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2777678pxb; Fri, 5 Nov 2021 04:39:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcNgGRSoznHcrnwQpWc6izyq32eKJNY8FxkSLh5+SCBgZranb2YDeSNtuol4MiVjmLy23b X-Received: by 2002:a05:6602:2434:: with SMTP id g20mr13720578iob.57.1636112347930; Fri, 05 Nov 2021 04:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636112347; cv=none; d=google.com; s=arc-20160816; b=o0BaDhhJskvhhlwBvfH9SWh3Z4xaBW6tZPh9dS/PbplrkJVvZF9Af8SxmcqfIFySUV KzxO6JPvrirn5uL9mGXyndNi2ewmaTFVi+tj1wV11vJQMyI+AbGnG/uGDTmbGNM8ExsS 12o0rPn+D5xU2gANRP/zQBloiBappZgkTDsHuSw0LiOsVXUR9EI2egXWXgBy76wY+Ybr F+K2P88Qy8AfZ9t7Qz65vB1exQ87ihD0W1Urt1NLCasxDVNOXafHq2zoFYdEoz5fjLRA bZgJ+LyVxWOLBPiO5CSxcNJuLKsbXbz4KvORXURulqr0uNGNkJAJG8kEJVYbEl16UR6K bROQ== 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=3ERJVON27xcB0z4IEBF5AHmN8Vw67kknzNO/pdOijRI=; b=ce//49By+NmpgYToyn+VUL+7ibDToRvZrM8xxcgsoR/YTnSaa5PqthDsw+rbC2xYa2 4VGcSw27vTP4imsbVFKA8+7ntnx6dcANYdKDjhZ5h3DpMF1lnyvYsSk4ejxguJ3Lip7e qqakbCJdImxmUTRpB4mfqqzYXpVo0ELN9tuyX+kUXM3WwxnhkoI+Cgz/mkSv3ivSEpZT MhYC0VpVabZRSKpD+EMtwcorWiN8r4a+dChgGqHblgbsLqqMStFexVFpyU387DEalPMZ 4xXgIbAnQgzXgf0AsETWcGcFgtcMtHZpRHy3fQdEbz+2roSCCW/C4z5RDk7Nhh2FsPEi wOWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@metafoo.de header.s=default2002 header.b=ELJp80fF; 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 g1si14923116ild.99.2021.11.05.04.38.55; Fri, 05 Nov 2021 04:39:07 -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=ELJp80fF; 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 S232660AbhKEJHF (ORCPT + 99 others); Fri, 5 Nov 2021 05:07:05 -0400 Received: from www381.your-server.de ([78.46.137.84]:53610 "EHLO www381.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbhKEJHE (ORCPT ); Fri, 5 Nov 2021 05:07:04 -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=3ERJVON27xcB0z4IEBF5AHmN8Vw67kknzNO/pdOijRI=; b=ELJp80fFHYxNskFRI0kIPTceht O8COvo5xQws8t3yi0rJg7S6bRFqvUPphU6d909zV0WmTztx5J9hLkfN2g0z2z0kHf9KhXUIPuzaRa +kVYfQasZ0CKXzrKIhBKtft+bjp7C+1Y23B6I3kFKYuo5KM8ZlGV8jIORPHTk8WN5CtczGrCoVVsM UHRjFlo0OHo1nNqkkxpjJph23lKYQHcH45RdWaxvfVq6b+8wvIf5J+pQiTNf2aYJvheO+S8VYpGcf vFwfQ5SVRPwAuLzuU4J+CJImYsQ9YowLS63y0hlC99LhBShc2zLzZJKlw6UCPE8mjsRFWqV0yxHGk lUz5lp5Q==; Received: from sslproxy01.your-server.de ([78.46.139.224]) by www381.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1miv93-000Gbn-G5; Fri, 05 Nov 2021 10:04:21 +0100 Received: from [82.135.83.112] (helo=[192.168.178.20]) by sslproxy01.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1miv93-0007yJ-A7; Fri, 05 Nov 2021 10:04:21 +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> <0c449b88-a6fb-76ca-5c13-807f7728f1da@metafoo.de> From: Lars-Peter Clausen Message-ID: <61ddb1da-47eb-bbda-d6a7-98ef19fa494e@metafoo.de> Date: Fri, 5 Nov 2021 10:04:20 +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: 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:55 AM, Andriy Tryshnivskyy wrote: > > On 05.11.21 10:50, Lars-Peter Clausen 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 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. >> > Understood. Then If you wouldn't mind I will add assert to other tests > too. Perfect, thanks!