Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2399364pxb; Thu, 3 Feb 2022 05:58:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxNEBni1ZTKFejWe7a1eJDLwztjlStUWCbrIWVynYluhljDFN+hV1ckQpUxRIrIsgysO5yr X-Received: by 2002:a05:6a00:1682:: with SMTP id k2mr33801034pfc.11.1643896706961; Thu, 03 Feb 2022 05:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643896706; cv=none; d=google.com; s=arc-20160816; b=pxw50QJVVVVtBDEBMY3++SM7sU2gJQNIDMt9/md5iNuz3y4jDb/xxT1NBtzjKhfbYc v7k5xeFE2CCbE3FiXZ/sMOwG139Ud5wrdAsD/PdttBZI6R9gHVEYYUp1XabdwzfCm72I gJzN7hxFd3ht+uEq/tKj/WLC0nLb3utPBXxPqw5aBmoAw1f7xd8buZNwnxHT4ycnvEUO DUJyQ4SZTieXxA0rgcBw0ZhZK0s8sDAg9EI1JzubMVB4TWKIFuY/Nv428pBdjJC9R9v2 49W2Ir73QlR1cteEXW6jDkdr6xz94Cdad8kPOq7EC31072OpGmWPamOchq4EcTdt8Gwv wGwg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=T3aKxONsxIXlOSsUZ0DsRXcQR+ATXDIYepxye7KZk2E=; b=S/jX8IhKyz3zANDXYqbVu683fpzhvKEqBvwmJf9hTRu5Jrc63Z+uizeYmluXNCPdng YQjv4YnHfCVOL4XO3IPYiaAuQgZ3BCCYFsKJ9HupbS3dv+lfkANCJDdgy3g9dlB6/3Kf FIqELXoJ/XVhu90+UlFTO7pqYVuDbmkw6ztJFMjGGRsuUUdyyttdm5v0ilWLDWRO8uYV cyj3Nv9VcYiwxatPO3Gg61ekHXn3OswTyVGjF2T1F66erisXU0/jriR1sJJhtZkfB4ai qQoO8jlPyTwI2fZk/HQFyytxyapFmMjQTV3MXwyW0OdEvVfM8VbaO4vLeH3sr64Jk7aY JhWg== 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 r18si20945000pga.388.2022.02.03.05.58.14; Thu, 03 Feb 2022 05:58:26 -0800 (PST) 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 S241242AbiBAQvm (ORCPT + 99 others); Tue, 1 Feb 2022 11:51:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235246AbiBAQvm (ORCPT ); Tue, 1 Feb 2022 11:51:42 -0500 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A616C061714 for ; Tue, 1 Feb 2022 08:51:42 -0800 (PST) Received: by gofer.mess.org (Postfix, from userid 1000) id D904F101BFE; Tue, 1 Feb 2022 16:51:39 +0000 (UTC) Date: Tue, 1 Feb 2022 16:51:39 +0000 From: Sean Young To: Shuah Khan Cc: Alexei Starovoitov , kernel test robot , Alexei Starovoitov , LKML , Linux Memory Management List , lkp@lists.01.org, kbuild test robot Subject: Re: [tools headers UAPI] e2bcbd7769: kernel-selftests.ir.make_fail Message-ID: References: <20220128075346.GG8421@xsang-OptiPlex-9020> <347bae9f-f775-4976-3d27-b0c725211d78@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <347bae9f-f775-4976-3d27-b0c725211d78@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 10:57:35AM -0700, Shuah Khan wrote: > On 1/28/22 10:38 AM, Sean Young wrote: > > On Fri, Jan 28, 2022 at 10:27:52AM -0700, Shuah Khan wrote: > > > On 1/28/22 9:49 AM, Alexei Starovoitov wrote: > > > > On Fri, Jan 28, 2022 at 1:32 AM Sean Young wrote: > > > > > > > > > > > > > > ir_loopback.c: In function ‘main’: > > > > > > ir_loopback.c:147:20: error: ‘RC_PROTO_RCMM32’ undeclared (first use in this function); did you mean ‘RC_PROTO_RC6_MCE’? > > > > > > if (rc_proto == RC_PROTO_RCMM32 && > > > > > > ^~~~~~~~~~~~~~~ > > > > > > RC_PROTO_RC6_MCE > > > > > > > > > > So this commit removes the copy of lirc.h from tools/include/uapi/linux/lirc.h, > > > > > so now the test uses /usr/include/linux/lirc.h. It appears that this file > > > > > does not have RC_PROTO_RCMM32 defined on this system, which means it is a > > > > > kernel header from v5.1 or earlier (this was added in commit > > > > > 721074b03411327e7bf41555d4cc7c18f49313f7). > > > > > > > > > > It looks like this machine is redhat 8.3, which ships with kernel 4.18. > > > > > > > > > > I guess my change was far too optimistic; I had no ideal enterprise kernels > > > > > were so ancient. > > > Hi Shuah, > > > > I was thinking along the same lines, however RC_PROTO_RCMM32 is an enum > > value so a pre-processor #ifdef is not going to work. At the moment I haven't > > had any bright ideas other than doing a `#define RC_PROTO_RCMM32 26` at the > > top of the file. > > > > One more idea. Let's see if this works. Check for RC_PROTO_MAX if it existed > before this commit that RC_PROTO_RCMM32, you could define RC_PROTO_RCMM32 > conditionally in the test scope. If not let's go woth your plan of defining > it at the top with some info. Good idea, this works! patch in another reply in this thread. Sorry about the mess, thanks for the suggestions. Sean