Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp958208pxp; Wed, 16 Mar 2022 22:38:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD5aDS0ITN+/m1AVzl5htZU9u6EeXmYMdv/kPrg0Janx2p6gzNzjfuiKPsed6yFEyhgVAu X-Received: by 2002:aa7:8b14:0:b0:4f7:83b1:2e0b with SMTP id f20-20020aa78b14000000b004f783b12e0bmr2978952pfd.37.1647495509617; Wed, 16 Mar 2022 22:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647495509; cv=none; d=google.com; s=arc-20160816; b=KNusABSihUGD5U7Lr/n2ck+flmuGBdxryC9FgZQmnDYvJwA9L0/fepenF9PIsa/VMb ZVYl/38N8ms3K0EwYUIu/20UfddD8PhAJDhEr6HGfHuMoT/73FXEAOmUviJ9ZglzAoEH qTfviYC95Ng+2v/GTOk8/9d/vXLcq8c+7p8Cg99kQ8MMTVgfZ/GZ2C1Hi8FgHFLe1Ssj lPPX3t7S3flQeJ8lDK6MG1HvcTMcxKF+HdVNeqQZWhzFWu66uuyM2nz9dyKV1rrTmnxj JqwXdrkcdvo0I7r9gLcGY4cr9r/fQrgXdhAjHISHpIUHoxmYQzEF3mhDG30pvo/Nfe+c hdUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3Ry09iLSHx2cQtWtuZhqw0ykyAFc49bGw40WFxrCrw4=; b=HKTnAtLbWC1gncLOq5UimMzbmtGU0FHyomfOstcbv2G/ccynTFX9YJV7OOBanOpnC6 PW6ufdeY531R1ffLxvpO6j+l6gnM/tiwHxkAyz4Pmt6lNqKgBBgE0I6hfa21RrmjZLrj B1ca84drZutZDgBC9tUUYAYLOCjyr6JCPKj/N1Cp7ErieI/Trd4PpnTqaM+QXL+GXlKe ecFNe46R8L+VXGlgENC7SnGRKMFhx8g/GfmRmaQpCMfbLCmJnwg3PGnrkjmmfnGw83dv asfWPD5ZS/wOAaT1Q89dc27SxfcQx02rXgoHBON8QQvIYCXk6C1J8HqyB+qGne7byefq CZtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hrooWIBu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h9-20020a170902f54900b00151fa5995b3si3784730plf.457.2022.03.16.22.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Mar 2022 22:38:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hrooWIBu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 31F7911F7B4; Wed, 16 Mar 2022 21:43:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349662AbiCOPcK (ORCPT + 99 others); Tue, 15 Mar 2022 11:32:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59876 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349652AbiCOPcH (ORCPT ); Tue, 15 Mar 2022 11:32:07 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1372D5373A; Tue, 15 Mar 2022 08:30:55 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id A4CAD61214; Tue, 15 Mar 2022 15:30:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB981C340EE; Tue, 15 Mar 2022 15:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647358254; bh=TPRJJdUhhjCc3jozDzBZPKh4p23Ybi3V/ACgWbqzz3A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hrooWIBu7/7bNVMI3oLBk9eoylUHJSo1wQMf/qzUiRvPTUEGinH9c1VuvgY6HiLcJ G6ZOvPVeTNQAJzRSEPGmc8RJUmDxD4FFnajxbMB5bXp3JUKRtGj+TLZBsZvllZeSsO 7cYX+NRngJP6UP0O8DDsgcWlsJLY6NFhW+ct1g8ImZB+MiaCCVWHsNSrOtDC02xJCh oQ9/VxMZktNlsWnElRTP2jpE76pt8eEzwAqGKzNvOqMkErfvPm5XMlB3PmYLi2Rgod jRJzWgx9qxJhhjQQHh2MVHM00j2a/LlVlPW4HhH/UzBGGp7ijgzFCOXgl7hOmUbMYH Xi85m1wSMSG4A== From: Bjorn Helgaas To: Andrew Morton , Jonathan Corbet Cc: Nathan Chancellor , Nick Desaulniers , "Michael S . Tsirkin" , llvm@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: [PATCH v2 1/2] linux/types.h: Remove unnecessary __bitwise__ Date: Tue, 15 Mar 2022 10:30:47 -0500 Message-Id: <20220315153048.621328-2-helgaas@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220315153048.621328-1-helgaas@kernel.org> References: <20220315153048.621328-1-helgaas@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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__ 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