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 B6A25C433FE for ; Tue, 15 Mar 2022 17:03:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350398AbiCORE0 (ORCPT ); Tue, 15 Mar 2022 13:04:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237460AbiCOREZ (ORCPT ); Tue, 15 Mar 2022 13:04:25 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7914B764D for ; Tue, 15 Mar 2022 10:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647363792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=OmxYI6ts0ifPqvBUGqySYDpgc0rBSTfKUOaCBQr9r+M=; b=LprTYFP7uPGFn+xjzs0uz8dgxJIg7HNYyTR5mw47jMUCLnKg6GqLkOFYKTn8RJpU6OsN73 Z7ujcqAP44kNNSEOfIrJZBgdLazFRz4DvlPE0vLW2kpG9HlpYLNlYEjgTu/wxf9AJ2Auj4 mJBD3RL5+NicXDUy+L9M0AfW/ot7Yd8= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-610-0U2NO_mePjW92Fwps6qDsg-1; Tue, 15 Mar 2022 13:03:11 -0400 X-MC-Unique: 0U2NO_mePjW92Fwps6qDsg-1 Received: by mail-wr1-f72.google.com with SMTP id h11-20020a5d430b000000b001f01a35a86fso5500229wrq.4 for ; Tue, 15 Mar 2022 10:03:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=OmxYI6ts0ifPqvBUGqySYDpgc0rBSTfKUOaCBQr9r+M=; b=n8zVFtS/WDLHZLfvwXo4or4p63sPRpygpi/j+YTGrVzrEVmIkeLMlyJlTXKZbZQl7h G7sTo9QS77XEngIlJx2plLbnYhhiCEZsl57gYQMltt2lEvHrfhPRup3uDyf4EK5jwd7+ 9NQTKtq19Mi3PdPuzIi2Jo2ZzXyIr99p2c/M9Ct5v+y9/UGlxx72IpK9oUGN/9KcWr4t RzYPmP024O4RCxxmKMDf36zIf6n94pcGj9uYQXUFQv30VF95dyDSbmB6l/69CzDzCukR H3YOFmFbu73fYMmbdDKrRN9fGV6rCTCcsRVrv0CUCUKXA9P1oeMf5iYvbRsLgJZ975Ni ae1Q== X-Gm-Message-State: AOAM530v6Jtuvr8jvVxJnpWBeMMusBFGpTQwunq+SM66v5MTuYQpJG4b BFVYpoiSlUGXJ3KEgRv8YXwNmCLRcq5+XAe7sBCziUNo9sVHsi4OGrBB+4bKSTJ3WUjAjF2YJis jO06v6brmJC5EejxN3gET X-Received: by 2002:a05:6000:2c6:b0:203:871d:aaa4 with SMTP id o6-20020a05600002c600b00203871daaa4mr20082226wry.47.1647363790163; Tue, 15 Mar 2022 10:03:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0VnXioS5GPLkgJGEECy6qRxXD0f5fqDGsdTj5oM5pW6HFay89xxxO5qnSXYIleqPeTR4uQw== X-Received: by 2002:a05:6000:2c6:b0:203:871d:aaa4 with SMTP id o6-20020a05600002c600b00203871daaa4mr20082206wry.47.1647363789931; Tue, 15 Mar 2022 10:03:09 -0700 (PDT) Received: from redhat.com ([2.53.2.35]) by smtp.gmail.com with ESMTPSA id j7-20020a5d5647000000b0020372c969d9sm15998430wrw.29.2022.03.15.10.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Mar 2022 10:03:09 -0700 (PDT) Date: Tue, 15 Mar 2022 13:03:05 -0400 From: "Michael S. Tsirkin" To: Bjorn Helgaas Cc: Andrew Morton , Jonathan Corbet , Nathan Chancellor , Nick Desaulniers , 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: <20220315130258-mutt-send-email-mst@kernel.org> References: <20220315153048.621328-1-helgaas@kernel.org> <20220315153048.621328-2-helgaas@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220315153048.621328-2-helgaas@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Tue, Mar 15, 2022 at 10:30:47AM -0500, 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 Acked-by: 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__ > > typedef __u16 __bitwise __le16; > typedef __u16 __bitwise __be16; > diff --git a/tools/include/linux/types.h b/tools/include/linux/types.h > index 6e14a533ab4e..6c18c54e7d7f 100644 > --- a/tools/include/linux/types.h > +++ b/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 > -- > 2.25.1