Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1146218ioo; Fri, 27 May 2022 02:30:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXzjle5tDXVEowx/T3scNI95ccK+UrOor3+bmfChF6Aze4B5GtzKcntHdwAk0KpT3yh8IV X-Received: by 2002:a05:6402:d05:b0:425:b5c8:faeb with SMTP id eb5-20020a0564020d0500b00425b5c8faebmr43292274edb.273.1653643847882; Fri, 27 May 2022 02:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653643847; cv=none; d=google.com; s=arc-20160816; b=ZiHaT9+rhBfBrjVkvGV3y0ChLnfRwGf+PYXoHES1at3v03TEGQj1QhOVgln0c483AL oFqZKaeqFqp4xF5rrWN1y3ylEk5+scNHShovPPABhDw8AooWw2BSpDzVjfjK3MBMKbHf oxIN8SCETda+NxXQBsDJ+iyiXk78T1iagDk5aid7pA9yQeGF83byjVbCbEklopIwRMwn 7OQwplf/gA/+7waLkv46eouU7XxQnmbBc7wHYfavYyoQ/b01OPuThC7FI+O5M+RJ1d8T r8HDWpIXfHei6FKnxzFTXDd0j80yBkl5U/KH1iJbi7tTQGQzI7U6Vd4tG8GrZAytt7pl O6yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=sjBm94r+SZCpqMEtFTlHZhDX0lygeSCfuwzmdT2Wqlk=; b=OGvdta/5TKxmxtL1oieBZlLbKdrVdw5T/H+9p0GIYyP70iGEBDXbmezPJkcVMA7Pt0 IZyG8L0+9syjg8sVQuNfuLB5mvk9rmWumZJjYCijuJvN3JpEnb7RUi7JLZ+Gi3LwDdn8 TqRq9XUzy3nt1BGbETggCf9tXZ5Jx7xOGQxo8TWcOsn1xVETHDor6U6rmYi1eQ36u7m0 4Yvm2UCOH4kE3V7tPmA1bvzb9P1k4I9NHVXPh0wAxvPeorXDuhlaGOiYf3s46Zm/FCRl E0+CnbWMfHRFqRfo0k5VAtsCycyWlvlDJni35WYaKeUIvm4/qmx4rO8I00FxVFj2X/Z6 /95Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h9-20020a05640250c900b0042afd968660si2709407edb.64.2022.05.27.02.30.20; Fri, 27 May 2022 02:30:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244128AbiEZJBA (ORCPT + 99 others); Thu, 26 May 2022 05:01:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiEZJA6 (ORCPT ); Thu, 26 May 2022 05:00:58 -0400 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9619AA7E39; Thu, 26 May 2022 02:00:57 -0700 (PDT) Received: by mail-ej1-f48.google.com with SMTP id f21so1696723ejh.11; Thu, 26 May 2022 02:00:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=sjBm94r+SZCpqMEtFTlHZhDX0lygeSCfuwzmdT2Wqlk=; b=6C+W6A8XmfgMmb8aPF2SRZh4gN0TaqzULFWf8gsRbuSSq86nIoC3D+eTuN6Rwp5uYG 1Z0Uoi8pOVJdx1Tr1BxeLiH1J7nBy6iIgPnGwNkpmi6Enlrg8GW7ntNM0CP29HxLjXP0 V0hTjsJivA1iYVgbDs/oAOpneglsr9H+ymGvGVZWI+D6fylFpl6FZWNf57dd7Uiehavn rLUatSCCtkjz/1t05lR1HEyuLbLtUK7lXwJiH+ElYucLPFxgNhT7616C4vylwqhYNFh0 4SQZDX3+e90pZ+Z2+ceACvskD8L/aoz0SfLzlrGRvrLIrBOtk80EAPw65RnQ8bw5U5nz LnoQ== X-Gm-Message-State: AOAM533QXPiTWIFd8GZm6+1yNsf7pTVhPb4TOMpAtlWRQhQAgVzbx7Iv tPEVeHtokyEaNhP+dNr5A/A= X-Received: by 2002:a17:906:49c6:b0:6fe:95bb:93cc with SMTP id w6-20020a17090649c600b006fe95bb93ccmr32272454ejv.30.1653555656059; Thu, 26 May 2022 02:00:56 -0700 (PDT) Received: from ?IPV6:2a0b:e7c0:0:107::49? ([2a0b:e7c0:0:107::49]) by smtp.gmail.com with ESMTPSA id a24-20020a056402237800b0042ae4dea360sm511221eda.63.2022.05.26.02.00.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 May 2022 02:00:55 -0700 (PDT) Message-ID: Date: Thu, 26 May 2022 11:00:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] Revert "linux/types.h: remove unnecessary __bitwise__" Content-Language: en-US To: Linus Torvalds , Bjorn Helgaas Cc: Andrew Morton , Jonathan Corbet , Nathan Chancellor , Nick Desaulniers , "Michael S . Tsirkin" , llvm@lists.linux.dev, "open list:DOCUMENTATION" , Linux Kernel Mailing List , Bjorn Helgaas References: <20220525144638.293934-1-helgaas@kernel.org> From: Jiri Slaby In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 25. 05. 22, 18:02, Linus Torvalds wrote: > On Wed, May 25, 2022 at 7:46 AM Bjorn Helgaas wrote: >> >> This reverts commit c724c866bb70cb8c607081a26823a1f0ebde4387. >> >> Jiri Slaby reported that c724c866bb70 ("linux/types.h: remove unnecessary >> __bitwise__") broke userspace, including open-iscsi, because it uses >> __bitwise__. >> >> Restore the __bitwise__ definition. > > Hmm. > > Presumably it's only the uapi case that actually wants to re-instate it. > > And I'd rather make that "__bitwise__" case explicitly special, with a > comment about why it exists when the kernel itself doesn't use it. > > IOW, rather than the revert, maybe something like the below > (whitespace-damaged) instead? > > Jiri, does something like this work for you? Yes, thanks. > --- > include/uapi/linux/types.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/uapi/linux/types.h b/include/uapi/linux/types.h > index c4dc597f3dcf..308433be33c2 100644 > --- a/include/uapi/linux/types.h > +++ b/include/uapi/linux/types.h > @@ -26,6 +26,9 @@ > #define __bitwise > #endif > > +/* The kernel doesn't use this legacy form, but user space does */ > +#define __bitwise__ __bitwise > + > typedef __u16 __bitwise __le16; > typedef __u16 __bitwise __be16; > typedef __u32 __bitwise __le32; -- js suse labs