From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A4A16361 for ; Wed, 25 May 2022 14:34:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22B91C385B8; Wed, 25 May 2022 14:34:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653489251; bh=jKMXS9Z2wSf/iYiPIqP+VUf/M/S8DyVS0usjv1+qV2c=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ltGVKF9ILk+J3qDoXXxbOxuefxDlIeGH5cypEsKhRPY5BnK8naQBWLrJn1aWrkPny HcqttzfzqxJilDJv+SOlZl4pTjpU+vwO5RCUmd9Yw+yQaOCjZ6W9AH+7VXbI8X2X2p hwem9EMNKPwJ3vW+IW0uTscg+pY1KKTtZp5TIceRFt6eNSzGW+UZsiCt22qcRP+OV/ eZLIAszeyj+0rWh0zPUPkwZySV7RgtOxnHt+hYHF+ggHwtWIMSq7Gb4XbUwAfNVaSI chxWV3rYlzngrCzUkeOZvYKJMHmjz4L9L9t1wmTuyCS3c7vfToXNFBM9TDRP8yOSaJ QSjcECuuOlYew== Date: Wed, 25 May 2022 09:34:09 -0500 From: Bjorn Helgaas To: Jiri Slaby Cc: Andrew Morton , 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 v2 1/2] linux/types.h: Remove unnecessary __bitwise__ Message-ID: <20220525143409.GA292780@bhelgaas> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, May 25, 2022 at 08:51:29AM +0200, Jiri Slaby wrote: > On 15. 03. 22, 16:30, 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"). > > > > Signed-off-by: Bjorn Helgaas > > Cc: Michael S. Tsirkin > > --- > > include/uapi/linux/types.h | 5 ++--- > > tools/include/linux/types.h | 5 ++--- > > 2 files changed, 4 insertions(+), 6 deletions(-) > > > > diff --git a/include/uapi/linux/types.h b/include/uapi/linux/types.h > > index f6d2f83cbe29..71696f424ac8 100644 > > --- a/include/uapi/linux/types.h > > +++ b/include/uapi/linux/types.h > > @@ -20,11 +20,10 @@ > > */ > > #ifdef __CHECKER__ > > -#define __bitwise__ __attribute__((bitwise)) > > +#define __bitwise __attribute__((bitwise)) > > #else > > -#define __bitwise__ > > +#define __bitwise > > #endif > > -#define __bitwise __bitwise__ > > Hi, > > this broke userspace, like open-iscsi: > > [ 34s] In file included from session_info.h:9, > > [ 34s] from iscsi_util.c:38: > > [ 34s] ../include/iscsi_proto.h:66:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'itt_t' > > [ 34s] 66 | typedef uint32_t __bitwise__ itt_t; > > [ 34s] | ^~~~~ > > It looks like we need __bitwise__ back. Crap, sorry. I don't know why I thought it would be safe to remove something from uapi. I'll send a revert. Bjorn