Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1633983pxb; Wed, 2 Feb 2022 09:05:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjOaDTnAXTOpsa+LYt1mMSbbz6CM7+T74dwQFW+jdzapEDgkYAdP2r5ucuzvDaTX1wkZdw X-Received: by 2002:a05:6402:1e8b:: with SMTP id f11mr31859876edf.322.1643821550813; Wed, 02 Feb 2022 09:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643821550; cv=none; d=google.com; s=arc-20160816; b=gHoRAOEGLVOpjY6gUmtYlUzg6sNHbf14rAQN2U/7HbSUUagxMg48h+0welwmbrK48b 1Urg2bQriSNR4NWmhpYpBsg1t4fY4A/iCh5BLXqAmbj7lj4h0TSVavrbF4YsGbKLotve DvDxHod+XeK9lkHfVqEuHeJH4c4TYeflb91Mj2CyY1EYz/w+X7rrSnPwRrHdZUGcFRxY ILqqpVG8M3g+0BY7FDz+xowh4QZiwsmu3PdIr+wZ/MB0wjfiDHsLWpm/aKOJQZTPkt60 mMEEtoQZbCKpvePPgJ9DGl6NayG99MRzCv+AevGDTOv0H1hZeAzTF95zPSFsL3G1Nrps WB7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date; bh=BeXwxoAy2SzhUAqbhN/wcenmpEJZKL2O8yAuodqLCOQ=; b=vH03b2SvxzML8pNXA8HJ3+0oF00UnqesSbtMcrbWhYqfKPJ5VnNit4pAuQd4mXyINh OdfsvvjgpzAcPWC3KGe50lC4Sc3RrT4BFo/NqKbebRAoK3wMs7Qfb2cpJSeX8bvr7ZTS usJUJv7FxoD5hhmrHM+b0IqDLTqM1LyjpwX4KM+YuyoEf+rmfPYBNreOGqlfZdu1B/QY s2ZSnS9nwvxXFMwbuTDFWOxO+ukbJDCmdFXCnaM90j2Hiw62XdVfhpw/UGX4rXDit0yn QNQ2TM+pZqrfptaxh8caklBdKOjUTc7CIv0GHW5iFTZtCzlJ66CQaNVmKupLLYz39Iz+ 1i7g== 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 gb11si15718853ejc.684.2022.02.02.09.05.26; Wed, 02 Feb 2022 09:05:50 -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 S241984AbiBASii (ORCPT + 99 others); Tue, 1 Feb 2022 13:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236866AbiBASii (ORCPT ); Tue, 1 Feb 2022 13:38:38 -0500 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD0AC061714 for ; Tue, 1 Feb 2022 10:38:38 -0800 (PST) Received: by gofer.mess.org (Postfix, from userid 1000) id 54DAD101BFE; Tue, 1 Feb 2022 18:38:36 +0000 (UTC) Date: Tue, 1 Feb 2022 18:38:36 +0000 From: Sean Young To: Shuah Khan Cc: Matthew Wilcox , Alexei Starovoitov , kernel test robot , Alexei Starovoitov , LKML , Linux Memory Management List , lkp@lists.01.org, kbuild test robot Subject: [PATCH v2] selftests/ir: fix build with ancient kernel headers Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 [1]. [1] https://lkml.org/lkml/2022/1/28/275 Fixes: e2bcbd7769ee ("tools headers UAPI: remove stale lirc.h") Reviewed-by: Shuah Khan Reported-by: kernel test robot Signed-off-by: Sean Young --- tools/testing/selftests/ir/ir_loopback.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/testing/selftests/ir/ir_loopback.c b/tools/testing/selftests/ir/ir_loopback.c index 06256c96df12..f4a15cbdd5ea 100644 --- a/tools/testing/selftests/ir/ir_loopback.c +++ b/tools/testing/selftests/ir/ir_loopback.c @@ -29,6 +29,16 @@ #define SYSFS_PATH_MAX 256 #define DNAME_PATH_MAX 256 +/* + * Support ancient lirc.h which does not have these values. Can be removed + * once RHEL 8 is no longer a relevant testing platform. + */ +#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