From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34D32C433EF for ; Thu, 21 Apr 2022 06:41:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385015AbiDUGnw (ORCPT ); Thu, 21 Apr 2022 02:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384979AbiDUGnn (ORCPT ); Thu, 21 Apr 2022 02:43:43 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78B0313F83 for ; Wed, 20 Apr 2022 23:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650523254; x=1682059254; h=date:from:to:cc:subject:message-id:mime-version; bh=JGKy3LwrYUP8nBdiYmLzWVVTv4IVXQdqUssTDV9d1/I=; b=IAYUg1vDH04xrTJuHkNCpIXaIS1V+QQWzjaxRCII32emgg4SKJtgDadZ f9oWC5viJcMvnuScO3qitD2Xeu5lpqkWJzd3jeDagg9FPrJFxogPok8zM C10pQxtQGIdDJwPP43xF8elYjzwcmBqjBEvrvijnBra4NDEYIPZ9sEfDu d61pFa+fCK/3HMNG1sqz/e3zX2JlDp09f6ewBp7a53wIX8iTThjfrG2o9 aWGITR6RNqfFDSV841rmJJPQ+LNxfBxlsOqq6s7bcS3vjRzXKL4FPF6i6 kkSEQBs+N9N4VAbXd5M3FiuijpkX5ryMB4wMq/TLJv00QoOlIWWW9tL4o w==; X-IronPort-AV: E=McAfee;i="6400,9594,10323"; a="327160558" X-IronPort-AV: E=Sophos;i="5.90,278,1643702400"; d="scan'208";a="327160558" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 23:40:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,278,1643702400"; d="scan'208";a="532790128" Received: from lkp-server01.sh.intel.com (HELO 3abc53900bec) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 20 Apr 2022 23:40:50 -0700 Received: from kbuild by 3abc53900bec with local (Exim 4.95) (envelope-from ) id 1nhQUj-0007xh-AK; Thu, 21 Apr 2022 06:40:49 +0000 Date: Thu, 21 Apr 2022 14:40:11 +0800 From: kernel test robot To: Ingo Molnar Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:sched/headers 2110/2579] include/linux/fscrypt.h:757:22: warning: incompatible integer to pointer conversion initializing 'const struct inode *' with an expression of type 'int' Message-ID: <202204202041.6zH9eoQ9-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers head: 49e1ec6c70a6eb4b7de9250a455b8b63eb42afbe commit: 1cb1e496fc95fd250b11d4ae7bd593cbe22bb5f6 [2110/2579] headers/deps: fs: Optimize dependencies, remove inclusion config: i386-randconfig-a011 (https://download.01.org/0day-ci/archive/20220420/202204202041.6zH9eoQ9-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project bac6cd5bf85669e3376610cfc4c4f9ca015e7b9b) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=1cb1e496fc95fd250b11d4ae7bd593cbe22bb5f6 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip sched/headers git checkout 1cb1e496fc95fd250b11d4ae7bd593cbe22bb5f6 # 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=i386 SHELL=/bin/bash arch/x86/kernel/cpu/mtrr/ fs/crypto/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from fs/crypto/fname.c:23: In file included from fs/crypto/fscrypt_private.h:14: include/linux/fscrypt.h:757:30: error: implicit declaration of function 'file_inode' is invalid in C99 [-Werror,-Wimplicit-function-declaration] const struct inode *inode = file_inode(iocb->ki_filp); ^ >> include/linux/fscrypt.h:757:22: warning: incompatible integer to pointer conversion initializing 'const struct inode *' with an expression of type 'int' [-Wint-conversion] const struct inode *inode = file_inode(iocb->ki_filp); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. vim +757 include/linux/fscrypt.h c6c89783eba05a Eric Biggers 2022-01-28 753 c6c89783eba05a Eric Biggers 2022-01-28 754 static inline bool fscrypt_dio_supported(struct kiocb *iocb, c6c89783eba05a Eric Biggers 2022-01-28 755 struct iov_iter *iter) c6c89783eba05a Eric Biggers 2022-01-28 756 { c6c89783eba05a Eric Biggers 2022-01-28 @757 const struct inode *inode = file_inode(iocb->ki_filp); c6c89783eba05a Eric Biggers 2022-01-28 758 c6c89783eba05a Eric Biggers 2022-01-28 759 return !fscrypt_needs_contents_encryption(inode); c6c89783eba05a Eric Biggers 2022-01-28 760 } c6c89783eba05a Eric Biggers 2022-01-28 761 :::::: The code at line 757 was first introduced by commit :::::: c6c89783eba05a5e159b07cfd8c68d841cc5de42 fscrypt: add functions for direct I/O support :::::: TO: Eric Biggers :::::: CC: Eric Biggers -- 0-DAY CI Kernel Test Service https://01.org/lkp