Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1171072pxj; Fri, 21 May 2021 08:04:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzl3R0ydfsypP8se/utEVpga2Xp/Rv1IGZb5kAgAOGNBPDJ0ZCYAitIZDD+Z82WNNpys/4Y X-Received: by 2002:a17:906:b048:: with SMTP id bj8mr10804874ejb.236.1621609453945; Fri, 21 May 2021 08:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621609453; cv=none; d=google.com; s=arc-20160816; b=I/r8U99B/LXk36/ZVwvEd7F4okdNfgocDfM6KskwC9RYIXsDv7fzKAPyUvG/Nz66pb oH20FExy+DU8tjNAbnJm1+UUWWHjhmqT1cnlE19wLmCR05JFk770u5Jo2oVkbVzS6ByZ 5X6v7iF7wxcbjZRL+CpRzK9gXBE7dzq0315edG3f7vi73ZxZCktm9dpBHFLWmdLgEFrp khOYtU7RduS7EriPkobuBJz9TIIQYbMA+wuKGbFbp0Fp9cxAcRvoiUHLN7ucuVwviWwt nmGPLUwUyZbCTtNz4KOasyCKE7sAgC3jZJDlEA0BJbd5DgtKl/hRN8gZlxv9/UTCk4rX TUqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pWfEJ33HmYjyJ1Y5NXIDf1GmNE5PqL3F2Pv45dftgSU=; b=pcgGQ37aCZ3JJ6QIxR4EbyjqS4ztwNSUlGww7bk5ThKK93FUs7pRgW/P05nfA9RglL P9PDgeh/kdzlNh1mCl/wRWi4fMUjxWVPeIHxLfWmRlkAGORAibtUNdvoUcZJIloOllCh u+TfkGRRkOq9AcVCm/oMTGql5Lr7xN47y6O5XB1eTvo4UUBD5t2Wzvs4qBB4Zb/vLhNf unlO7S+Qt5w8xKUDJ3Df4kZGJcJ6nLwrSL85f4G7oU92pM1b+B0Px8N752RNCiJHwvlo /NmAs7uvnq8QxC0FiuJtPR3WYaCKWXcDutzwG1AkS7y0QwUGfVHnCGGdyBGe8eF95uLa h+jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EdlG5Qf7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m9si6856303ejj.281.2021.05.21.08.03.50; Fri, 21 May 2021 08:04:13 -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=@google.com header.s=20161025 header.b=EdlG5Qf7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232016AbhETPve (ORCPT + 99 others); Thu, 20 May 2021 11:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231264AbhETPvd (ORCPT ); Thu, 20 May 2021 11:51:33 -0400 Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7559BC061574 for ; Thu, 20 May 2021 08:50:12 -0700 (PDT) Received: by mail-pf1-x429.google.com with SMTP id y15so1279404pfn.13 for ; Thu, 20 May 2021 08:50:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pWfEJ33HmYjyJ1Y5NXIDf1GmNE5PqL3F2Pv45dftgSU=; b=EdlG5Qf7QEWX704/Y6+GYnd32o0nYlnE3E/NiWhrP8dFMil+TqElUzyv7omguVtwPy YhWJOheS/s5hIMi/LxAUa8cGzj4mUq90S+cNqYNcW7QdS33FRMMkowf3JvT71JcwYg5R GNFacIMxL63N9DCAoJ25Z3e8VbnLFY7/i4wg2phjrlPgwSW4uncK7u3Jm6MujnNnmY2H R2+VJj4UxbLn4T1pA6tYFLp9IeHHWzteD+jKFwQOABdmoMrkqJxR305obI6O+YERz3X1 Ldo0fMLzyns1tgycBjHWwK18AuyVvUEk9670Ddhgzb/9QmW4cv9SW7iHg+c7JUZGLJSl 4t2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pWfEJ33HmYjyJ1Y5NXIDf1GmNE5PqL3F2Pv45dftgSU=; b=aV2zNTdQKBuQ19STw4BQLWvsAUuEEegQwltxOlX6lMDoj0FRc6598QiknCMPkl6b24 z9HAAOx7r5Wx98fu23KFstRZI0JrUOkPrnQgyxPzPNqMuhNchFreo1HS5hNSmzZvMYUV rOfj+JvjmmeiS7TQEk8QAlu3GziTr/ROxlwqq3WT5RRM/lNy0TP/s3Y1cMiY0JE21P+b wZWNHB1q6bM7GsyGWEhxcmFm3R5pR3wanA3lUWqO8fgTkDRvNc1J+QHmRAOKlOtC6Itd urX6oE8hXVyk5ZdnLikf4Fjn4y19iO/khEljlzgsm75sopSp41UO612DxXkxKQqEjni/ whzQ== X-Gm-Message-State: AOAM531hkf+Pgycd4pY6MfCDUG93j3gkTvdnaJKjSFi/bpCzb7v9aTaW b0vxiwBifwjrUSH9r3oPfmaX1g== X-Received: by 2002:a63:f5c:: with SMTP id 28mr5378882pgp.84.1621525811763; Thu, 20 May 2021 08:50:11 -0700 (PDT) Received: from google.com (240.111.247.35.bc.googleusercontent.com. [35.247.111.240]) by smtp.gmail.com with ESMTPSA id f83sm2300640pfa.163.2021.05.20.08.50.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 08:50:11 -0700 (PDT) Date: Thu, 20 May 2021 15:50:07 +0000 From: Sean Christopherson To: Borislav Petkov Cc: Joe Richey , trivial@kernel.org, Joe Richey , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , Paolo Bonzini , Mark Rutland , Lorenzo Pieralisi , Mauro Carvalho Chehab , Zhangfei Gao , Zhou Wang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-accelerators@lists.ozlabs.org Subject: Re: [PATCH 0/6] Don't use BIT() macro in UAPI headers Message-ID: References: <20210520104343.317119-1-joerichey94@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021, Borislav Petkov wrote: > On Thu, May 20, 2021 at 03:43:37AM -0700, Joe Richey wrote: > > This patch series changes all UAPI uses of BIT() to just be open-coded. > > However, there really should be a check for this in checkpatch.pl > > Wanna add that check too? > > > Currently, the script actually _encourages_ users to use the BIT macro > > even if adding things to UAPI. > > How so? > > This is with your first patch: > > $ ./scripts/checkpatch.pl /tmp/bit.01 > total: 0 errors, 0 warnings, 7 lines checked > > /tmp/bit.01 has no obvious style problems and is ready for submission. > > Also, in your commit messages you refer to patches with patchwork links > - please use the respective upstream commit IDs instead. Grep for > "Fixes:" here: Gah, beat me to the punch. Stupid weird mutt sorting.