From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D93CC433F5 for ; Fri, 11 Mar 2022 01:52:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345455AbiCKBxW (ORCPT ); Thu, 10 Mar 2022 20:53:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238035AbiCKBxV (ORCPT ); Thu, 10 Mar 2022 20:53:21 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC15417B88A; Thu, 10 Mar 2022 17:52:19 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 74BD5B829A4; Fri, 11 Mar 2022 01:52:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7C67C340E8; Fri, 11 Mar 2022 01:52:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1646963537; bh=2Gke8hh3aIhj9iTkxhpQghxW0+aYsJifVXn4KB8RgQY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=XGekMziLl59NDO8JIAbgZiw2jhRA9ZtLzNZDJb2liZKXKA0C4dovTLBI1D9lg8Ct8 lVnjqvriGUWQBOqfbKY8YFNYF7LrXRprhxODCRRFgmmPqnpCu5ec6+aL3w5Y3OcZ6q a4YmwV9WrQIiWolOegSe2xs0R3gW9/sdvQoXo8eg= Date: Thu, 10 Mar 2022 17:52:16 -0800 From: Andrew Morton To: Bjorn Helgaas Cc: Jonathan Corbet , Nathan Chancellor , Nick Desaulniers , "Michael S . Tsirkin" , llvm@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 1/2] linux/types.h: Remove unnecessary __bitwise__ Message-Id: <20220310175216.252fabefeca040004216d40d@linux-foundation.org> In-Reply-To: <20220310220927.245704-2-helgaas@kernel.org> References: <20220310220927.245704-1-helgaas@kernel.org> <20220310220927.245704-2-helgaas@kernel.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Thu, 10 Mar 2022 16:09:26 -0600 Bjorn Helgaas wrote: > From: Bjorn Helgaas > > There are no users of "__bitwise__" except the definition of "__bitwise". > Remove __bitwise__ and define __bitwise directly. > > This is a follow-up to 05de97003c77 ("linux/types.h: enable endian checks > for all sparse builds"). > Can we change the copy-pasted code in tools/include/linux/types.h while we're there? --- a/tools/include/linux/types.h~linux-typesh-remove-unnecessary-__bitwise__-fix +++ a/tools/include/linux/types.h @@ -43,11 +43,10 @@ typedef __u8 u8; typedef __s8 s8; #ifdef __CHECKER__ -#define __bitwise__ __attribute__((bitwise)) +#define __bitwise __attribute__((bitwise)) #else -#define __bitwise__ +#define __bitwise #endif -#define __bitwise __bitwise__ #define __force #define __user _