Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1000012ybj; Thu, 7 May 2020 12:22:23 -0700 (PDT) X-Google-Smtp-Source: APiQypKK7Q2bNu7FxOaECoKTZCZMFQSdbKGC5sPjX9Gla+izLGocXmpcQS0iEz7v/vRYpSydjdXL X-Received: by 2002:a50:a883:: with SMTP id k3mr13291223edc.198.1588879342875; Thu, 07 May 2020 12:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588879342; cv=none; d=google.com; s=arc-20160816; b=aw7oDYUMEw8UrvKVZ5theothZgocZHHschaf1SKNB4XEXszplJpdbifrvbUVRHCI/l hvuxUKJooWqwz83lCG5UL/xFQoR0lVjELc7BQcRfFmP3J97KZlSAQIgXwpcXp6KIGomq ZSMXEy3ObP6b2Wlt7t+u75MlqbQiBWypDxmAJjqwCBjJxfLyo8OeE1GksJRp19jBxor9 /KcerkF5AR7dZMp5cEMtcebIjpDzRoCp0D/ZA3PTIhz1emYi4ejC/CCX8gVRJznmJWTJ uq30npeMb1Mm9ZKTWdrh3qyfrp0+1uiSha9XHsK0OAF5pypIRmDcqdByD2SWR1I0VQub i7tQ== 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=mB3v+OVcFtBZ7ZxmBQPRfPvGnWMyHqtj7wSU+ZXJm/Y=; b=jsUUQMMLj7k+8K84ct5q6WzAcd1X2VH+4Tpvo/mkI/bEWtOkzfv537RboLqLa47Pl3 l8w/SUqzGG41CatcPmTbUIreSrSQJjetLdArwdwsLWcuUSbESaf8DtMSIdgb3+PmVq4A SUp1wCxgew48jvpKIYhhU63s9HGLbWp5Ynl/pZLGI/bzIukWKT2lR8POcwF6fqXGWw40 0BMrLlpL4j9+ey8wZbb2R+beqoz2pDptjlRWjG1ycaKbd9y7wuZVU3MvDFk5TNdD4oGd XPNXY4c3DHxQ1C+LGwLL49umxXGQdoKe5djXnNPsqsZKUZUO8HlwmOHbeUY6Y00qatmf Ncog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ot3OCpEt; 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 o26si2960413eja.150.2020.05.07.12.21.59; Thu, 07 May 2020 12:22:22 -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=ot3OCpEt; 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 S1728377AbgEGTTm (ORCPT + 99 others); Thu, 7 May 2020 15:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726515AbgEGTTl (ORCPT ); Thu, 7 May 2020 15:19:41 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0BACC05BD43 for ; Thu, 7 May 2020 12:19:41 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id d22so3247853pgk.3 for ; Thu, 07 May 2020 12:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mB3v+OVcFtBZ7ZxmBQPRfPvGnWMyHqtj7wSU+ZXJm/Y=; b=ot3OCpEta1bUGj7Eyn/O2BM3DsKQSlfuMJA0kfWjwta8wQItirdklq4ghFKJtmG5D+ tqhEah0MMH9Y7EUmZlL0zvlUaAgXCc54VBnexdTL6xeTSjrMLEqZjLyesOtnn5M24XY5 MMMaeJgNx4pIdqR58iZZK84+fVcbfbW6PVJCqvEP/s8Lm3Rbo6zb9Yh6Mbi1UjxsAa6I QKy5btjVyumIOTJs+2LESxx92KAaDF8ohkvVgrklotjnOoE1W8mm2CD5YP94A5vrn1Bw YVmmjLVNoGMNdY1mhSyfsRaFkHkLZvkA4l04C27gesBHsdKuMmfarNQqcQFAd82vY6Fu XTeA== 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=mB3v+OVcFtBZ7ZxmBQPRfPvGnWMyHqtj7wSU+ZXJm/Y=; b=FMWxTkzLnLTVgsOZJxIHaDQbYU+nFjrRWO6JPd+IrKZ1nSZBIM9XvclWYlnE+6HpWR MdHAPfFM7WgS/xry7X6wiCFqRwxF4Rs1/FhBesZah3XhEbPU3xXjR3nM57mdyIGfzCeQ p8anUBm8N/AljAJNw3EOcKw4beS9bHoaT5U2jK1LgoiOB9JRzLoOLzp+ETiwVTbWctnc 5cN1VDiT3Mpu6IjtXBWxfQ+f7nKK4UXS7rt6DHaXCd4kB1MFHSFe820UW7a/Qs26qC38 ITBEUpNGcroQJ7PxD8suKoBHoOKesFIIRq1to8rsfYslPWgBSqcUdZj+ZSimkWZh+O0o m/7A== X-Gm-Message-State: AGi0PuYWDKpEXKGVBw36NmI4VbPL/PCQrwegrC2UaH84C2wm5AbbIRIU ZkpSRkUINe8CRDRhLHqt2wbxbUDl+ESlwrTEh0jQhw== X-Received: by 2002:a62:146:: with SMTP id 67mr15430634pfb.169.1588879180828; Thu, 07 May 2020 12:19:40 -0700 (PDT) MIME-Version: 1.0 References: <20200505174423.199985-1-ndesaulniers@google.com> <8A776DBC-03AF-485B-9AA6-5920E3C4ACB2@zytor.com> <20200507113422.GA3762@hirez.programming.kicks-ass.net> In-Reply-To: From: Nick Desaulniers Date: Thu, 7 May 2020 12:19:30 -0700 Message-ID: Subject: Re: [PATCH] x86: bitops: fix build regression To: Brian Gerst Cc: Peter Zijlstra , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Sedat Dilek , stable , Jesse Brandeburg , "kernelci . org bot" , Andy Shevchenko , Ilie Halip , "the arch/x86 maintainers" , Marco Elver , "Paul E. McKenney" , Daniel Axtens , Masahiro Yamada , Luc Van Oostenryck , Linux Kernel Mailing List , clang-built-linux 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 Thu, May 7, 2020 at 7:00 AM Brian Gerst wrote: > > This change will make sparse happy and allow these cleanups: > #define CONST_MASK(nr) ((u8)1 << ((nr) & 7)) yep, this is more elegant, IMO. Will send a v3 later with this change. Looking at the uses of CONST_MASK, I noticed arch_change_bit() currently has the (u8) cast from commit 838e8bb71dc0c ("x86: Implement change_bit with immediate operand as "lock xorb""), so that instance can get cleaned up with the above suggestion. -- Thanks, ~Nick Desaulniers