Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1521103pxb; Wed, 2 Feb 2022 06:52:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxkiq7KmBtUoNMncZwTCbIKklRlCRn2oKtyg6Cqneq7EuW5XM6H1zB2eNu1i+sXumRDy/zh X-Received: by 2002:a17:907:3da2:: with SMTP id he34mr27375363ejc.595.1643813531682; Wed, 02 Feb 2022 06:52:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643813531; cv=none; d=google.com; s=arc-20160816; b=TFrzfdATLY82Gm76w95mR3VhFc3QfR4Eezcc5VUoo7Kwjj1WEfPOKc49p42EDuEuI/ be8SvaUjVXFo9FaxPnDqLq0fLFBzCpl4ptF61FCM6PoInzve6Snv9LqoLJb3vNzUy59y CEdHQicYjdNR6fcr9oKC0FCaRF3fq4kBD6/xXM0Yst9jeia8/Zg9kpUofcBqQLMc1SIL rvgVbeoOXv4wHKSoIr51N31hxMNtqoJ4IZ39SMDbRQKgzzd5xNmbbGkP9R+d8sG2Jj/R GaJlJxRoZfgeou0x41id/TD5XU/GlO4+O+wtkN9PirYXmrUGlA5WvK2XxruJPD4a1jfX NORw== 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=ewZV0XSxtvyJeRmZKGOwhM+JxLWdOUUFYgHWWAWVxKY=; b=P/XbTlOip7bzRfPF0R7AflQ12iOGqtVqMrapjSH56filgLL+LuaUVr2IJR6w0ZqMwq qkvjAB9Lvwr0xAbinZuzwTex+d4jUnCEs8Agl2RXLXEPx6OSUJ9dKsAahJ3x7dOrFaAm v2t0mIJnOHV/X0Xc6X6cE2dL5WkcDx5FYf/NifZU9IX2vhe84W+55IhMtlk4ZhB44Tn0 bwJRX4zO6/Xjhvqnz7JozFeW7uvJpYL65hIRF83XyREfXAEZvf1E4ELYl8UrN2gL8M3j JkEWxzHlTawoIK791ctJLiVwsS97WkaEOjzQA4vbxThkJtnTYr0320CBXdbpWgZHnGc5 pESw== 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 c7si11480804ejc.853.2022.02.02.06.51.45; Wed, 02 Feb 2022 06:52:11 -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 S241256AbiBAQxO (ORCPT + 99 others); Tue, 1 Feb 2022 11:53:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbiBAQxN (ORCPT ); Tue, 1 Feb 2022 11:53:13 -0500 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB44BC061714 for ; Tue, 1 Feb 2022 08:53:13 -0800 (PST) Received: by gofer.mess.org (Postfix, from userid 1000) id 9C4FA101BFE; Tue, 1 Feb 2022 16:53:11 +0000 (UTC) Date: Tue, 1 Feb 2022 16:53:11 +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: [PATCH] selftests/ir: fix build with ancient kernel headers Message-ID: References: <20220128075346.GG8421@xsang-OptiPlex-9020> <347bae9f-f775-4976-3d27-b0c725211d78@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <347bae9f-f775-4976-3d27-b0c725211d78@linuxfoundation.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since commit e2bcbd7769ee ("tools headers UAPI: remove stale lirc.h"), the build of the selftests fails on rhel 8 since its version of /usr/include/linux/lirc.h has no definition of RC_PROTO_RCMM32 etc. Fixes: e2bcbd7769ee ("tools headers UAPI: remove stale lirc.h") Reported-by: kernel test robot Signed-off-by: Sean Young --- tools/testing/selftests/ir/ir_loopback.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/ir/ir_loopback.c b/tools/testing/selftests/ir/ir_loopback.c index 06256c96df12..8dc104690adc 100644 --- a/tools/testing/selftests/ir/ir_loopback.c +++ b/tools/testing/selftests/ir/ir_loopback.c @@ -29,6 +29,13 @@ #define SYSFS_PATH_MAX 256 #define DNAME_PATH_MAX 256 +/* Support ancient lirc.h which does not have these values */ +#if RC_PROTO_MAX < 26 +#define RC_PROTO_RCMM12 24 +#define RC_PROTO_RCMM24 25 +#define RC_PROTO_RCMM32 26 +#endif + static const struct { enum rc_proto proto; const char *name; -- 2.34.1