lkml.org 
[lkml]   [2023]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] tracefs/eventfs: Use dput to free the toplevel events directory
    Hi Steven,

    kernel test robot noticed the following build warnings:

    [auto build test WARNING on linus/master]
    [also build test WARNING on next-20230905]
    [cannot apply to v6.5]
    [If your patch is applied to the wrong git tree, kindly drop us a note.
    And when submitting patch, we suggest to use '--base' as documented in
    https://git-scm.com/docs/git-format-patch#_base_tree_information]

    url: https://github.com/intel-lab-lkp/linux/commits/Steven-Rostedt/tracefs-eventfs-Use-dput-to-free-the-toplevel-events-directory/20230906-063414
    base: linus/master
    patch link: https://lore.kernel.org/r/20230905183332.628d7cc0%40gandalf.local.home
    patch subject: [PATCH] tracefs/eventfs: Use dput to free the toplevel events directory
    config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230906/202309061055.V08YOtla-lkp@intel.com/config)
    compiler: sparc64-linux-gcc (GCC) 13.2.0
    reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230906/202309061055.V08YOtla-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 <lkp@intel.com>
    | Closes: https://lore.kernel.org/oe-kbuild-all/202309061055.V08YOtla-lkp@intel.com/

    All warnings (new ones prefixed by >>):

    fs/tracefs/event_inode.c: In function 'eventfs_remove_events_dir':
    >> fs/tracefs/event_inode.c:804:31: warning: variable 'ei' set but not used [-Wunused-but-set-variable]
    804 | struct eventfs_inode *ei;
    | ^~


    vim +/ei +804 fs/tracefs/event_inode.c

    5bdcd5f5331a276 Ajay Kaher 2023-07-28 794
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 795 /**
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 796 * eventfs_remove_events_dir - remove eventfs dir or file from list
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 797 * @dentry: events's dentry to be removed.
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 798 *
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 799 * This function remove events main directory
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 800 */
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 801 void eventfs_remove_events_dir(struct dentry *dentry)
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 802 {
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 803 struct tracefs_inode *ti;
    5bdcd5f5331a276 Ajay Kaher 2023-07-28 @804 struct eventfs_inode *ei;

    --
    0-DAY CI Kernel Test Service
    https://github.com/intel/lkp-tests/wiki

    \
     
     \ /
      Last update: 2023-09-06 04:53    [W:5.194 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site