Received: by 10.223.164.221 with SMTP id h29csp3691341wrb; Tue, 31 Oct 2017 03:23:31 -0700 (PDT) X-Google-Smtp-Source: ABhQp+TbWdbP788OLFIZ0Mfn4X78hgNH3YhTzd4XSOOqbbKo69Byu/yw5xgFu5HI/m8v+nd01Pf3 X-Received: by 10.101.97.197 with SMTP id j5mr1161272pgv.205.1509445410944; Tue, 31 Oct 2017 03:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509445410; cv=none; d=google.com; s=arc-20160816; b=rzLKqwYRNMh3m8UYWxAXuKF1CH/Zl8QXxLbjHsueowJEY2swNU+qHd7iKWRIftOjHw GBSM9Jb7fFMLdfDtyRrXbHtLLEpotC1TK2fA1t5sYc31a16NlJIi6qHDNt0AD5o6LlIK 4NT7rWqsCbEwvVf/zr2iKzGBNpZlCozGCE8HfeopPLoHmWF/f2yotehbLzl+/ByXxC3g 3+wCFxywzLBDnup3FXzqQ1PVE+n6Fpz3EHsWnTbIssIfRBiTF7tIqkYvimJkeWY8PWUa RNKq16qnH+DvazMGgavqskRzTIhl0ocpbMUdLcA/DMkFWxJcBjHoT61QQzJcW2MP/d/B 8eVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=qcuBHoTJrLMU+DK9ozqijhJRDfIsNS+wZbQSeCFKOB4=; b=RGhYUa46ol4MyC2CTaOo9j2AT7662FFjuR1Iblhjbusfb1lawharojDXZHVmAfKFyW zRRW0u2FisJOo2xIv69gdAZK4xswYnsSBYD4Z3UNLC+Qx7FiH6qrtP5WBs5CWinjgFvb P0VN1fPzllv7+EL/9WRnCb9v4F4wrTZ/YNcWC1cDGOCI056ekMhfGE21bq2EVrtZBswM mdcp0ThtzVBqet7+QSat1PyN5Ud4KiYfbZJZp/dF5UgSnhPvCg2RhXlxKvYSE8w+ZZh8 0zqeg9dh0iBaFBVyCVvV9EZoC/MMFGfp0h1QCUdbz1OcSo4LkYGM3V6aI/8YFwjiv+K/ qowg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=US7V7dYK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y4si1224419plb.502.2017.10.31.03.23.17; Tue, 31 Oct 2017 03:23:30 -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=pass header.i=@gmail.com header.s=20161025 header.b=US7V7dYK; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932352AbdJaKVa (ORCPT + 99 others); Tue, 31 Oct 2017 06:21:30 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:49740 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753857AbdJaKV0 (ORCPT ); Tue, 31 Oct 2017 06:21:26 -0400 Received: by mail-lf0-f65.google.com with SMTP id w21so18386476lfc.6; Tue, 31 Oct 2017 03:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qcuBHoTJrLMU+DK9ozqijhJRDfIsNS+wZbQSeCFKOB4=; b=US7V7dYKsIMxC6rezQw9pmthrLxfxDO+gnJ87Sgc5UC4IxFHg5q87FJazViLIKEoDz fKrD26tFZ3xHTFIuRdPyx3oW3L+U9DBiHQMe/9cVRWajlmYifKPYxjsJYh1KPByVeFHg DUBxn8UMeTZfVT2zcmWhTfepb0IydXdPiZuLq5Z5qLTyJCQNYK2QemwmQ2k9ShyVhvZo vbgS6ZUIOolM1RGkB4ZO1tW+yi6cZAizfPo9I6iPKZGch4CV2mASuSA74uN5HN5tiBbg JI6ojfLv8IDHX4q/3gvOHfMQCppFaqVHCa3ipIFyYhZmfE6ZbthMDXAq/WPU76AZ2pq3 swEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qcuBHoTJrLMU+DK9ozqijhJRDfIsNS+wZbQSeCFKOB4=; b=IBNib6DRmiHRhBTQN88a9LmcrQ40Zx0jYf+sd4PiPRhQYJNn20F0hHjI4ZdEEgCV6H s8Rd742jTp1tnku+LOk3fxqBmRXwMTDz1zTn9pQmXpR1Zq4neC1p1HaEpGtAayuMwNdU BHJTBdMGqV1NEFw4wZHG/GV2p3wVmzV8fsiW6+lNdrd/zXAUWBLf0gamBrzwA8sKyZyU eWNDa9IQb9WGdtylG8P9IER5pX+IFLvh1UKk0UNhTjzUF3IQBfeV4EwnwoXb/OrM69bA bJljnVzcMSRX1wUsjwKlrULuheFI9/OLpYW+LQMmYNstsngB+csdes2OQzO2s2NqYrQK e5aw== X-Gm-Message-State: AMCzsaU87GpdbHUtjrhC4yfuhfjJB97HQG5miE/DF+LbhBGMM6qKTFZF xugoEPGdqPonQnKGq7VRzupkfraRpi5LJMgXdXU= X-Received: by 10.46.46.8 with SMTP id u8mr704599lju.117.1509445284430; Tue, 31 Oct 2017 03:21:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.167.79 with HTTP; Tue, 31 Oct 2017 03:21:23 -0700 (PDT) In-Reply-To: <8e7d8bbb-ec51-b693-aa35-1af73c163299@redhat.com> References: <1508801195-5369-1-git-send-email-pintu.ping@gmail.com> <20171029142128.GB13676@yexl-desktop> <8e7d8bbb-ec51-b693-aa35-1af73c163299@redhat.com> From: Pintu Kumar Date: Tue, 31 Oct 2017 15:51:23 +0530 Message-ID: Subject: Re: [lkp-robot] [android/ion] 5fb70554d6: kernel_selftests.android.make_fail To: Laura Abbott 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/ 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 ? Thanks, Pintu > Thanks, > Laura From 1582719921537275306@xxx Mon Oct 30 21:35:39 +0000 2017 X-GM-THRID: 1582662213253057274 X-Gmail-Labels: Inbox,Category Forums