Received: by 10.192.165.148 with SMTP id m20csp1524679imm; Fri, 27 Apr 2018 23:11:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo9PQlmF0J5uParIhocND6ig6dPOn+rd5IztUwfwOeEfKxZ4FtDBNLZY7VZtOgXVwQS63Jd X-Received: by 10.98.192.220 with SMTP id g89mr4740334pfk.223.1524895893250; Fri, 27 Apr 2018 23:11:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524895893; cv=none; d=google.com; s=arc-20160816; b=gZYNo2GF+zX/LRXE0UtNbgD2MqFUcUkmBxhlMat9A3rbQ7bOve30h8oh7cuO/6nQkN QBTGpSWbkBs3mikAnX6Tdu5lCtMjc5AoYEMpknqwe70xZIIf2y3f0/tcaqcTV+3IBfej 4EKV5A88cYhWXtjG7pUiDbGe/F76lg+HgYE/08DdTDWUjGfrCw7V9jDiqgUCtBC1/B23 Y6ck8GaDGHtSp2W9jROqbkApkuJxroMMgOlRTyeqI7Y8F6w/0bxV0zMH4J+1aIPConwq 4t6L5L65gRODSz8/g9KpU9VBgg2lefqX8eY6TOqr41T3SFsxfV9mkxSM01rvlTkkxRxa pIGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=6IZWthw7xQgnagtCbuo1r+yqPvp3h0Ylduc3iQHgzCs=; b=W/jKhU3mF6qdKLfxzw8ccI+TCHMDpOefa1dxhHSJxJFEBG6Lg9G4PmfwSUKdGFlePH dvp/irmQ4MeaAty3RtiMaihXaPKxt9woST0srKZTEhVO7OhCXZegNPIPBewX4j/wO4ge 0iL1+5mMxE4ELVP7kDW9ARJHRxjqSB1CzcmiNaljBxVvWgYNWle2EKSobRuAFtYycVYC TpuP/dkwjJyhSwhMKP/PlC8NXRfnY/dk8/DTg/glt4umT1C9cnzmwrvXZTIWNFoiZ9o6 TakA7n07frHA9/dKCkR8o8b19TWZqUOXae9VvHMQj3OXus61/+/B+OajOhCjfy39KbmP i1cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jIhQQtuh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o189si2854105pfo.20.2018.04.27.23.11.17; Fri, 27 Apr 2018 23:11:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jIhQQtuh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753585AbeD1GKF (ORCPT + 99 others); Sat, 28 Apr 2018 02:10:05 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:52198 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752688AbeD1GKE (ORCPT ); Sat, 28 Apr 2018 02:10:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6IZWthw7xQgnagtCbuo1r+yqPvp3h0Ylduc3iQHgzCs=; b=jIhQQtuhWQ4SNXVoBNO4a/Q7/ q6mObHVvMvD3Yk5WTES6SrhwOIJMvZcLR563KMTLb0ps2gzltLPucQ0ZBmDsvxvOK/4ewXWIPu4wJ sXRsoyJFQ6c9/EXcS4lPRb/6oyX7Hf8zRfK8722CdzkYDa0IrAHH44EdA7bz0HR4GDLwz4xLzk607 EthO+YqBfzFgiT2M8Sah1msAzdspAG2E4xDx8HJPF1irKPY4rAnCQr+KIPXpCIMCUoTmpeVrsiPyB zTglmGQItAGzmG1EfWVKfn3VVlTGiBrLkFno/jPMKE+rRkifl/ZUuNYWrBysM1FsXSFxFbXwmaPmt fWy9TxdQw==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fCJ3W-00029R-7s; Sat, 28 Apr 2018 06:09:58 +0000 Subject: Re: kernel-4.9.94 compile error: 'KMOD_DECOMP_LEN' undeclared To: Greg Kroah-Hartman Cc: Teck Choon Giam , LKML , Peter Zijlstra , Ingo Molnar , acme@kernel.org, Alexander Shishkin , Jiri Olsa References: <84b1d534-9b9d-ff70-ead6-3f8bb70a4d4b@infradead.org> <20180428050026.GA29422@kroah.com> From: Randy Dunlap Message-ID: <5a56f585-d3c1-ee42-20a3-b47921f160c4@infradead.org> Date: Fri, 27 Apr 2018 23:09:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180428050026.GA29422@kroah.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/27/2018 10:00 PM, Greg Kroah-Hartman wrote: > On Fri, Apr 27, 2018 at 10:28:27AM -0700, Randy Dunlap wrote: >> [adding some Cc:] >> >> On 04/14/2018 02:41 AM, Teck Choon Giam wrote: >>> Hi, >>> >>> Compile linux-4.9.94 will have error related to KMOD_DECOMP_LEN >>> undeclared. Searching string related to KMOD_DECOMP_LEN in >>> linux-4.9.94 and linux-4.15.17 sources as below: >>> >>> sh-4.2# grep -r KMOD_DECOMP_LEN ./linux-4.15.17 >>> ./linux-4.15.17/tools/perf/tests/code-reading.c: char >>> decomp_name[KMOD_DECOMP_LEN]; >>> ./linux-4.15.17/tools/perf/util/dso.h:#define KMOD_DECOMP_LEN >>> sizeof(KMOD_DECOMP_NAME) >>> ./linux-4.15.17/tools/perf/util/annotate.c: char tmp[KMOD_DECOMP_LEN]; >>> ./linux-4.15.17/tools/perf/util/dso.c: char newpath[KMOD_DECOMP_LEN]; >>> sh-4.2# grep -r KMOD_DECOMP_LEN ./linux-4.9.94 >>> ./linux-4.9.94/tools/perf/tests/code-reading.c: char >>> decomp_name[KMOD_DECOMP_LEN]; >>> ./linux-4.9.94/tools/perf/util/dso.c: char newpath[KMOD_DECOMP_LEN]; >>> >>> So I guess for linux-4.9.94 has not define KMOD_DECOMP_LEN in >>> tools/perf/util/dso.h? >> >> >> 4.9.9[456] lack: >> #define KMOD_DECOMP_NAME "/tmp/perf-kmod-XXXXXX" >> #define KMOD_DECOMP_LEN sizeof(KMOD_DECOMP_NAME) >> >> >> However, the commit that added those macros does not apply cleanly to 4.9.96. >> >> commit 42b3fa670825983fc8bd0ac7b80cc84ae3abb75b >> Author: Namhyung Kim >> Date: Thu Jun 8 16:31:03 2017 +0900 >> >> perf tools: Introduce dso__decompress_kmodule_{fd,path} > > This should now be fixed in the latest 4.9.y -rc release, right? > > If not, please let me know as I though I resolved this problem there... It still fails in 4.9.96. (not #defined there) -- ~Randy