Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2783971rdg; Mon, 16 Oct 2023 15:06:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFdY1H+fjgIGYOuSXXRfawP5Zsf6nfgUHPIvK12jEA1mnr3EJ8GKJzts8JXp/IpFLpUCipv X-Received: by 2002:a05:6a00:288c:b0:69f:261:ae1e with SMTP id ch12-20020a056a00288c00b0069f0261ae1emr128174pfb.6.1697494017440; Mon, 16 Oct 2023 15:06:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697494017; cv=none; d=google.com; s=arc-20160816; b=Ty3my0HSFHi18U1zlglqkjCxdCMzeff5gJkcTvqk2gbCsVhqGNG96AtijUkxVmIEh7 cFZgtZ0nuq+fuuZnt64omaF4MnQobTnAt/6EfHFn8COnVQa0fe5/9UxO79fCYfCHFCKJ gum0GO1dKcMR16Z2iQ+BBNsVn0+eGgQ8AHXjBZp89GIRKfvOqoYp5hvBucL4mLLSjirf /Zq6/38unc7H2W1xPPEYXiBFBC/x1JHcV/eomnE3/YznL1M2MlEmC9zR8ToRStnXkiTb 0Jw0syewoc+V+UXot+64Xp+uPLx4BlS/anYOCtWBDsGxDv5d64DhNgFJKgARc4TY28bT 0Glw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uxgcJ9Prpia4Vvx+9SxOpdXD9itd8jDcIDDzlnFELa4=; fh=wu3pnWs6dpoPMsBm/3/0ziluvJ2JWwriIDOg36NMf24=; b=N5hji5ySsd7NNiNt4dFGp6Q7qGzDZyDgrqcc7hSZRuW6/XneRh5Ao8GBKkVVG2LGLG IkXuW8HFNm/vS9GzIT7VOKgVKQOiRR87pn7MDD5RbM9GT18qVVXkAetmJQAomJ7jreYd RzJr0nWelWVU6jfqAMKdQAoxESMLoo+bGh1etgvps1p9XRgIkMWifdUxPhgKWzH1MMEY GpUx3qqY/oEhuobuclvQAiIwiR9vXK6z0T34Mt5iUyLUPpGYlBrMaxH0BZI9anz+oxRy XQHPfPyoagRUkDSCa75tNB3VrYqDvhxe79DVPFJR3zHWOtGub7rYZNYm/9vh6DxWabN2 TXvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nhWDHkeK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id f8-20020a056a00238800b006be199ee091si136660pfc.295.2023.10.16.15.06.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 15:06:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=nhWDHkeK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4C4D680612B7; Mon, 16 Oct 2023 15:06:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233554AbjJPWGu (ORCPT + 99 others); Mon, 16 Oct 2023 18:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbjJPWGt (ORCPT ); Mon, 16 Oct 2023 18:06:49 -0400 Received: from mail-qk1-x734.google.com (mail-qk1-x734.google.com [IPv6:2607:f8b0:4864:20::734]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B807AC for ; Mon, 16 Oct 2023 15:06:47 -0700 (PDT) Received: by mail-qk1-x734.google.com with SMTP id af79cd13be357-77428510fe7so424536485a.1 for ; Mon, 16 Oct 2023 15:06:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697494007; x=1698098807; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=uxgcJ9Prpia4Vvx+9SxOpdXD9itd8jDcIDDzlnFELa4=; b=nhWDHkeKpVXODgitSRfBrfDzteWEqZrMlz4Kp+2Zsnb72C4tmdBgWJN4dFBkX9t8bi QY5qT4u81Iycc7s9JrUFrzSxC8Yx1wxRkVCZlAKiPf2w93uAzyOsepaDL9IMvRm7Z89O AjprPDG54spUP3Q5IxCB/V5Bco5AgNzbqlplNfCW9NJLdxx3+9uMe8aBFpYxfUEbpLmC lvzkPOiH1iHHHP93dpbzXLyD8ekSSsFgjxZylLNeCbUBVjq1KQWvwyVC1Zbhajo0mwwt V8Ot1tCSc+4PPVDE+46YNWgxMWslg2xZIUe61ynz8ez7G+Nxwnj6MtOQYLtRlwsCboyJ t3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697494007; x=1698098807; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=uxgcJ9Prpia4Vvx+9SxOpdXD9itd8jDcIDDzlnFELa4=; b=Vhfpe+KBbbD/MR/twyMs5xnasM4cWlRa+1X4CG+kIWNhwMCfUmXeikKbg3H698OvgW 8cUOa8YFa59dc73mfbweGk4q5o4CdbSRE05EYHXv0g0r2WWXbUhHsECvJn76tiBodMBM 0DNbJSBy8aO364bzwZpauTHOEFCdcxnakSpM5lDURd8XjuY0H7boFEmuQt0nz0a3k0wI O6D5/8Wz1SZQdu6m0oAKG4loytwQ/QWJTBYwUWtYRbxcetuA+ot7o5Mq79TjqihV9CUs PNpj4Z9ig3Ex7VyKixdD+JaGtfTwkEEY2U5GADmw+zbe/2wSEeN6HNwD2t20EhsgSXO3 xsXA== X-Gm-Message-State: AOJu0YwSOx+ujV00oyj1Yxy4d6A2+ft02DFCr/YI5RhUyoiTHEi9/Gvn +PsKUDuxLcauguu38bXa5fFiZ3ZJewYLkvPt9QlgBdDjjyfS+72S4Hc= X-Received: by 2002:a05:620a:2914:b0:773:c43e:5e73 with SMTP id m20-20020a05620a291400b00773c43e5e73mr120396qkp.25.1697494006641; Mon, 16 Oct 2023 15:06:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: enh Date: Mon, 16 Oct 2023 15:06:30 -0700 Message-ID: Subject: Re: [PATCH] scsi_status_is_good() uses __KERNEL__ constants. To: Bart Van Assche Cc: Linux Kernel Mailing List , linux-scsi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 16 Oct 2023 15:06:55 -0700 (PDT) On Mon, Oct 16, 2023 at 1:48=E2=80=AFPM Bart Van Assche wrote: > > On 10/16/23 13:42, enh wrote: > > Without this missing #ifdef, userspace code trying to use this header > > directly won't compile. glibc manually removes it, bionic removes it > > using a script. If we add this, the preprocessor can remove it instead. > > Is that the right solution? Shouldn't these software projects be > modified such that is *not* included? i'm not sure that's practical? all linux libcs i know of include these headers. (though bionic only has them because glibc did. i'm assuming the same is true for musl?) i think there's obviously a question of "why aren't these uapi headers, if stuff is using them?". just looking at Android, i see sg3_utils, mtools, compiler-rt (for ioctls), and toybox (for the eject command). or perhaps --- even if most of the scsi headers should be non-uapi, is there a subset of stuff that should be in uapi? but "libc can use this header directly like it does uapi headers, rather than having to need a human manually fix the header" seemed like a step forward from the status quo where everyone's shipping their own hacked-up versions of these headers? > Thanks, > > Bart. >