Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5697304rwl; Tue, 11 Apr 2023 08:48:15 -0700 (PDT) X-Google-Smtp-Source: AKy350aBcQNe6TMescmddR+dLgc/QQLoAyyMtKdfkhDIu7ao3NjbPW8bZYxJgI9TC7Nodg1gEcTO X-Received: by 2002:a17:906:3b95:b0:94a:69cd:a690 with SMTP id u21-20020a1709063b9500b0094a69cda690mr2989988ejf.57.1681228095392; Tue, 11 Apr 2023 08:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681228095; cv=none; d=google.com; s=arc-20160816; b=lGAm1bHCdRH2q93ndfHJZ+OqDVX77EYNn0VRPHD9W0aGjmgJqajNXJPtHATrtU2tIh fJDAAi8vWnhLcBWWkyb/lLBwd3w3k0U69Nw2vBFThLi6u0Eabjzhz4khxfFKGnmW3pEG KlFILXs//FseDYy8GFULSxlViyTiLm+0o0wxvY9s0VonARvdqcJFSFHjWkFUsO59gbcs qLOaUFrH275hrM/tj15ejsAQ9J/pWPtTd9MhQfeB1LcuCRm3fuHWFH72GVEAOEiZkAkq 0sv66jGv9uQyZUJorssQRcKmCjuJ/CpfkVe92yfi9qDvogH9jNZykhHOfawjKtuxdZQB /2Zg== 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=oCbaxofGbcxai20Ehf55nKseDEhMq94sSdJjy1KOXUg=; b=naCioHYGvr8gv8jfTgTIBJnJwVeFhVK0bqw8XtGwhRq0eMAsog9NXO+VsJiBq72ayy kUeQohVAs2afkqW1BTQS7VpBM3DG3pkSTvVI8ta2IdR1k/tji77Z9unRGTk4oSdgQBAG aq5kc+hGfFcwPmed0t1MTV+V6jG/jG9Kf4OjOWuv3/XNsHeGKXMRcplhqNcWY0tgb7N9 TeqJvTDoxoFwBd6SaJPf4PHO2iq/jBsDMXNtzlaAcEEgQOrLZ0/unoRM87E4RiW0BaAF lAP++gWsME8yeZthNh+83N2DsByqj9hNsz0ffHQhWir10FZ29/T5UExpnqw7ym8ifrBV 3o4g== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm6-20020a1709076b0600b0094a7de37411si2286623ejc.454.2023.04.11.08.47.50; Tue, 11 Apr 2023 08:48:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229575AbjDKPdH (ORCPT + 99 others); Tue, 11 Apr 2023 11:33:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbjDKPdG (ORCPT ); Tue, 11 Apr 2023 11:33:06 -0400 X-Greylist: delayed 74038 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 11 Apr 2023 08:33:05 PDT Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B0B1997; Tue, 11 Apr 2023 08:33:05 -0700 (PDT) Received: from [10.36.2.154] (unknown [46.212.121.255]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 5CBF126235F; Tue, 11 Apr 2023 17:33:03 +0200 (CEST) Message-ID: Date: Tue, 11 Apr 2023 17:33:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 0/6] Initial Rust V4L2 support Content-Language: en-US To: Miguel Ojeda Cc: Daniel Almeida , wedsonaf@gmail.com, ojeda@kernel.org, mchehab@kernel.org, hverkuil@xs4all.nl, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, kernel@collabora.com References: <20230406215615.122099-1-daniel.almeida@collabora.com> <441a96cb-7dd1-0885-df64-933ebdb55e9e@selasky.org> <0ec4becd05c49e8f0bf214fbd62208ea67c2b4c3.camel@collabora.com> <6fc0a0c6-a7c9-5350-9b9e-1ea9dab568d0@selasky.org> <9f896097-8410-4d09-b614-6e792b2160f4@selasky.org> <1d50d25c-e64b-01f4-029f-8b40b46848fd@selasky.org> From: Hans Petter Selasky In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS 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 On 4/11/23 16:19, Miguel Ojeda wrote: > On Tue, Apr 11, 2023 at 3:15 PM Hans Petter Selasky wrote: >> >> If you cannot build a new toolchain without a new kernel. > Hi, > Why not? To me it is very simple: Look at this: -#define FE_GET_PROPERTY _IOR('o', 83, struct dtv_properties) +#define FE_GET_PROPERTY _IOW('o', 83, struct dtv_properties) +#define FE_GET_PROPERTY_OLD _IOR('o', 83, struct dtv_properties) The FE_GET_PROPERTY IOCTL definition is incorrectly specified as reading data. While it is actually writing data. When will this be fixed in Linux - I think never. That's just the way both Linux and GIT works, unfortunately, though that's another discussion. You can put stuff in, but you can't easily get stuff out, without it having consequences. Similarly rustc may depend on an incorrectly specified ioctl() definition, also via other libraries and static linking, that just have to stay incorrectly defined, because it was initially incorrectly defined. Daniel, please explain why the few lines of chunk above (and there are some more) cannot be upstreamed into Linux? > >> Then you are stuck forever to build a new toolchain and kernel? Do you >> agree? > > No, I don't agree, because I don't understand why you cannot build the > new toolchain in the old kernel, or use a pre-built toolchain for that > matter (whether built by you or by somebody else). > >> Or you can say, someone else needs to deal with it, but then you have a >> single point of failure. > > No, you could build your own toolchain and save it somewhere, if you > don't want to rely on a build from somebody else. I'm trying to explain something difficult. And I'm OK that you neither understand nor agree about my viewpoint. See my replies above. --HPS