Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2658825rbb; Wed, 28 Feb 2024 08:33:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX/dWSLbKK2hkKRzyDXvHrP7M14XX+WSwh1pzloQvDS+S8Bkw1Ttc2B6/M09YO4XQdA0b1u4rnqhXyd0jLN0btSmERb0AfWshnAxvG/KQ== X-Google-Smtp-Source: AGHT+IHWLWcD8VItAdEQm6FQkpP4MnzF9mezu4rw/WnxrogNA336i03KkAFNpbSY+JXycJ30VLaO X-Received: by 2002:a17:90a:49cb:b0:29a:d44d:4231 with SMTP id l11-20020a17090a49cb00b0029ad44d4231mr191340pjm.4.1709138001056; Wed, 28 Feb 2024 08:33:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709138001; cv=pass; d=google.com; s=arc-20160816; b=MgszsZtxkgJfVS3zPt2WoQcHFHMWoxvm6mFPa12qjnbL2CIGYvJTQrdulfeG78Ywv1 vCp2vWCV+vPgWYPGVtY9wylq5uvgcvmRFETx3zCs4DYTPCrH/BZGCDf94JKOO2fmA1a5 UXCmyzJWop+PQ54ZJSInPkt5NRe7342JkgUZChf6RjfdXgvg1Iyv3vMBT3Ult0CPjf8j E011ZmzHWddDcfu7yp3DuMY3bswjSOwKBYP6P/9zpPPZTD7tvFPZC9+6T/rcRVBT+a6e qkkGZIWWRaPsnteGj/saNtQMTWdBD/D2Bet1emU7hgPpke4Lp6IuF24/f8m2OIXOO7ol q+2w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QhE1MQsKvhB9REC+482u9v2wKLir8r1v7/0zkgMeFU8=; fh=WkDv4nvmJBX521LgUeIBbueqvbNlKcg8GEzdY/pcp4g=; b=qaiWHVT05NWH71tmlNwjaseMeLBxik8bTcY9XDO/rHTKt/TXGzzvo/+ggPx41O2Tqy 9L6sB+xVYaNZGnOLCUJl2JAAIXmKzECSUbJ/Jwsauy3QjNPB74z3VfjtyQ7IftYrEuPj vj2RhpTt2e/qDMXJ5hfGPSRaUN0JTAXpnpa2BBZiLK7PPg3ilkJkt1Y+7wnAdu2Cn+lG ojxZpkaWV2clwEESKiSHGfJnz6wxqnevmKR3FtHOPudBVQxyxtaQOLKPbeaDeAIk6Ngw gv3bJUcDhuTomuKcSyLs5GZlYUofRj64HL5IHrqS+nCu7cBnX4r+hVxhZA6nRB6d2n9P RxgA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NsEDV237; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-85373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id nl17-20020a17090b385100b0029af3b205f4si1573741pjb.30.2024.02.28.08.33.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 08:33:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=NsEDV237; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-85373-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85373-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BC638286DB9 for ; Wed, 28 Feb 2024 16:33:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39276208D4; Wed, 28 Feb 2024 16:32:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NsEDV237" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA7656EF0F; Wed, 28 Feb 2024 16:32:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709137958; cv=none; b=KGCuNDzerL/EIgQbNjsUiHTdiRfA0WS30bivoiLiu+FZrmZ/D/Vk+MDdsKM6jHDGljZDA+6Y7Xnh11XBg2LIJn/ZiANJIZ6IZ7QV9f0Gcir3MEmWPEd+ZCMgQ2YdzQrqnLmfNob9/u4MZWTmEnzpozYRErUIUzn8vrWRUW2m6bA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709137958; c=relaxed/simple; bh=d3rBt9ZoE8GZdyPyKzBUGndsZ5i3T4Yv6JMjZVtygx0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=upTXDqhW4W2qoTDe7bu1VO0ZbvudCHVF97hJSzyWaRgEZb1/j0DbPjbAb2Iv9/6PbAujYODXH3lpyxYC66h6PjpMVmQ8/NxV5mUz9wf+6JaZq+3gz54iND4+cQLHMqEsFUSASy4LVQa0bsvS2vxrOIucGDmLomZiK3CBWuOiTag= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NsEDV237; arc=none smtp.client-ip=209.85.128.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-607dec82853so60023047b3.3; Wed, 28 Feb 2024 08:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709137956; x=1709742756; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=QhE1MQsKvhB9REC+482u9v2wKLir8r1v7/0zkgMeFU8=; b=NsEDV237y0cDLgmEBNmAnOe6HdD1lCWyZnmcfxmIIDBGGukvv16QArr8HIPB+Sf7IK Y1DKvs1QHvElqpQUz+IOMCgijWfsHTvG5r0Q97bYWF0ZInsgYQD8lPUPykSURokUgBQx jE4N2vf+vs0ASrL03FzJ75uf7bhWCTpIkO36xb0Tad7m+R2QwnG7X6I5PZmxxHl0Iwvs wWMiS/5phXJKESdp8hQuV9V9QJD+KclzhRpqGEGRcUSC6GX0r9QWCrocfMoRdSrpVkiR Z8C7qJ0iK2cxb7XjGYwjbljtxq06mrx4WDPsF0ijiHrI7jiaTxiRLEA/weuMlS6imreT PdIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709137956; x=1709742756; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=QhE1MQsKvhB9REC+482u9v2wKLir8r1v7/0zkgMeFU8=; b=jt3xVtbNatqatAemPgtCA3gTsiggLnpBwoVF/q8D8/X1a8kNq+q8fgimdTKpL49flm lQhZX0h0nP89EBPq50nbm/p1Mdc9f3LzBFQw7wPeXORvffXGW54tTZ3CQAVHCGHY28Rm L72Y3vzgI/Ti/XqCQUs3podjOEfzx+fiEheU+iTI9nQww1Dd2rNdngJL0zu3PbXwirds NFB93Tc8F4kOWp9MLvJPTS7+dsrM0LJGAa5+7wfk94MSMfOC7f3ry7Hd6V7XoA/vEaDF t0Lb2zT34NOdybBRf7S2yJOtwIX7NZWnCr3egEePb82/q0VxHkfnaj0Ct+pAXVQur+v7 9vTA== X-Forwarded-Encrypted: i=1; AJvYcCWDfPUkAygEd/11NIzLK3CoHONu966F2GIqm+Onsd67g6b/BdaqXm6NdYMZzgAZZ1l0Sf2VViGUxM+dVLiNAayw8xAdcQTVtIluqRg/rPYIBQuWj9UM+sr5efYzeUeJ6XoZINPuBVyOW6upwEFA4SfXRlFrMwE1DeUoBFFSbt7NiDO7hOIK+rnUYUJ3JLd+GJD/qOfTuK1mjU6pWOif X-Gm-Message-State: AOJu0Yx/tmmPZ2Ux+3P9TCxu7PK0i3kGp3hQzbNWCoz3/WzQHwUuxXym EPy78rXWtUcnP9C0zjFS6iS6X9qi9bDPkvJK4q/5E3IRA1tQk3cs X-Received: by 2002:a81:9a43:0:b0:607:7dcf:7a94 with SMTP id r64-20020a819a43000000b006077dcf7a94mr5535918ywg.6.1709137955942; Wed, 28 Feb 2024 08:32:35 -0800 (PST) Received: from localhost ([2601:344:8301:57f0:2256:57ae:919c:373f]) by smtp.gmail.com with ESMTPSA id l141-20020a0de293000000b00607f8df2097sm2421611ywe.104.2024.02.28.08.32.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 08:32:35 -0800 (PST) Date: Wed, 28 Feb 2024 08:32:34 -0800 From: Yury Norov To: Alexander Lobakin Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Michal Swiatkowski , Marcin Szycik , Wojciech Drewek , Andy Shevchenko , Rasmus Villemoes , Alexander Potapenko , Jiri Pirko , Ido Schimmel , Przemek Kitszel , Simon Horman , linux-btrfs@vger.kernel.org, dm-devel@redhat.com, ntfs3@lists.linux.dev, linux-s390@vger.kernel.org, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v5 14/21] lib/bitmap: add compile-time test for __assign_bit() optimization Message-ID: References: <20240201122216.2634007-1-aleksander.lobakin@intel.com> <20240201122216.2634007-15-aleksander.lobakin@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240201122216.2634007-15-aleksander.lobakin@intel.com> On Thu, Feb 01, 2024 at 01:22:09PM +0100, Alexander Lobakin wrote: > Commit dc34d5036692 ("lib: test_bitmap: add compile-time > optimization/evaluations assertions") initially missed __assign_bit(), > which led to that quite a time passed before I realized it doesn't get > optimized at compilation time. Now that it does, add test for that just > to make sure nothing will break one day. > To make things more interesting, use bitmap_complement() and > bitmap_full(), thus checking their compile-time evaluation as well. And > remove the misleading comment mentioning the workaround removed recently > in favor of adding the whole file to GCov exceptions. > > Reviewed-by: Przemek Kitszel > Signed-off-by: Alexander Lobakin Signed-off-by: Yury Norov