From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gnuweeb.org (Postfix) with ESMTPS id D1A2680866 for ; Mon, 1 Aug 2022 18:48:56 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=dfr7q54f; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659379736; x=1690915736; h=date:from:to:cc:subject:message-id:mime-version; bh=6b5oyegfrdOCuRgRlDg5qLyqt5GZxzwhIftE7x67wk4=; b=dfr7q54fwpAMugqO5rrO5NIKfJLdiU4jki0+BBcJi1eqDp628zxOlwxx GqQxgsEkr5ZwrxZU+3pYN2gFJRudvpyl925gO9yLF731WcrnhIAhlJxkh /A6WNMTABIxcEX62+FRdS13t7S3q59KdePc5xqIBcEW3EKDTuB5WyH646 1I7h5b5EndQPLmkw2eVSNBbFfxntOip8oCEIRdA0d4cA2UWKuyrdbgs76 yaYSBPBSCo98TrNPOXdzgVsiAHRVWxpW5iYbc1q+i2RMJlwxt+HgQ6jgC rgkC0/BsaB57WZkUY8dDI/rE7tNRUcWLic6xGZhgedasZ/NIr4wzKOCh0 w==; X-IronPort-AV: E=McAfee;i="6400,9594,10426"; a="353224844" X-IronPort-AV: E=Sophos;i="5.93,208,1654585200"; d="scan'208";a="353224844" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Aug 2022 11:48:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,208,1654585200"; d="scan'208";a="577894308" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 01 Aug 2022 11:48:42 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oIaT4-000FDz-0O; Mon, 01 Aug 2022 18:48:42 +0000 Date: Tue, 2 Aug 2022 02:48:09 +0800 From: kernel test robot To: "Jason A. Donenfeld" Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Ammar Faizi , GNU/Weeb Mailing List , linux-kernel@vger.kernel.org Subject: [ammarfaizi2-block:crng/random/jd/vdso 9/9] drivers/char/random.c:88:42: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int Message-ID: <202208020202.PoWcpRyd-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block crng/random/jd/vdso head: 352e85344386bb54dc19717319667b114cff5082 commit: 352e85344386bb54dc19717319667b114cff5082 [9/9] random: implement getrandom() in vDSO config: s390-randconfig-r004-20220801 (https://download.01.org/0day-ci/archive/20220802/202208020202.PoWcpRyd-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install s390 cross compiling tool for clang build # apt-get install binutils-s390x-linux-gnu # https://github.com/ammarfaizi2/linux-block/commit/352e85344386bb54dc19717319667b114cff5082 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block crng/random/jd/vdso git checkout 352e85344386bb54dc19717319667b114cff5082 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash drivers/char/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from drivers/char/random.c:48: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:464:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __raw_readb(PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:477:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:37:59: note: expanded from macro '__le16_to_cpu' #define __le16_to_cpu(x) __swab16((__force __u16)(__le16)(x)) ^ include/uapi/linux/swab.h:102:54: note: expanded from macro '__swab16' #define __swab16(x) (__u16)__builtin_bswap16((__u16)(x)) ^ In file included from drivers/char/random.c:48: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:490:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr)); ~~~~~~~~~~ ^ include/uapi/linux/byteorder/big_endian.h:35:59: note: expanded from macro '__le32_to_cpu' #define __le32_to_cpu(x) __swab32((__force __u32)(__le32)(x)) ^ include/uapi/linux/swab.h:115:54: note: expanded from macro '__swab32' #define __swab32(x) (__u32)__builtin_bswap32((__u32)(x)) ^ In file included from drivers/char/random.c:48: In file included from include/linux/irq.h:20: In file included from include/linux/io.h:13: In file included from arch/s390/include/asm/io.h:75: include/asm-generic/io.h:501:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writeb(value, PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:511:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:521:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr); ~~~~~~~~~~ ^ include/asm-generic/io.h:609:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:617:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:625:20: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] readsl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:634:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesb(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:643:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesw(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ include/asm-generic/io.h:652:21: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] writesl(PCI_IOBASE + addr, buffer, count); ~~~~~~~~~~ ^ >> drivers/char/random.c:88:42: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] DEFINE_VVAR_SINGLE(struct vdso_rng_data, _vdso_rng_data); ^ int drivers/char/random.c:88:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] DEFINE_VVAR_SINGLE(struct vdso_rng_data, _vdso_rng_data); ^ int 12 warnings and 2 errors generated. vim +/int +88 drivers/char/random.c 63 64 /********************************************************************* 65 * 66 * Initialization and readiness waiting. 67 * 68 * Much of the RNG infrastructure is devoted to various dependencies 69 * being able to wait until the RNG has collected enough entropy and 70 * is ready for safe consumption. 71 * 72 *********************************************************************/ 73 74 /* 75 * crng_init is protected by base_crng->lock, and only increases 76 * its value (from empty->early->ready). 77 */ 78 static enum { 79 CRNG_EMPTY = 0, /* Little to no entropy collected */ 80 CRNG_EARLY = 1, /* At least POOL_EARLY_BITS collected */ 81 CRNG_READY = 2 /* Fully initialized with POOL_READY_BITS collected */ 82 } crng_init __read_mostly = CRNG_EMPTY; 83 static DEFINE_STATIC_KEY_FALSE(crng_is_ready); 84 #define crng_ready() (static_branch_likely(&crng_is_ready) || crng_init >= CRNG_READY) 85 /* Various types of waiters for crng_init->CRNG_READY transition. */ 86 static DECLARE_WAIT_QUEUE_HEAD(crng_init_wait); 87 static struct fasync_struct *fasync; > 88 DEFINE_VVAR_SINGLE(struct vdso_rng_data, _vdso_rng_data); 89 -- 0-DAY CI Kernel Test Service https://01.org/lkp