Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp442824rdb; Sat, 30 Sep 2023 10:21:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkxe3YfLSf4JIqOqub8JT/wRlDPhBnp2hM/mzLw2qQnWvOrnJoEQyTH9+tIEN3cQn4w7Ix X-Received: by 2002:a17:902:ed8f:b0:1c1:d730:f0c2 with SMTP id e15-20020a170902ed8f00b001c1d730f0c2mr5930009plj.61.1696094498983; Sat, 30 Sep 2023 10:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696094498; cv=none; d=google.com; s=arc-20160816; b=PpMibBTiBwqQma068/DMQX8BGsrKBrCR9iwFthQZ2dk8lPqQn3927qVGdx4wfVnjHQ DrFaSXHqBib4Buf6SvK5YN68oDmDJdjprmqc5lbzF48QPcZSWbWVX9bmnwUVqwuqePu+ 0Q4un+oMi20Darp6TpYfoZycjh0u7nHWEZXBypaf/lgE9VRpOyM9BKFJWzIhLsgLiGSe nOfOfV64U6W+rF/HXB4yeTuP/oDUxR/krGppWAlw6QWpNyvwnFV3qaQxkir0La8xqgZr 2BbOmQjBPAL3Y7Nn980d+AopgabVJ1g9xWsNik0tFO2TZIxbpxOE5jsYMqhGf+GWFO06 FW/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DTMAbSDNTT3BwgMNy7Ck2jzCgn0wMnqrLQvYslsiJA0=; fh=bqm4yrXfM4DHcmRawx/N3xlxgZRN5S/Q2jDk7KDazak=; b=Mw+AicUC1/AZZG8IljEx6bNMT6TOwPje/sjQgiBNxP8fMgp8VLU5N2VQdiQEp0r7DJ ivMsNn7tnxPkmAlIAYhevlmLkB6/ECWRJi9yIVaJPvSPer3lLSqHFBmrABJA+cC14wOE WIqFwYuWHd2mOsrhoBQBmyUPurOvDlV9uCPr/7gMmLUltRp98gRShe0PMC3Di4tfIFZc w1AOxLGYdm4OgHVqQnUqrPLjasQyxEVh+ThmcBCZfqPFIPUOoL2T3zh4KS6sHRLHWJnl MHEwY62ld8icx5pnmkzBMXOvc05H86T97ATAIWZjr64eqymcFW0mdkMCKzMlXk1tpOyq nxOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bMDOL+sk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o11-20020a170902d4cb00b001b894687ec9si25104561plg.462.2023.09.30.10.21.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Sep 2023 10:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bMDOL+sk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 8F97E832543A; Fri, 29 Sep 2023 23:55:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234054AbjI3GzL (ORCPT + 99 others); Sat, 30 Sep 2023 02:55:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjI3GzJ (ORCPT ); Sat, 30 Sep 2023 02:55:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3C751A7; Fri, 29 Sep 2023 23:55:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696056907; x=1727592907; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=tQIq4ld4jG2JZl9UblS1SdZ9anMZonGCZUn1Wq6P19M=; b=bMDOL+skgPjNYAsgq1iHURJDES7i8tDvtI6tYKUceFL/0b1oed6E9qSN kQwtBRKR8yHFHxaRnQFzONTmZh54Or01aAwoa1jdc2GzBuizfjTnVPztG eUBKHqBHUQNZzMXBE2wdEIWOTPOgO45V+fqoZhGi1St7mBe9J+bH0kKIG uJEU+4PSW8FNfQ03jIzDIDNiMY8q1m8A/27ODKDt5F3AtxJPxIGQqHkCZ 9ZDStQVQ1s7MOnnj4SHzSVDOTPkP2HbVFKooJcSkRyJA+o0jYckTrsgBS Sp7I1bZerHknPFC9jyq1BcViI4YBAB/aBBRtW7TamBLGR96fDBlQOIGzw w==; X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="379710067" X-IronPort-AV: E=Sophos;i="6.03,189,1694761200"; d="scan'208";a="379710067" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 23:55:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10848"; a="699856865" X-IronPort-AV: E=Sophos;i="6.03,189,1694761200"; d="scan'208";a="699856865" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by orsmga003.jf.intel.com with ESMTP; 29 Sep 2023 23:55:04 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qmTsU-0003oH-0O; Sat, 30 Sep 2023 06:55:02 +0000 Date: Sat, 30 Sep 2023 14:54:52 +0800 From: kernel test robot To: Wedson Almeida Filho , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org, Wedson Almeida Filho Subject: Re: [PATCH 01/29] xattr: make the xattr array itself const Message-ID: <202309301437.ZGtqFntR-lkp@intel.com> References: <20230930050033.41174-2-wedsonaf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230930050033.41174-2-wedsonaf@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Fri, 29 Sep 2023 23:55:35 -0700 (PDT) Hi Wedson, kernel test robot noticed the following build warnings: [auto build test WARNING on 2dde18cd1d8fac735875f2e4987f11817cc0bc2c] url: https://github.com/intel-lab-lkp/linux/commits/Wedson-Almeida-Filho/xattr-make-the-xattr-array-itself-const/20230930-130453 base: 2dde18cd1d8fac735875f2e4987f11817cc0bc2c patch link: https://lore.kernel.org/r/20230930050033.41174-2-wedsonaf%40gmail.com patch subject: [PATCH 01/29] xattr: make the xattr array itself const config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230930/202309301437.ZGtqFntR-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230930/202309301437.ZGtqFntR-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/202309301437.ZGtqFntR-lkp@intel.com/ All warnings (new ones prefixed by >>): fs/reiserfs/xattr.c: In function 'listxattr_filler': >> fs/reiserfs/xattr.c:822:57: warning: passing argument 1 of 'reiserfs_xattr_list' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 822 | if (!reiserfs_xattr_list(b->dentry->d_sb->s_xattr, name, | ~~~~~~~~~~~~~~~^~~~~~~~~ fs/reiserfs/xattr.c:782:69: note: expected 'const struct xattr_handler **' but argument is of type 'const struct xattr_handler * const*' 782 | static inline bool reiserfs_xattr_list(const struct xattr_handler **handlers, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ vim +822 fs/reiserfs/xattr.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 811 25885a35a72007 Al Viro 2022-08-16 812 static bool listxattr_filler(struct dir_context *ctx, const char *name, ac7576f4b1da8c Miklos Szeredi 2014-10-30 813 int namelen, loff_t offset, u64 ino, ac7576f4b1da8c Miklos Szeredi 2014-10-30 814 unsigned int d_type) ^1da177e4c3f41 Linus Torvalds 2005-04-16 815 { ac7576f4b1da8c Miklos Szeredi 2014-10-30 816 struct listxattr_buf *b = ac7576f4b1da8c Miklos Szeredi 2014-10-30 817 container_of(ctx, struct listxattr_buf, ctx); 48b32a3553a547 Jeff Mahoney 2009-03-30 818 size_t size; f3fb9e27325c4e Fabian Frederick 2014-08-08 819 48b32a3553a547 Jeff Mahoney 2009-03-30 820 if (name[0] != '.' || 48b32a3553a547 Jeff Mahoney 2009-03-30 821 (namelen != 1 && (name[1] != '.' || namelen != 2))) { 387b96a5891c07 Christian Brauner 2023-02-01 @822 if (!reiserfs_xattr_list(b->dentry->d_sb->s_xattr, name, 387b96a5891c07 Christian Brauner 2023-02-01 823 b->dentry)) 25885a35a72007 Al Viro 2022-08-16 824 return true; 764a5c6b1fa430 Andreas Gruenbacher 2015-12-02 825 size = namelen + 1; 48b32a3553a547 Jeff Mahoney 2009-03-30 826 if (b->buf) { a13f085d111e90 Jann Horn 2018-08-21 827 if (b->pos + size > b->size) { a13f085d111e90 Jann Horn 2018-08-21 828 b->pos = -ERANGE; 25885a35a72007 Al Viro 2022-08-16 829 return false; a13f085d111e90 Jann Horn 2018-08-21 830 } 764a5c6b1fa430 Andreas Gruenbacher 2015-12-02 831 memcpy(b->buf + b->pos, name, namelen); 764a5c6b1fa430 Andreas Gruenbacher 2015-12-02 832 b->buf[b->pos + namelen] = 0; ^1da177e4c3f41 Linus Torvalds 2005-04-16 833 } 48b32a3553a547 Jeff Mahoney 2009-03-30 834 b->pos += size; 48b32a3553a547 Jeff Mahoney 2009-03-30 835 } 25885a35a72007 Al Viro 2022-08-16 836 return true; ^1da177e4c3f41 Linus Torvalds 2005-04-16 837 } bd4c625c061c2a Linus Torvalds 2005-07-12 838 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki