From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756034AbcHWUxY (ORCPT ); Tue, 23 Aug 2016 16:53:24 -0400 Received: from mail.kapsi.fi ([217.30.184.167]:46401 "EHLO mail.kapsi.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755846AbcHWUxT (ORCPT ); Tue, 23 Aug 2016 16:53:19 -0400 Date: Tue, 23 Aug 2016 23:53:08 +0300 From: Mikko Rapeli To: kbuild test robot Cc: kbuild-all@01.org, linux-kernel@vger.kernel.org, Jan Harkes , coda@cs.cmu.edu, codalist@TELEMANN.coda.cs.cmu.edu Subject: Re: [PATCH v05 47/72] include/uapi/linux/coda.h: use __kernel_pid_t and add u_short etc definitions for userspace Message-ID: <20160823205308.GR5399@lakka.kapsi.fi> References: <1471890809-4383-48-git-send-email-mikko.rapeli@iki.fi> <201608231023.jlwi61BS%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201608231023.jlwi61BS%fengguang.wu@intel.com> X-SA-Exim-Connect-IP: 2001:1bc8:1004::1 X-SA-Exim-Mail-From: mikko.rapeli@iki.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 23, 2016 at 11:08:06AM +0800, kbuild test robot wrote: > Hi Mikko, > > [auto build test ERROR on linus/master] > [also build test ERROR on v4.8-rc3] > [cannot apply to next-20160822] > [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] > [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] > [Check https://git-scm.com/docs/git-format-patch for more information] > > url: https://github.com/0day-ci/linux/commits/Mikko-Rapeli/Userspace-compile-test-and-fixes-for-exported-uapi-header-files/20160823-034928 > config: x86_64-randconfig-v0-08230740 (attached as .config) > compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 > reproduce: > # save the attached .config to linux build tree > make ARCH=x86_64 > > All errors (new ones prefixed by >>): > > In file included from include/linux/coda.h:64, > from fs/coda/psdev.c:45: > >> include/uapi/linux/coda.h:103: error: redefinition of typedef 'u_long' > include/linux/types.h:86: note: previous declaration of 'u_long' was here > >> include/uapi/linux/coda.h:104: error: redefinition of typedef 'u_int' > include/linux/types.h:85: note: previous declaration of 'u_int' was here > >> include/uapi/linux/coda.h:105: error: redefinition of typedef 'u_short' > include/linux/types.h:84: note: previous declaration of 'u_short' was here > >> include/uapi/linux/coda.h:106: error: redefinition of typedef 'ino_t' > include/linux/types.h:16: note: previous declaration of 'ino_t' was here > > vim +/u_long +103 include/uapi/linux/coda.h > > 97 #endif /* !DJGPP */ > 98 > 99 > 100 #if defined(__linux__) > 101 #include > 102 #define cdev_t u_quad_t > > 103 typedef unsigned long u_long; > > 104 typedef unsigned int u_int; > > 105 typedef unsigned short u_short; > > 106 typedef u_long ino_t; Thanks! I'll move these to #ifndef __KERNEL__ side and try to detect if they are already defined by userspace headers. -Mikko > 107 > 108 #ifndef __KERNEL__ > 109 typedef u_long dev_t; > > --- > 0-DAY kernel test infrastructure Open Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation