Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp56877rdg; Tue, 10 Oct 2023 04:18:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEsO+clUcuydd6U3bLl7iq+MIR5VrAXYm6fbt2tbY7krs6ha/t8oJO0mreNUWiQDG9XhWIG X-Received: by 2002:a17:902:e809:b0:1c0:6e92:8cc5 with SMTP id u9-20020a170902e80900b001c06e928cc5mr16058993plg.17.1696936702379; Tue, 10 Oct 2023 04:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696936702; cv=none; d=google.com; s=arc-20160816; b=TD16AtNmOaRMAK/oQ8V32Re7JAv1fTpmwExXuCjs0HUOZPXUdGI3xlJn/Gcq9STNtX IluHe2xG/eIUwk1f72OzEMYE++y/2yYz+iPpY0srGxi5ff95llYp4YH1Zg8WpOISky1X rvHZOFFbsYzUxSJtDPqlzLwuqy/mava6GxrUZYrHmULQXCRdv7QryU0vSloWc70mZipq E9ttOFpcQn6YSFglHcHMfRPug/S4XHtv9L71TFAGFbLj7LOcf1sXPbC++G7XLPIaWjZV qIrmwCjijTqOWYySiM6sTc5u7j5RvoeN6v/RhhsGH8uM66HGqipKfmdj3xdjv/vDz4r0 9dPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=N3SFYXI2PJhrRTZZ8LNQPGet0CbG/5pg1lCuZnjm5NM=; fh=e+VILaa1zHD/+SC9+O4QS7bzp/+7zJUyG6P5b96w46o=; b=ipaHUvseFeFEQYt3QmtRLeXRPuNHWpsHTLgT+5RJZ0M09RC9Msfl5UlNExIE+DHO0/ 3WJbh8qL9+zlgnwkO4mmGfE2sSaCgnSgUR7ViJl8U6twNUM8BemO17tWANWMv4bI+C/E 2My4GUtXwLxMJ4UsdFM2040O7jU2H+V4bUisevbRh5c8AEJnp5BtSxfqasAoznHK2N/v LlMujNsIAkNjKFbVsCzGzdILgG6cYq0nwfupvboKNsvF8o3PPF7xZzsdg381yaMB7wEO nppw3xBfUE0GoZw0Qk+VyrYqh6qQrI+9mLNc8z1VxMW6GutRSD/PEOplRXJRBuYevQkB 5kMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WYv8fxWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k10-20020a170902c40a00b001c60c77ec1csi12476916plk.511.2023.10.10.04.18.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 04:18:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WYv8fxWH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 76799814E367; Tue, 10 Oct 2023 04:18:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbjJJLSM (ORCPT + 99 others); Tue, 10 Oct 2023 07:18:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231259AbjJJLSK (ORCPT ); Tue, 10 Oct 2023 07:18:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E2979E for ; Tue, 10 Oct 2023 04:17:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696936679; x=1728472679; h=date:from:to:cc:subject:message-id:mime-version; bh=ym95X1Tjg2BaJQbZsvDu1zdQj0jihFatQU5SUoVgJXE=; b=WYv8fxWHJZlQu4704C3kWBM3Jut3GPFIX0cRd9xHRbkSUh3i13qVjSo9 hXwOpcbnff6UyARUJEGgPccmDa0Py5/+HzEDfp4rHS4z07z216YwflmDI lwxRkssJezN4eyTQJg1Y4Izsh3U3ZfliP+UZV7TgGIXT2iInWxjB/cuXE uh/kQ9cYd8o0DhS5fZGpIxQjfvyso3lKYLfuNxNHa3H1Qz4wLBzBJK57N widzFQIj0t9jCvvsdDk2Qungj0vQyEBwImGFRHFeKBH48ZUZbyl/AadhK r4InZTrDhVn1VOpTVQs/YuceApsAb8t/4naQVQ0mTBxwW4gpTnpcLXk8E A==; X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="363716109" X-IronPort-AV: E=Sophos;i="6.03,212,1694761200"; d="scan'208";a="363716109" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 04:17:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="1084736245" X-IronPort-AV: E=Sophos;i="6.03,212,1694761200"; d="scan'208";a="1084736245" Received: from lkp-server02.sh.intel.com (HELO f64821696465) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 10 Oct 2023 04:17:58 -0700 Received: from kbuild by f64821696465 with local (Exim 4.96) (envelope-from ) id 1qqAkL-0000JR-0G; Tue, 10 Oct 2023 11:17:53 +0000 Date: Tue, 10 Oct 2023 19:16:57 +0800 From: kernel test robot To: Olaf Hering Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Masahiro Yamada Subject: fs/afs/dir.c:50:1: error: no return statement in function returning non-void Message-ID: <202310101901.Q5SauZ72-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 10 Oct 2023 04:18:21 -0700 (PDT) tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 94f6f0550c625fab1f373bb86a6669b45e9748b3 commit: 172aad81a882443eefe1bd860c4eddc81b14dd5b kbuild: enforce -Werror=return-type date: 3 years ago config: s390-randconfig-r033-20230512 (https://download.01.org/0day-ci/archive/20231010/202310101901.Q5SauZ72-lkp@intel.com/config) compiler: s390-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231010/202310101901.Q5SauZ72-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202310101901.Q5SauZ72-lkp@intel.com/ All errors (new ones prefixed by >>): fs/afs/dir.c: In function 'afs_dir_set_page_dirty': >> fs/afs/dir.c:50:1: error: no return statement in function returning non-void [-Werror=return-type] 50 | } | ^ cc1: some warnings being treated as errors vim +50 fs/afs/dir.c ^1da177e4c3f415 Linus Torvalds 2005-04-16 19 260a980317dac80 David Howells 2007-04-26 20 static struct dentry *afs_lookup(struct inode *dir, struct dentry *dentry, 00cd8dd3bf95f2c Al Viro 2012-06-10 21 unsigned int flags); ^1da177e4c3f415 Linus Torvalds 2005-04-16 22 static int afs_dir_open(struct inode *inode, struct file *file); 1bbae9f81860995 Al Viro 2013-05-22 23 static int afs_readdir(struct file *file, struct dir_context *ctx); 0b728e1911cbe6e Al Viro 2012-06-10 24 static int afs_d_revalidate(struct dentry *dentry, unsigned int flags); fe15ce446beb3a3 Nick Piggin 2011-01-07 25 static int afs_d_delete(const struct dentry *dentry); 79ddbfa500b37a9 David Howells 2019-04-25 26 static void afs_d_iput(struct dentry *dentry, struct inode *inode); 5cf9dd55a0ec264 David Howells 2018-04-09 27 static int afs_lookup_one_filldir(struct dir_context *ctx, const char *name, int nlen, 5cf9dd55a0ec264 David Howells 2018-04-09 28 loff_t fpos, u64 ino, unsigned dtype); ac7576f4b1da8c9 Miklos Szeredi 2014-10-30 29 static int afs_lookup_filldir(struct dir_context *ctx, const char *name, int nlen, afefdbb28a0a2af David Howells 2006-10-03 30 loff_t fpos, u64 ino, unsigned dtype); 4acdaf27ebe2034 Al Viro 2011-07-26 31 static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode, ebfc3b49a7ac259 Al Viro 2012-06-10 32 bool excl); 18bb1db3e7607e4 Al Viro 2011-07-26 33 static int afs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode); 260a980317dac80 David Howells 2007-04-26 34 static int afs_rmdir(struct inode *dir, struct dentry *dentry); 260a980317dac80 David Howells 2007-04-26 35 static int afs_unlink(struct inode *dir, struct dentry *dentry); 260a980317dac80 David Howells 2007-04-26 36 static int afs_link(struct dentry *from, struct inode *dir, 260a980317dac80 David Howells 2007-04-26 37 struct dentry *dentry); 260a980317dac80 David Howells 2007-04-26 38 static int afs_symlink(struct inode *dir, struct dentry *dentry, 260a980317dac80 David Howells 2007-04-26 39 const char *content); 260a980317dac80 David Howells 2007-04-26 40 static int afs_rename(struct inode *old_dir, struct dentry *old_dentry, 1cd66c93ba8cdb8 Miklos Szeredi 2016-09-27 41 struct inode *new_dir, struct dentry *new_dentry, 1cd66c93ba8cdb8 Miklos Szeredi 2016-09-27 42 unsigned int flags); f3ddee8dc4e2cff David Howells 2018-04-06 43 static int afs_dir_releasepage(struct page *page, gfp_t gfp_flags); f3ddee8dc4e2cff David Howells 2018-04-06 44 static void afs_dir_invalidatepage(struct page *page, unsigned int offset, f3ddee8dc4e2cff David Howells 2018-04-06 45 unsigned int length); f3ddee8dc4e2cff David Howells 2018-04-06 46 f3ddee8dc4e2cff David Howells 2018-04-06 47 static int afs_dir_set_page_dirty(struct page *page) f3ddee8dc4e2cff David Howells 2018-04-06 48 { f3ddee8dc4e2cff David Howells 2018-04-06 49 BUG(); /* This should never happen. */ f3ddee8dc4e2cff David Howells 2018-04-06 @50 } ^1da177e4c3f415 Linus Torvalds 2005-04-16 51 :::::: The code at line 50 was first introduced by commit :::::: f3ddee8dc4e2cff37936afbeed2fdaa95b7fb7c6 afs: Fix directory handling :::::: TO: David Howells :::::: CC: David Howells -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki