All of lore.kernel.org
 help / color / mirror / Atom feed
* [djwong-xfs:report-refcounts 397/397] fs/xfs/libxfs/xfs_refcount.c:1960:28: warning: Parameter 'low_rec' can be declared with const [constParameter]
@ 2022-04-15  5:30 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-15  5:30 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 2140 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: "Darrick J. Wong" <darrick.wong@oracle.com>
CC: linux-kernel(a)vger.kernel.org
TO: "Darrick J. Wong" <djwong@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git report-refcounts
head:   d11f6d3475bd6d2742441d3d10e623d2f23ba712
commit: d11f6d3475bd6d2742441d3d10e623d2f23ba712 [397/397] xfs: export reference count information to userspace
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout d11f6d3475bd6d2742441d3d10e623d2f23ba712
        cppcheck --quiet --enable=style,performance,portability --template=gcc FILE

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

>> fs/xfs/libxfs/xfs_refcount.c:1960:28: warning: Parameter 'low_rec' can be declared with const [constParameter]
    struct xfs_refcount_irec *low_rec,
                              ^
>> fs/xfs/libxfs/xfs_refcount.c:1961:28: warning: Parameter 'high_rec' can be declared with const [constParameter]
    struct xfs_refcount_irec *high_rec,
                              ^
   fs/xfs/libxfs/xfs_refcount.c:1216:20: warning: Parameter 'pag' can be declared with const [constParameter]
    struct xfs_perag *pag)
                      ^

vim +/low_rec +1960 fs/xfs/libxfs/xfs_refcount.c

d11f6d3475bd6d Darrick J. Wong 2022-01-06  1955  
d11f6d3475bd6d Darrick J. Wong 2022-01-06  1956  /* Find all refcount records between two keys. */
d11f6d3475bd6d Darrick J. Wong 2022-01-06  1957  int
d11f6d3475bd6d Darrick J. Wong 2022-01-06  1958  xfs_refcount_query_range(
d11f6d3475bd6d Darrick J. Wong 2022-01-06  1959  	struct xfs_btree_cur		*cur,
d11f6d3475bd6d Darrick J. Wong 2022-01-06 @1960  	struct xfs_refcount_irec	*low_rec,
d11f6d3475bd6d Darrick J. Wong 2022-01-06 @1961  	struct xfs_refcount_irec	*high_rec,

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-15  5:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-15  5:30 [djwong-xfs:report-refcounts 397/397] fs/xfs/libxfs/xfs_refcount.c:1960:28: warning: Parameter 'low_rec' can be declared with const [constParameter] kernel test robot

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.