Received: by 10.223.164.221 with SMTP id h29csp110713wrb; Tue, 31 Oct 2017 15:00:08 -0700 (PDT) X-Google-Smtp-Source: ABhQp+ThI3161k7IJvuglR/sbytfSVXzfwd7ntuD8b7O9Ljd4HX7ok1I0clyn/3zA+3I4wL5pU2g X-Received: by 10.98.201.207 with SMTP id l76mr3714024pfk.337.1509487208731; Tue, 31 Oct 2017 15:00:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509487208; cv=none; d=google.com; s=arc-20160816; b=z7kOh01ZQvCZO8aW9WS1PKLTSRauHIasFk7h9I5e3InqLc2l6ZNXk19d/k6XDXpxL2 C9fA4lGb7acYgcpMa8TiUfZfGwDDqxv6Aif7qqN7xxXOzW1xRVQ1JMvwGFvoV3XMKqLI qALw4fF4vgsfco87jR5Uqlpp3oKqnx39yrc7uaT5+X/9At9LiXQx2w+ONeQeOtZ3/EFe SDBuXON7CwNKUGPJR1XQwtipvY6SikZlDHf2QD2VxSbNOFDtX8crXaohLc0N0dZvST/8 tbIXMKdssjY5GWzFAxmZYwwRwPCC71+d9zxipUGCfl9IJ8oSCx4nIdwP71l5MxTbTZYc t1mg== 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:arc-authentication-results; bh=2+vMSGBe1RplSOjsEvPz4csa51f/CvxZ+eCLXJHgKKI=; b=W41Cvp9WjCP/QDKnjr/WHVmobxlaI3JXBtJxQdQFnCBWAgcnGBa0fsArljAvFwhh8C CK4I4YFuhM1breqKwAw1EHhkGykjkYgCZFKJbvS1Wz9uTNq9541tbY9V1l8R32QMQcej Gjy7glw8wrRoFgo/A8YWsFea3ueSo2FYSiqOz3EdU/Q/IiVhdk7pIlvalIsB5PwPmQKf 73H+gF0sT60p2TgJMiMG1ethVEOA4qpe/fbAHBsD551gYcaKLAI09YX1IT2vCk9uxQaB LiE3AlDoOSYmXr9f7i2If+INI2mFWA8IZ7VbFG0PortMZruCrM4CIF5jsDzDDQuhU/aR jPMg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h65si2465727pgc.786.2017.10.31.14.59.43; Tue, 31 Oct 2017 15:00:08 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753896AbdJaV6s (ORCPT + 99 others); Tue, 31 Oct 2017 17:58:48 -0400 Received: from mail-oi0-f45.google.com ([209.85.218.45]:43088 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850AbdJaV6q (ORCPT ); Tue, 31 Oct 2017 17:58:46 -0400 Received: by mail-oi0-f45.google.com with SMTP id c77so758857oig.0 for ; Tue, 31 Oct 2017 14:58:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=2+vMSGBe1RplSOjsEvPz4csa51f/CvxZ+eCLXJHgKKI=; b=ssSWpT7kUa3HwwHDLRjihMrS+MNWoR5F4B0nwmF+jHc3QV3msKNdmJHlOIF7lZVdRH 08wvVNBMxVXzYw6TVECzfnxckxRCKalD1ro1/15+/MW8P5MvbtbKq2a1Govg2LesUlpk +5koxNefhlWvTZh2vRR4BytTXBV3yqgEj7g+1C9aVfkwPAtzya2bjsN0GZfBx2ppAE0/ yqGwmMsd24Ug6ITNxcEoBIKWIwC7HeZvOFYSzjI3aY5VykV9y6+ULTZE4F4UAf6VSaYK cwB5BHAogpwGgsTqxp3Tp5SC7he7C7jGuf18O34iKGh96UzRsni2qkF1u0OrVTTWyj08 u9vQ== X-Gm-Message-State: AMCzsaWzr3vYxhGXWb/7jBBT3RNHNv4ShliizB5FbqWzVGaJydsC0C+H 2cFrkAg1Uo6Na7gH/kgf5cIKFA== X-Received: by 10.157.81.129 with SMTP id y1mr1981190otg.419.1509487125777; Tue, 31 Oct 2017 14:58:45 -0700 (PDT) Received: from ?IPv6:2601:602:9802:a8dc::e174? ([2601:602:9802:a8dc::e174]) by smtp.gmail.com with ESMTPSA id e22sm1097135ote.53.2017.10.31.14.58.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Oct 2017 14:58:44 -0700 (PDT) Subject: Re: [lkp-robot] [android/ion] 5fb70554d6: kernel_selftests.android.make_fail To: Pintu Kumar Cc: kernel test robot , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Greg Kroah-Hartman , shuah@kernel.org, dvhart@infradead.org, Bamvor Zhang Jian , Pintu Kumar , lkp@01.org References: <1508801195-5369-1-git-send-email-pintu.ping@gmail.com> <20171029142128.GB13676@yexl-desktop> <8e7d8bbb-ec51-b693-aa35-1af73c163299@redhat.com> From: Laura Abbott Message-ID: <19d76d06-1aba-351c-9b7f-2c861828501c@redhat.com> Date: Tue, 31 Oct 2017 14:58:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/31/2017 03:21 AM, Pintu Kumar wrote: > On Tue, Oct 31, 2017 at 2:32 AM, Laura Abbott wrote: >> On 10/30/2017 12:12 AM, Pintu Kumar wrote: >>> On Sun, Oct 29, 2017 at 7:51 PM, kernel test robot >>> wrote: >>>> >>>> FYI, we noticed the following commit (built with gcc-6): >>>> >>>> commit: 5fb70554d68e2ea032b6a28b082801d8b7b76cb8 ("android/ion: userspace test utility for ion buffer sharing") >>>> url: https://github.com/0day-ci/linux/commits/Pintu-Agarwal/android-ion-userspace-test-utility-for-ion-buffer-sharing/20171025-022548 >>>> >>>> >>>> in testcase: kernel_selftests >>>> with following parameters: >>>> >>>> >>>> test-description: The kernel contains a set of "self tests" under the tools/testing/selftests/ directory. These are intended to be small unit tests to exercise individual code paths in the kernel. >>>> test-url: https://www.kernel.org/doc/Documentation/kselftest.txt >>>> >>>> >>>> on test machine: 88 threads Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz with 64G memory >>>> >>>> caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): >>>> >>>> >>>> >>>> >>>> KERNEL SELFTESTS: linux_headers_dir is /usr/src/linux-headers-x86_64-rhel-7.2-5fb70554d68e2ea032b6a28b082801d8b7b76cb8 >>>> 2017-10-26 22:18:16 ln -sf /usr/bin/gcc-5 /usr/bin/gcc >>>> >>>> 2017-10-26 22:18:16 make run_tests -C android >>>> make: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-5fb70554d68e2ea032b6a28b082801d8b7b76cb8/tools/testing/selftests/android' >>>> make[1]: Entering directory '/usr/src/linux-selftests-x86_64-rhel-7.2-5fb70554d68e2ea032b6a28b082801d8b7b76cb8/tools/testing/selftests/android/ion' >>>> gcc -I../../../../../drivers/staging/android/uapi/ -Wall -O2 -g ionapp_export.c ipcsocket.c ionutils.c -o ionapp_export >>>> In file included from ionapp_export.c:28:0: >>>> ionutils.h:4:17: fatal error: ion.h: No such file or directory >>>> compilation terminated. >>>> In file included from ionutils.c:9:0: >>>> ionutils.h:4:17: fatal error: ion.h: No such file or directory >>>> compilation terminated. >>> >>> This utility requires ion.h header file which should be included from >>> kernel source tree: drivers/staging/android/ion/uapi/ >>> This is already mentioned in the ion/Makefile >>> Looks like this ion.h is not getting included inside the linux_headers_dir ? >>> >>> Shall I include the ion.h locally in my selftests? >>> Or, is there a better way to include the header directly... >>> >>> >> >> >> I can't reproduce this in any of my environments but if I had to guess, >> it's because you have >> >> #include "ion.h" >> >> which is supposed to look in the local path. >> > > I don't think this is the problem. > It just means, first it will look into the local path, then it will > look into the include path which is specified in the Makefile. > And, in the Makefile I have already included the path where it exists. > INCLUDEDIR := -I../../../../../drivers/staging/android/uapi/ > Ah yeah you are right > I think the problem is in general, and not specific to this test. > Because, when I manually try to install the kernel headers, I could > not find the "ion.h" there, or none of the headers from > drivers/staging/android/ > # make headers_install ARCH=i386 INSTALL_HDR_PATH=../headers/ > > But, I can see the drivers/android/ header files. > > Now the question is, how to include the header files from staging > folder to kernel headers ? > > As per reference from some other selftests (such as: gpio/Makefile, > vm/Makefile, etc.), I also tried the following. > > ../../../../../drivers/staging/android/uapi/ion.h: > make -C ../../../../.. headers_install > INSTALL_HDR_PATH=$(shell pwd)/../../../../usr/ > > But this also does not help in installing the ion.h header file in > kernel_header path. > > Any other pointers to fix this issue ? > The staging uapi headers don't look to be installed with the standard install command. This makes sense given that staging drivers are well staging and not yet stable. The tools/gpio Makefile seems to do this trick to allow compilation outside the kernel tree (it is a dependency for the gpio selftest) # # We need the following to be outside of kernel tree # $(OUTPUT)include/linux/gpio.h: ../../include/uapi/linux/gpio.h mkdir -p $(OUTPUT)include/linux 2>&1 || true ln -sf $(CURDIR)/../../include/uapi/linux/gpio.h $@ prepare: $(OUTPUT)include/linux/gpio.h Maybe something like that needs to happen here unless Shuah has any better ideas for headers? Thanks, Laura > > Thanks, > Pintu > > >> Thanks, >> Laura From 1582768231604063525@xxx Tue Oct 31 10:23:31 +0000 2017 X-GM-THRID: 1582662213253057274 X-Gmail-Labels: Inbox,Category Forums