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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0F0EAC00A98 for ; Thu, 19 Oct 2023 21:28:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 45917800AD; Thu, 19 Oct 2023 17:28:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4099F800AB; Thu, 19 Oct 2023 17:28:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2D117800AD; Thu, 19 Oct 2023 17:28:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 1DDB5800AB for ; Thu, 19 Oct 2023 17:28:37 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id E853DB6883 for ; Thu, 19 Oct 2023 21:28:36 +0000 (UTC) X-FDA: 81363500232.11.AE517E3 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by imf27.hostedemail.com (Postfix) with ESMTP id 7CB1D4001A for ; Thu, 19 Oct 2023 21:28:34 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M5yBBOYF; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697750915; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=e85xqavx83v5GBs1rny+m5h/zjMKrWP533bwLke5yyE=; b=yA14CKmHTvF1yGFphpB9t9LUxSe8FgHR0WAR1UuQtMqT32vGVcy8ZfUKtwBNqXA1AARPqT 4eBmidfMsnx7jmvZ096fR3vSe77Yed0kpKMgtwXwQizk0MGC0Ri6WhO14qhg+DuOMUqL5K Ws7QGfHD+gYe3ULIjbyJhxipoMU58Bo= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1697750915; a=rsa-sha256; cv=none; b=AFK1JDKdmTwAbvC44yYjfeblpKTAo5xqsblGTDXvfAljQgHL6BqQKMtizmzc279PTLvBqN VpcBYfUblxhu64mogzNWejBsCukUU1oIhvKgViwpokjwhBudaYqlt+usOaP9K8CruD0trl /311gSt29HlxE53nyVIAj5PMX6wwDf0= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=M5yBBOYF; spf=pass (imf27.hostedemail.com: domain of lkp@intel.com designates 134.134.136.100 as permitted sender) smtp.mailfrom=lkp@intel.com; dmarc=pass (policy=none) header.from=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697750914; x=1729286914; h=date:from:to:cc:subject:message-id:mime-version; bh=tKa4MQ+PBKaXg5BBwkeyeILYw9gKB4mpdkP2+KY/7fw=; b=M5yBBOYFVRI85gStnbRQPGEoWSu2HlAuiJHmzNKcES6rOzr3hEVfLovE eEwKC/Eay75hSyywp5Wr9g+eiCF6HnMGVpH1qNwLTpuPTw1PrPTaOOSyz 9drNbnph49JbfEl6j4QHZU8VpaJcSfhtb9msrbaK9Yp4jfHGslLxBIAxi OUAkvCZ1LYN8AKVhCgyidzSrr0CVJBcGCFIDtIJ97q0Gp/SaedWkjNCIY S6roF+pU32tasThlZQrvzg2BYrUsACIySomYLA7CPB2HlaU1qM4XTkR3y LWZHeZmk0qCkPCBKRXshe6DcJNxhmgG+LhdTY6C2dLhmdRFcANk0RVO78 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10868"; a="452846784" X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="452846784" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2023 14:28:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,238,1694761200"; d="scan'208";a="5157592" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by fmviesa001.fm.intel.com with ESMTP; 19 Oct 2023 14:28:33 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qtaZB-0002cE-0G; Thu, 19 Oct 2023 21:28:29 +0000 Date: Fri, 20 Oct 2023 05:27:59 +0800 From: kernel test robot To: "Steven Rostedt (Google)" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 8592/13518] fs/tracefs/event_inode.c:734:10: error: casting from randomized structure pointer type 'struct dentry *' to 'struct eventfs_inode *' Message-ID: <202310200550.p46bE4w7-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: 7CB1D4001A X-Rspam-User: X-Rspamd-Server: rspam11 X-Stat-Signature: jkd7f9jbomqusmqwwkdhh4wcxwyhw3tq X-HE-Tag: 1697750914-549417 X-HE-Meta: U2FsdGVkX19mfWI1vsl6JFmFg/JflwqFT6CcFvyr8cTPy50Lvy1R7tj67/bNpw80VHWYwH39loHr/MtOSTiijLoREdujMQ1YKFU2SyTwXaG15H2P5AsFojVqkluQ0/3mOJ2E8tnPa8kyFm7N1/ZLepQ7480/6mRkPHhFdYvAcP8taAYSfAXgMiAGax1SXIheihl9q3M6YilGjwzI6MI9rPegcVJuLmDM4ZG2GZvTwgtvne5UdJffFiutHCUdV2mF7RR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ogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 4230ea146b1e64628f11e44290bb4008e391bc24 commit: 5790b1fb3d672d9a1fe3881a7181dfdbe741568f [8592/13518] eventfs: Remove eventfs_file and just use eventfs_inode config: hexagon-randconfig-r001-20230603 (https://download.01.org/0day-ci/archive/20231020/202310200550.p46bE4w7-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310200550.p46bE4w7-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/202310200550.p46bE4w7-lkp@intel.com/ All errors (new ones prefixed by >>): >> fs/tracefs/event_inode.c:734:10: error: casting from randomized structure pointer type 'struct dentry *' to 'struct eventfs_inode *' return (struct eventfs_inode *)dentry; ^ fs/tracefs/event_inode.c:909:6: warning: no previous prototype for function 'eventfs_remove_events_dir' [-Wmissing-prototypes] void eventfs_remove_events_dir(struct dentry *dentry) ^ fs/tracefs/event_inode.c:909:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void eventfs_remove_events_dir(struct dentry *dentry) ^ static 1 warning and 1 error generated. vim +734 fs/tracefs/event_inode.c 710 711 /** 712 * eventfs_create_events_dir - create the top level events directory 713 * @name: The name of the top level directory to create. 714 * @parent: Parent dentry for this file in the tracefs directory. 715 * @entries: A list of entries that represent the files under this directory 716 * @size: The number of @entries 717 * @data: The default data to pass to the files (an entry may override it). 718 * 719 * This function creates the top of the trace event directory. 720 */ 721 struct eventfs_inode *eventfs_create_events_dir(const char *name, struct dentry *parent, 722 const struct eventfs_entry *entries, 723 int size, void *data) 724 { 725 struct dentry *dentry = tracefs_start_creating(name, parent); 726 struct eventfs_inode *ei; 727 struct tracefs_inode *ti; 728 struct inode *inode; 729 730 if (security_locked_down(LOCKDOWN_TRACEFS)) 731 return NULL; 732 733 if (IS_ERR(dentry)) > 734 return (struct eventfs_inode *)dentry; 735 736 ei = kzalloc(sizeof(*ei), GFP_KERNEL); 737 if (!ei) 738 goto fail; 739 740 inode = tracefs_get_inode(dentry->d_sb); 741 if (unlikely(!inode)) 742 goto fail; 743 744 if (size) { 745 ei->d_children = kzalloc(sizeof(*ei->d_children) * size, GFP_KERNEL); 746 if (!ei->d_children) 747 goto fail; 748 } 749 750 ei->dentry = dentry; 751 ei->entries = entries; 752 ei->nr_entries = size; 753 ei->data = data; 754 ei->name = kstrdup_const(name, GFP_KERNEL); 755 if (!ei->name) 756 goto fail; 757 758 INIT_LIST_HEAD(&ei->children); 759 INIT_LIST_HEAD(&ei->list); 760 761 ti = get_tracefs(inode); 762 ti->flags |= TRACEFS_EVENT_INODE | TRACEFS_EVENT_TOP_INODE; 763 ti->private = ei; 764 765 inode->i_mode = S_IFDIR | S_IRWXU | S_IRUGO | S_IXUGO; 766 inode->i_op = &eventfs_root_dir_inode_operations; 767 inode->i_fop = &eventfs_file_operations; 768 769 /* directory inodes start off with i_nlink == 2 (for "." entry) */ 770 inc_nlink(inode); 771 d_instantiate(dentry, inode); 772 inc_nlink(dentry->d_parent->d_inode); 773 fsnotify_mkdir(dentry->d_parent->d_inode, dentry); 774 tracefs_end_creating(dentry); 775 776 /* Will call dput when the directory is removed */ 777 dget(dentry); 778 779 return ei; 780 781 fail: 782 kfree(ei->d_children); 783 kfree(ei); 784 tracefs_failed_creating(dentry); 785 return ERR_PTR(-ENOMEM); 786 } 787 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki