Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp1022223imm; Thu, 5 Jul 2018 13:09:28 -0700 (PDT) X-Google-Smtp-Source: AAOMgpens/VUDNgG346H6WTeuUnxKr4p4CSelsNWasXPLat7sxqAMdm6dp/C6AD6nakGgJEoZedd X-Received: by 2002:a17:902:b604:: with SMTP id b4-v6mr7549678pls.18.1530821368121; Thu, 05 Jul 2018 13:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530821368; cv=none; d=google.com; s=arc-20160816; b=smKEFH0VPkSRsDvxjVmjXrmLUraLd2TKa30tm68803DtborELkmtlU+A+jzxYIpJ/X SZTVbYFS26xEumH/zBf4cD1l5pwi6DvEN5JmgLFiEwbpJxr5Yi8YX2rG4Qo8vFoTawhJ nHBb82pGmZ4eVyqBI4GUfepG14k5QSbxtI372NTCN77yl/p3ZVpkGSZOjJFYWmcwPL3S PguQw3V6jUI3upJTmaH/sFz3BLIYr1eVi+4ZXBF3wvoFnVUDHl458IcgPepRf5+JZKJw Dic6PMfmK6RQM5UI/sHDyBgXTCWeDDRig97uRgQ5+4L/XJdburrAD2h8qsMiTd18stXB 3zAQ== 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=IALoCFAzI8dIvuX37ryUfHEVYqj5F3DKlB1kfJW9FzY=; b=XWnRq03VLVsDGh4smMaEFRNYNNPZVo0GslcXrDgFFHZL9HtflFUIDU77U63L0DHRGF eiVUzF1MN9VJO+EO0rxJGPjnbHApoJXXCdGd9ZOOeJH0oA0miZNzaxYGzXBXiXRD4I5D mJo3RtwbDmBinECJxoYMQw72Wkl9/q1R+kfdWb01jovBtbz/bCms9oooxP8/ZlKIhbRx QMoXBppka6o/+uY8IEeywUsQ7on8Kw7Qc352xC2wV3A7e89ci9cvr0jDuLmVQ/a4dvMQ MU+K3eC23siLSm/ja3IYnU4Wu9x7JBQEKNMJVM3MSQcIARfAASkXsNz6JsKspzFdaexr ZgRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jdUwBseP; 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=QUARANTINE 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 n187-v6si6443703pgn.368.2018.07.05.13.09.12; Thu, 05 Jul 2018 13:09:28 -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=jdUwBseP; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754225AbeGEUGc (ORCPT + 99 others); Thu, 5 Jul 2018 16:06:32 -0400 Received: from mail-it0-f66.google.com ([209.85.214.66]:52998 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754092AbeGEUGa (ORCPT ); Thu, 5 Jul 2018 16:06:30 -0400 Received: by mail-it0-f66.google.com with SMTP id p4-v6so13659212itf.2; Thu, 05 Jul 2018 13:06:30 -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=IALoCFAzI8dIvuX37ryUfHEVYqj5F3DKlB1kfJW9FzY=; b=jdUwBsePlTxZZPQk+6NfEV8nrOBMPppaBnuwWvhE6gTF/pkT2lF3h+nUGHZ/2xY4Qz Eo1XM0dtset1Ds00PWJ/ZmOGiNbOrsob380dms4YoHpb2XbAZohyW/OGU9N3en+SUiMG EutBpHCecI3cAE0oyCnmhEMmxpQNwqqGxWPMSsDvh/lowkvp0SM4r25soRGffzXyNSt2 e5OWDUNf/J4JUyDPA+nE6+uCGsb78Oz6O/FxaAhQ7SDSfjN7klHQiAw7oNWLRhK8mqo3 scixlhLXYrvOxbOWGwMJgvdZtdFVSYuUh2fntQdZxTUBeAOnrM/DNK5HyX4meiuci2ug 6Gjw== 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=IALoCFAzI8dIvuX37ryUfHEVYqj5F3DKlB1kfJW9FzY=; b=b96fD8b6ZA21nfx+uz72Uz8pxb0b2WvQR7IG2CXOD4nVM3mkYBCeVuAndi2Ir4L8sS Cud92RbIfcN0N+aAFxMcqaMfyVAZeCEZof3E6PeF6zMVo2VJOQSXI/dAqTfUpffgEwvk ObNA9P6zrq8BX5Mt5dmny9nT3EXXrD9O+PvNcpqM/rblqWUDBJOqzq7ZG5oiTloQ2GUj L7a5oJdLgKsdWarPIHsX+mwGAQslptvgiGOa8eBH1QJyh39EuGjr4u95GK07pHZ68jge kPOQgplG+LT4GOGMuxy6vaBVbTbjSnbvDe2lZQ2Syew8XJW8NuE4oe8qKCUSTOosEHMw mbJw== X-Gm-Message-State: APt69E2Yp0RBad9CX4xTRG9OhMWjKjB9l31+C/KNP4GLK5t8kWn64yYS s2LgvBiwQcf4UVGJpfbNhm0yR6kdSThKfmqEOgE= X-Received: by 2002:a24:6ccb:: with SMTP id w194-v6mr6374474itb.10.1530821189902; Thu, 05 Jul 2018 13:06:29 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:6801:0:0:0:0:0 with HTTP; Thu, 5 Jul 2018 13:06:29 -0700 (PDT) In-Reply-To: <201807051322.sUohKhUO%fengguang.wu@intel.com> References: <20180703054422.12089-4-deepa.kernel@gmail.com> <201807051322.sUohKhUO%fengguang.wu@intel.com> From: Deepa Dinamani Date: Thu, 5 Jul 2018 13:06:29 -0700 Message-ID: Subject: Re: [PATCH 3/6] timex: prepare compat helpers for y2038 changes To: kbuild test robot Cc: kbuild-all@01.org, Thomas Gleixner , Linux Kernel Mailing List , Arnd Bergmann , y2038 Mailman List , linux-arch , palmer@sifive.com, linux-riscv@lists.infradead.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 The error is fixed with the following patch that goes in before patch 3/6 above in the series. Let me know if I should post a v2 instead. Thanks, Deepa commit bfe4b046ed7f01154aef44fcb77d3f172929ccc2 Author: Deepa Dinamani Date: Thu Jul 5 11:47:25 2018 -0700 riscv: Include asm-generic/compat.h riscv does not enable CONFIG_COMPAT in default configurations: defconfig, allmodconfig and nomodconfig. And hence does not inlude definitions for compat data types. Now that time syscalls are being reused in non CONFIG_COMPAT modes, include asm-generic definitions for riscv. Alternative would be to make compat_time.h to be conditional on CONFIG_COMPAT_32BIT_TIME. But, since riscv is already has an asm/compat.h include the generic version instead. Signed-off-by: Deepa Dinamani Cc: palmer@sifive.com Cc: linux-riscv@lists.infradead.org diff --git a/arch/riscv/include/asm/compat.h b/arch/riscv/include/asm/compat.h index 044aecff8854..e78c5054e178 100644 --- a/arch/riscv/include/asm/compat.h +++ b/arch/riscv/include/asm/compat.h @@ -15,6 +15,9 @@ */ #ifndef __ASM_COMPAT_H #define __ASM_COMPAT_H + +#include + #ifdef CONFIG_COMPAT #if defined(CONFIG_64BIT) On Thu, Jul 5, 2018 at 12:06 AM, kbuild test robot wrote: > Hi Deepa, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on tip/timers/core] > [also build test ERROR on next-20180704] > [cannot apply to linus/master v4.18-rc3] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > > url: https://github.com/0day-ci/linux/commits/Deepa-Dinamani/arm64-Make-basic-compat_-types-always-available/20180703-151440 > config: riscv-defconfig (attached as .config) > compiler: riscv64-linux-gcc (GCC) 8.1.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # save the attached .config to linux build tree > GCC_VERSION=8.1.0 make.cross ARCH=riscv > > All errors (new ones prefixed by >>): > > In file included from include/linux/compat.h:10, > from include/linux/ethtool.h:17, > from include/linux/netdevice.h:41, > from drivers/net/mii.c:32: >>> include/linux/compat_time.h:29:2: error: unknown type name 'compat_uint_t' > compat_uint_t modes; > ^~~~~~~~~~~~~ >>> include/linux/compat_time.h:30:2: error: unknown type name 'compat_long_t' > compat_long_t offset; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:31:2: error: unknown type name 'compat_long_t' > compat_long_t freq; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:32:2: error: unknown type name 'compat_long_t' > compat_long_t maxerror; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:33:2: error: unknown type name 'compat_long_t' > compat_long_t esterror; > ^~~~~~~~~~~~~ >>> include/linux/compat_time.h:34:2: error: unknown type name 'compat_int_t' > compat_int_t status; > ^~~~~~~~~~~~ > include/linux/compat_time.h:35:2: error: unknown type name 'compat_long_t' > compat_long_t constant; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:36:2: error: unknown type name 'compat_long_t' > compat_long_t precision; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:37:2: error: unknown type name 'compat_long_t' > compat_long_t tolerance; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:39:2: error: unknown type name 'compat_long_t' > compat_long_t tick; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:40:2: error: unknown type name 'compat_long_t' > compat_long_t ppsfreq; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:41:2: error: unknown type name 'compat_long_t' > compat_long_t jitter; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:42:2: error: unknown type name 'compat_int_t' > compat_int_t shift; > ^~~~~~~~~~~~ > include/linux/compat_time.h:43:2: error: unknown type name 'compat_long_t' > compat_long_t stabil; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:44:2: error: unknown type name 'compat_long_t' > compat_long_t jitcnt; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:45:2: error: unknown type name 'compat_long_t' > compat_long_t calcnt; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:46:2: error: unknown type name 'compat_long_t' > compat_long_t errcnt; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:47:2: error: unknown type name 'compat_long_t' > compat_long_t stbcnt; > ^~~~~~~~~~~~~ > include/linux/compat_time.h:48:2: error: unknown type name 'compat_int_t' > compat_int_t tai; > ^~~~~~~~~~~~ >>> include/linux/compat_time.h:50:2: error: expected specifier-qualifier-list before 'compat_int_t' > compat_int_t:32; compat_int_t:32; compat_int_t:32; compat_int_t:32; > ^~~~~~~~~~~~ > > vim +/compat_uint_t +29 include/linux/compat_time.h > > 27 > 28 struct compat_timex { > > 29 compat_uint_t modes; > > 30 compat_long_t offset; > > 31 compat_long_t freq; > 32 compat_long_t maxerror; > 33 compat_long_t esterror; > > 34 compat_int_t status; > 35 compat_long_t constant; > 36 compat_long_t precision; > 37 compat_long_t tolerance; > 38 struct compat_timeval time; > 39 compat_long_t tick; > 40 compat_long_t ppsfreq; > 41 compat_long_t jitter; > 42 compat_int_t shift; > 43 compat_long_t stabil; > 44 compat_long_t jitcnt; > 45 compat_long_t calcnt; > > 46 compat_long_t errcnt; > 47 compat_long_t stbcnt; > 48 compat_int_t tai; > 49 > > 50 compat_int_t:32; compat_int_t:32; compat_int_t:32; compat_int_t:32; > 51 compat_int_t:32; compat_int_t:32; compat_int_t:32; compat_int_t:32; > 52 compat_int_t:32; compat_int_t:32; compat_int_t:32; > 53 }; > 54 > 55 > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation