Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4191848ybg; Mon, 8 Jun 2020 01:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkqLjzXSNBInsq0V2O3emMJwxBiIBDvhC/O7B5vDYxO3foW7tHA7WKMWpuoJCD28yK7ClA X-Received: by 2002:a17:906:6453:: with SMTP id l19mr10448260ejn.262.1591603863800; Mon, 08 Jun 2020 01:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591603863; cv=none; d=google.com; s=arc-20160816; b=NnAdtXNWt7cljJLKJHJlKpJBK4Vfs4s3TJ6aNo5ogTxdww1llkrhcsapjKt1PzVXTq 9hiXj6wc5ovrg+VrGOXDec23aJhgPra+caS1kRL6byIoKx/kz69+6gAKKeR9Lmbyku1x zQ1URW1Q19Y6ToOiZ+Z2qafKyr38/RBIvoFzxHXpkgh8dimvxR95i8mQv8y3n6Nb2NL1 KPkcuE9DQwJaNeRJn0UPUTOCYby4AqtZ+M/tH/nfb4jeJ8kUvmeNj3fR8hDc1x5RTulM d7gcHjYrh8UR0uqo6y8aDybc/TTKIfr2B6mPwUkNLgKXRltnxoRnlWSsowYOuJZv2pbt 8sGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=EjQrNI7zMF5Y0xzLknVc46R0yFUGyl7fiVcSOqERa14=; b=iVK2xRV1KuIbsQPgaFlEElyZ2dJ3vaFE9S9uy6X9p2A1Y8BzEiIOkrcaaBD+fY7SVw bYXoK4Reum/ITXnbW1dCDPgrqFi3QGP++PoSzWl65dh5xcfMfZ43+fOrVaiRgv35nf2b MdjPnYoCirt5ll3wRrmeOrI1Ya7l4FwG+q/HZOaF6OW01Ftc2lj00XYgIM/6S8592Ztg feWY2z5IpDd7bX6IgklmmSSeXKBKzwGQMmog50QcB8pZELt5+7iei4aMaA69BkOg2HT5 FczcoWvsiZE0HV3L/ljub9fEvp7PKYGKPHBLwc5Rwu7J0QfBkMhw07SSlmKq5P8XJPqX U/Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RZZDUD00; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id eb10si11209005edb.410.2020.06.08.01.10.41; Mon, 08 Jun 2020 01:11:03 -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=@gmail.com header.s=20161025 header.b=RZZDUD00; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729085AbgFHIIo (ORCPT + 99 others); Mon, 8 Jun 2020 04:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725840AbgFHIIn (ORCPT ); Mon, 8 Jun 2020 04:08:43 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6550C08C5C3; Mon, 8 Jun 2020 01:08:42 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id r18so2126134pgk.11; Mon, 08 Jun 2020 01:08:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EjQrNI7zMF5Y0xzLknVc46R0yFUGyl7fiVcSOqERa14=; b=RZZDUD00YwOtVNwzgGPCI+e7H3TDtuuQGuEK8G7YYt41keF2lpqb1wi+//816DbHjM Rdp7YBRxsCNrkgl9OHYTWy2xzCXAK/s71sZI1nFAXkPUb5Y/kUT8D2IAVbucBlwE9CHk 4wuGm4YHzCKqzKAKBhEBptOwXOTYbLsVirrJQyUmOYBB4vhrcsxIJjJ2nBeEIgiQ+YQt uxLk0+8SMAW2UpQ859oLONzv2VsYK1t6GgZl1L9i5rEPtfBi6DehEFhUgZ1vcFg0CMly Ii6MZ0P1yNMq+S33WLeAv1UOZC4Vnf2QQUV2a6Qcqer+RLXToqXiS7ZBrVGvBK9gFL7r Ujag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EjQrNI7zMF5Y0xzLknVc46R0yFUGyl7fiVcSOqERa14=; b=Tvnv0qHgoPCMdhDBSw+rRlCZC1Y2j/BTyTWJuMRDdeLXfcuobRJ0a7xN3ux5UpJbyE yt+9fJshGK7bsxakq8PobRULyKoLtwpsBnycrhru9VM7SOWnJNqRJLH1ZwxGF+8AIgPg bxqOKsCoLc7m5xz1iObYSs0qXOdzkMDmB4JH3NVQffriJu9MmPqeU5nPatXbXyH3oFhD OyKxSZNuKu0jJ+UAYgH/4CGv4ohYmG/S5FO4aq7O0JVJqzWLkyeGuFi47OqKyWPjMz23 Mr8n1vxb3vh/6FRNmvnUDI5Xt830E8Hsr4w9jAqHavJV5wDZDF08yfCZvFYp/12e3Lep Y7Mw== X-Gm-Message-State: AOAM5308jx16h3mNA0IVuqwXgN1QJHVpejHDnMYQ05XVLaaS/YVuOmz9 AACyvjaahIk4uj4FhV2FzWVERGj2oTuZ3C47AV913711+Ms= X-Received: by 2002:a63:545a:: with SMTP id e26mr18979915pgm.4.1591603722451; Mon, 08 Jun 2020 01:08:42 -0700 (PDT) MIME-Version: 1.0 References: <20200604233003.GA102768@rikard> <20200607203411.70913-1-rikard.falkeborn@gmail.com> <20200607203411.70913-2-rikard.falkeborn@gmail.com> In-Reply-To: From: Andy Shevchenko Date: Mon, 8 Jun 2020 11:08:30 +0300 Message-ID: Subject: Re: [PATCH v2 2/2] bits: Add tests of GENMASK To: Rikard Falkeborn Cc: Andrew Morton , Arnd Bergmann , Emil Velikov , Kees Cook , Linus Walleij , Linux-Arch , Linux Kernel Mailing List , kbuild test robot , Syed Nayyar Waris , William Breathitt Gray , Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 8, 2020 at 11:08 AM Andy Shevchenko wrote: > On Sun, Jun 7, 2020 at 11:34 PM Rikard Falkeborn > wrote: > > > > Add tests of GENMASK and GENMASK_ULL. > > > > A few test cases that should fail compilation are provided under ifdef. > > > > Thank you very much! > > > * New patch. First time I wrote a KUnittest so may be room for > > improvements... > > Have you considered to unify them with existing test_bitops.h? test_bitops.c, of course. -- With Best Regards, Andy Shevchenko