All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kent Overstreet <kent.overstreet@linux.dev>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [koverstreet-bcachefs:bcachefs-testing 259/260] arch/m68k/include/asm/string.h:49:25: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters
Date: Thu, 22 May 2025 10:27:30 +0800	[thread overview]
Message-ID: <202505221059.VB4PoKbz-lkp@intel.com> (raw)

tree:   https://github.com/koverstreet/bcachefs bcachefs-testing
head:   6a62e6f0f866f2175751cdec81ae87ab573c8185
commit: e9d60153964008eaaa01f3bf287438dcff4c0d07 [259/260] fs: dcache exlusion between overlayfs, casefolding
config: m68k-allnoconfig (https://download.01.org/0day-ci/archive/20250522/202505221059.VB4PoKbz-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250522/202505221059.VB4PoKbz-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/202505221059.VB4PoKbz-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/string.h:65,
                    from include/linux/bitmap.h:13,
                    from include/linux/cpumask.h:12,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:63,
                    from include/linux/sched.h:2213,
                    from include/linux/ratelimit.h:6,
                    from fs/dcache.c:18:
   fs/dcache.c: In function 'd_casefold_enable':
>> arch/m68k/include/asm/string.h:49:25: warning: 'memset' used with constant zero length parameter; this could be due to transposed parameters [-Wmemset-transposed-args]
      49 | #define memset(d, c, n) __builtin_memset(d, c, n)
         |                         ^~~~~~~~~~~~~~~~
   fs/dcache.c:3307:9: note: in expansion of macro 'memset'
    3307 |         memset(e, sizeof(*e), 0);
         |         ^~~~~~
   fs/dcache.c: In function 'vfs_caches_init':
   fs/dcache.c:3454:65: warning: '%s' directive argument is null [-Wformat-overflow=]
    3454 |                 panic("error initializing no_casefold_dentries: %s\n", errname(ret));
         |                                                                 ^~


vim +/memset +49 arch/m68k/include/asm/string.h

ea61bc461d09e8 Greg Ungerer 2010-09-07  46  
ea61bc461d09e8 Greg Ungerer 2010-09-07  47  #define __HAVE_ARCH_MEMSET
ea61bc461d09e8 Greg Ungerer 2010-09-07  48  extern void *memset(void *, int, __kernel_size_t);
ea61bc461d09e8 Greg Ungerer 2010-09-07 @49  #define memset(d, c, n) __builtin_memset(d, c, n)
ea61bc461d09e8 Greg Ungerer 2010-09-07  50  

:::::: The code at line 49 was first introduced by commit
:::::: ea61bc461d09e8d331a307916530aaae808c72a2 m68k/m68knommu: merge MMU and non-MMU string.h

:::::: TO: Greg Ungerer <gerg@snapgear.com>
:::::: CC: Geert Uytterhoeven <geert@linux-m68k.org>

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

                 reply	other threads:[~2025-05-22  2:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202505221059.VB4PoKbz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kent.overstreet@linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.