Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2646287pxb; Fri, 5 Nov 2021 02:09:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDMKDSVdMyRANKl0aAYsOOMXjJbfIJkO8Ya5r86RF7zrcWSu+BCQXwizFg2khU4Js1ymtB X-Received: by 2002:a5e:d505:: with SMTP id e5mr5063162iom.217.1636103391115; Fri, 05 Nov 2021 02:09:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1636103391; cv=pass; d=google.com; s=arc-20160816; b=Bjeezs4YHIitSl4nwP6xNNLdXaMw3cQvHA5JjwmXwziskIZSG6fwaS1PXK9cn4+Vro wwQ52Ya8NWkX5SB4YQbJeeo8nO+bHEtVfbIm6iGlmazOc5ImDIWcIUA0OIZD+0rwbzYQ FlWJmyXEyU4l16ZvvVUpHG0FdSEBQaXBsn7F/8rteZIjo9g2rpym43d7NZwJ78ol1Mgn Z+A8os+ad067/WTCktoPOZ7Ty9IwrykKRnqkpbtJW9fMBLg24k4ccGiMBV28Mk9qkCrq B5AgCZyXMQKwQV6RDaNFk8E7fqX78hZHDxMdMC6e45wSTle7JXGc4mFLYH8hUPDVk0Kp gPaw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject:date :message-id:dkim-signature; bh=iMzZrkFsIcY9gxOGiosRgC6NBkmbP6o6n0FxwMH+g9g=; b=CJjBxSDUbtVLrvMkXiMviBbrx3Yxiq4FxVBnRUj7YJU4d4lJHOF4rYt5CSArsSvy7f oDx8Vp3UJ7EVsNGgdKEdQJqGsOO0fchWPYeaiZmfBNzTnlLwrkd6HCkcrcWgcExw4rZ7 ca5+OeGYabbFLFA51zPmrdMgpryQmvt5Bo2/MOQJXbBaoA7XWx1ojmvc1PbQ4dEWk/7y 249YJxLnLit3WfRa1eCasZRFrrrMebT7XSi88xdTbV7Yd6ZVETpibYtOcxLvcep1U8xa SNKs1pBHgkFhZpfJoYCfO8OJQENIctNyurXF/udIJRAvpzX7DfH78z4McJw/Og2ThmC9 plsw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@opensynergy.com header.s=selector1 header.b=NgZa3Ltg; arc=pass (i=1 spf=pass spfdomain=opensynergy.com dkim=pass dkdomain=opensynergy.com dmarc=pass fromdomain=opensynergy.com); 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=opensynergy.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si16104449jaj.107.2021.11.05.02.09.38; Fri, 05 Nov 2021 02:09:51 -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=@opensynergy.com header.s=selector1 header.b=NgZa3Ltg; arc=pass (i=1 spf=pass spfdomain=opensynergy.com dkim=pass dkdomain=opensynergy.com dmarc=pass fromdomain=opensynergy.com); 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=opensynergy.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231777AbhKEI5r (ORCPT + 99 others); Fri, 5 Nov 2021 04:57:47 -0400 Received: from mail-eopbgr40090.outbound.protection.outlook.com ([40.107.4.90]:4733 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229601AbhKEI5r (ORCPT ); Fri, 5 Nov 2021 04:57:47 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GqugoGutIl3eyBaFNKZqPIeRooJGQpK0XjWdQu0WDygARfnFxj/0tLyzhTiR+jOqNDQaYaCXfcdnyIRdSoeg6fBMclHJ7oMvuM7HmG2bYir+As6DfOXb/nPHvSG/MJEebSfDBg3j1PnNPMvmy+p+W7UHmVSmy/hAFlrDc/IlKuVEUt8GPb95opvrjUsq9tGwxN3XgWHdq8ue9/eH9LdhnlKck/W8JMY1HQF004uJhwL5GLePkM/TvtRJ10IcQs/ZhueG4N89gDD/8EQkbhK2saP6rVEb7nhhy6m2X4HqTmhQUP0alZnL492Z/rhLayRU1G7dBWJJD8Xec4ccQWiPBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iMzZrkFsIcY9gxOGiosRgC6NBkmbP6o6n0FxwMH+g9g=; b=JC6cTIUfNk3qmwphC/XDwmztqhZrfcu45MwLcIztpWwMuhhDMkOS3VFEyenHkQ87I6sVV1uOlIiaWIaux/ffjQXDo/yr151mlezq8yWPvivYLlHFndQ+iJrjrhOcDCcID68FiffBDWgDVZqzFkaXXhIMD97BtO9OusXt1LZQe3QwhQIVzniv70TD0hFaN0M9Ct4Rnf1NlB3L2L2W0iewmLreZe384nWKZ/PCuAasLewmY8Cv1yHDEeZAkNaSneDux49lC9cr/ib5I2tl28i/pa0SmrijQgb0dPdNuCFeVz3BTcebN/90VHZVWabtt3pNvvqhs+/mQjyF1LYr8b6osQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=opensynergy.com; dmarc=pass action=none header.from=opensynergy.com; dkim=pass header.d=opensynergy.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opensynergy.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iMzZrkFsIcY9gxOGiosRgC6NBkmbP6o6n0FxwMH+g9g=; b=NgZa3LtgD7AYTkICX7h2cA4UUyAeDu/BSvUNwmnHn8VK95l1+vUUYLbsDfJ9Z/ww23iNCNP1Qx4hSdwP0yejDLabcGAgYAV53CHu+DVyMT2DdbhzAaD1k5zdC+koUkYKDxffeQosyIynrQIwth9fN8g6MNNlXpbsMpXLooUmPAE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=opensynergy.com; Message-ID: Date: Fri, 5 Nov 2021 10:55:02 +0200 Subject: Re: [PATCH v7 3/3] iio: test: Add test for IIO_VAL_INT_64. Content-Language: en-US To: Lars-Peter Clausen , 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: Andriy Tryshnivskyy In-Reply-To: <0c449b88-a6fb-76ca-5c13-807f7728f1da@metafoo.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM6P194CA0066.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:84::43) To AM6PR04MB6359.eurprd04.prod.outlook.com (2603:10a6:20b:fc::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 487cf7b8-afdb-4aec-820f-08d9a039f556 X-MS-TrafficTypeDiagnostic: AM6PR0402MB3733: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1186; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2V6W/CAXVDg7U+VejlNjSKHh00qqlQ7WBx39k+o7y2ueMsWbW2CpXZFqtAQposkYk9e1wG1Fu5oB7JwiMFRHXbnUXxk9oj6H0N+BgO0UkwjsRWRqH6kZs+YSr070qI7pKM2d2jJoONXPY99yj6kad5P1vHVbEoPVU9WgFN2Yj2Sb8XiwzpPGQJfEqp/lvG08NUfcAXsUlry/jwFBG0jtLdB5e3lM3hBnEoR049TCfp0RcawVX2+MpB+6S77jizX1ClP6vC/a9t8GdJNU/45HXGdVzDu7c3/0QwAfcQYjGhkuA3uUQYOVuq8N+lz19smkadsHWSjXJioOQ3jBXSm2TvmgjKuQUS9mobv7gYEgruSz9eCR8L7ay9QccTrMc5Ze8bVrsyS8m0NXPBexd7Wf8YFEcBjPZ6oMsk5JoyMDdvTeuiJKY4+PCugCmm0H/SsmFDDDDbmMkN+h1xItWnbchFuHg0bwokEbs8TbOZ8VDC9NH/BFpjfrZQtV0s6IrNtjBuC2oq96LqW1BLjX2OVgOLUvuK9vXYpU+XSfJUJZ6mR34CHPwtvbeWVAchgOl4MAvLb9lNRp6kD7i2aXMKI0RHnfPK0+MQVDKOQlSk6iDagZW6QJYjQXrJSMulrFoE7wIB6TKa9eNAKLmsM7kGpVEw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6359.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(346002)(396003)(39840400004)(366004)(136003)(376002)(186003)(2906002)(31696002)(316002)(83380400001)(26005)(8676002)(86362001)(110136005)(42186006)(54906003)(4326008)(66476007)(66946007)(8936002)(66556008)(38100700002)(36756003)(53546011)(31686004)(508600001)(5660300002)(55236004)(44832011)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dFAwaVBRM1N6MVZlL2c3NFdnNWNBRXpQVUdQckZrU1ZyZGF3Y1ZOWnpvZFkr?= =?utf-8?B?Nm5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p6czdFYS91Qlp5UVBX?= =?utf-8?B?aGFEdU91SXZ4ZXVrMHpCMzR4NmxZdWh3R29xTUZiZ0tRQTF3TFR5YnFMQ3BF?= =?utf-8?B?dFJPK2NQTi9OdFhHM04zYUFNZVVYUWlqQXVDZDdDNVVNTVlEZ2R1UDJiQ2Ns?= =?utf-8?B?cnhOdVFrY0krWGhBeUFwc0d2dU16MUFHZkZDWTBIcEtDM1BFU2RXOEFGb0VK?= =?utf-8?B?aFR3aUxsVFZVeFJodDcvd3Eydkd2UHRVVjRFQUhRVHEzWGV5enJEKzFLLzBY?= =?utf-8?B?bFlRQktOVVl6bndkM1ZhdzlXQnZoanBKYVlCTTZ4SVZkdmYxZEdwMGRLRVF1?= =?utf-8?Q?FhUjCBPduAb0rwIgbdJRNmQ=3D?= X-OriginatorOrg: opensynergy.com X-MS-Exchange-CrossTenant-Network-Message-Id: 487cf7b8-afdb-4aec-820f-08d9a039f556 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6359.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Nov 2021 08:55:04.0262 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 800fae25-9b1b-4edc-993d-c939c4e84a64 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: iHHkoqz/wAfaAgCCAvHAVWT3iGw0I8P+xqumwvINMPiyqxliPnvkkswMRsSV2/NsHRdsqadJ5jXhu7O9FaE76g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3733 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.