Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3572801ioo; Wed, 25 May 2022 03:47:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8CfRM+nRps3/ByaRTpOhlRa6Ej8/2v0rV8f1AHO+EqfNznl2Tz6kDdIppO3ti9BeAG+kl X-Received: by 2002:a05:6a00:22c3:b0:518:5126:67f6 with SMTP id f3-20020a056a0022c300b00518512667f6mr27888294pfj.58.1653475640611; Wed, 25 May 2022 03:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653475640; cv=none; d=google.com; s=arc-20160816; b=wQ3joRgAfrEiLroju1QT2HgC3FJLd/TkrDvkZFYKrl/suI3F6xZ5B/XN1tAXgRmLz/ l+zRMqjtvR8x5ehj3cZX1wvF5H0ABJn7XmXkQf1zyi3/rPI1U23WliIjlc7txUdlivdx iNiZJkvfDBzVWedK1SbSM7zI+D6NNAkZe9hpO3pXXw+GOhKjBbcDZfqjw8DIMrKsc7u2 krUpN+QC98ACviuR+dBJtQAXqrSBTCf32YD1yBEVYIbiQDx3zVPkPiNvtZsg/fC0yRCG 3weiu3Ha6OicNUX5IyfDWFZBsPrw/fgc5wSZEISsP8C9//+LZUWEx48bsvaMGhSPGvRF 9O6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=hASB6r9xzcjYCUXwNBMWmu+9RpmOsGixK8faPKaB8w4=; b=FjOGvUKeoV5A0imydY7WciAx9WZMoIAD0un1xaRh8PK1/u6cSq/5s90Rm76JvEv7td 5Og7uvnpPQm70lzBsiLI3RfnO+aDjqGd8O1D4wR5m1esgq4jOh2ld4AWgkeoZMMoxoA1 m/kqa8gq6AePjFV2CCZtFmNOc4mCSoz6bp0WbS19z9ZJ/cAwLYQLADF4xgQMLU7iWvCl bqbUqOMRfN2QHtSpSEAv9jODk8qSQ8cURIcYBWhRo2nIactchHb+k5xoM08OhVrzmZe+ hhV1bq910xhPzNF8dpDH1h0ev8o33mFNwBLxo4jkVUupihn1JuvGJK9xQFIk4BPPTojS 44nw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a631750000000b003fa1e2de690si14223056pgx.441.2022.05.25.03.47.09; Wed, 25 May 2022 03:47:20 -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=fail (p=NONE sp=NONE dis=NONE) header.from=mess.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241124AbiEYHkq (ORCPT + 99 others); Wed, 25 May 2022 03:40:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230142AbiEYHkn (ORCPT ); Wed, 25 May 2022 03:40:43 -0400 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 000AA72E3E for ; Wed, 25 May 2022 00:40:42 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id E8B07101CCD; Wed, 25 May 2022 08:40:37 +0100 (BST) Date: Wed, 25 May 2022 08:40:37 +0100 From: Sean Young To: Jiri Slaby Cc: Mauro Carvalho Chehab , Linus Torvalds , Greg Kroah-Hartman , Andrew Morton , Linux Media Mailing List , Linux Kernel Mailing List Subject: Re: [GIT PULL for v5.18-rc1] media updates Message-ID: References: <20220322101406.459e2950@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,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 Hi, On Wed, May 25, 2022 at 08:42:26AM +0200, Jiri Slaby wrote: > On 22. 03. 22, 10:14, Mauro Carvalho Chehab wrote: > > Hi Linus, > > > > Please pull from: > > git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media tags/media/v5.18-1 > ... > > Sean Young (10): > ... > > media: lirc: remove unused lirc features > > Hi, > > this breaks lirc build: > > [ 59s] lircd.cpp:489:49: error: 'LIRC_CAN_SET_REC_FILTER' was not declared in this scope; did you mean 'LIRC_CAN_SET_REC_CARRIER'? > > [ 59s] 489 | || (curr_driver->features & LIRC_CAN_SET_REC_FILTER)) { > > [ 59s] | ^~~~~~~~~~~~~~~~~~~~~~~ > > [ 59s] | LIRC_CAN_SET_REC_CARRIER > > [ 59s] lircd.cpp: In function 'void loop()': > > [ 59s] lircd.cpp:2069:82: error: 'LIRC_CAN_NOTIFY_DECODE' was not declared in this scope; did you mean 'DRVCTL_NOTIFY_DECODE'? > > [ 59s] 2069 | if (curr_driver->drvctl_func && (curr_driver->features & LIRC_CAN_NOTIFY_DECODE)) > > [ 59s] | ^~~~~~~~~~~~~~~~~~~~~~ > > [ 59s] | DRVCTL_NOTIFY_DECODE > > So the uapi header defines should be brought back, IMO. The lirc.h uapi defines the lirc chardev uapi. The uapi has not changed in any way, for old or new kernels. So the lirc header used to have feature flags LIRC_CAN_SET_REC_FILTER and LIRC_CAN_NOTIFY_DECODE which were defined the in the lirc.h header, but never implemented by any out of tree or in tree driver. Neither feature was or will be ever implemented in the kernel; LIRC_CAN_NOTIFY_DECODE is handled via the led subsytem, and it is unknown what LIRC_CAN_SET_REC_FILTER is even supposed to mean. Again, I have not found any implementation anywhere. You are trying to build lirc user space daemon which is no longer maintained. The last time the lirc daemon git repo had any commits was in 2019. User space tooling has been replaced with daemon-less ir-ctl and ir-keytable, which uses BPF for IR decoding. The right fix is to simply delete the offending lines in lircd.cpp and all will be well. Sometimes source code needs a little maintainence. These changes in the lirc uapi do not change the uapi in any way, just the ability the build some unmaintained software without trivial changes. Thanks, Sean