All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 08/10] afs: Wrap page->private manipulations in inline functions
Date: Wed, 28 Oct 2020 02:45:24 +0800	[thread overview]
Message-ID: <202010280208.LbzxWQp9-lkp@intel.com> (raw)
In-Reply-To: <160380665455.3467511.8273234602878423351.stgit@warthog.procyon.org.uk>

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

Hi David,

I love your patch! Perhaps something to improve:

[auto build test WARNING on linus/master]
[also build test WARNING on v5.10-rc1]
[cannot apply to tip/perf/core hch-configfs/for-next next-20201027]
[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]

url:    https://github.com/0day-ci/linux/commits/David-Howells/AFS-fixes/20201027-215256
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 4525c8781ec0701ce824e8bd379ae1b129e26568
config: powerpc-randconfig-r025-20201026 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/5182f7848e94c4aa60f8a100b1e322cd46124efc
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review David-Howells/AFS-fixes/20201027-215256
        git checkout 5182f7848e94c4aa60f8a100b1e322cd46124efc
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc 

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

All warnings (new ones prefixed by >>):

   In file included from fs/afs/cache.c:9:
   fs/afs/internal.h: In function 'afs_page_dirty_to':
>> fs/afs/internal.h:881:15: warning: right shift count >= width of type [-Wshift-count-overflow]
     881 |  return (priv >> __AFS_PAGE_PRIV_SHIFT) & __AFS_PAGE_PRIV_MASK;
         |               ^~
   fs/afs/internal.h: In function 'afs_page_dirty':
>> fs/afs/internal.h:886:28: warning: left shift count >= width of type [-Wshift-count-overflow]
     886 |  return ((unsigned long)to << __AFS_PAGE_PRIV_SHIFT) | from;
         |                            ^~
--
   In file included from fs/afs/write.c:14:
   fs/afs/internal.h: In function 'afs_page_dirty_to':
>> fs/afs/internal.h:881:15: warning: right shift count >= width of type [-Wshift-count-overflow]
     881 |  return (priv >> __AFS_PAGE_PRIV_SHIFT) & __AFS_PAGE_PRIV_MASK;
         |               ^~
   fs/afs/internal.h: In function 'afs_page_dirty':
>> fs/afs/internal.h:886:28: warning: left shift count >= width of type [-Wshift-count-overflow]
     886 |  return ((unsigned long)to << __AFS_PAGE_PRIV_SHIFT) | from;
         |                            ^~
   In file included from <command-line>:
   fs/afs/write.c: In function 'afs_write_begin':
   include/linux/compiler_types.h:319:38: error: call to '__compiletime_assert_566' declared with attribute error: BUILD_BUG_ON failed: PAGE_SIZE > 32768 && sizeof(page->private) < 8
     319 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |                                      ^
   include/linux/compiler_types.h:300:4: note: in definition of macro '__compiletime_assert'
     300 |    prefix ## suffix();    \
         |    ^~~~~~
   include/linux/compiler_types.h:319:2: note: in expansion of macro '_compiletime_assert'
     319 |  _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
      39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
         |                                     ^~~~~~~~~~~~~~~~~~
   include/linux/build_bug.h:50:2: note: in expansion of macro 'BUILD_BUG_ON_MSG'
      50 |  BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
         |  ^~~~~~~~~~~~~~~~
   fs/afs/write.c:96:2: note: in expansion of macro 'BUILD_BUG_ON'
      96 |  BUILD_BUG_ON(PAGE_SIZE > 32768 && sizeof(page->private) < 8);
         |  ^~~~~~~~~~~~

vim +881 fs/afs/internal.h

   878	
   879	static inline unsigned int afs_page_dirty_to(unsigned long priv)
   880	{
 > 881		return (priv >> __AFS_PAGE_PRIV_SHIFT) & __AFS_PAGE_PRIV_MASK;
   882	}
   883	
   884	static inline unsigned long afs_page_dirty(unsigned int from, unsigned int to)
   885	{
 > 886		return ((unsigned long)to << __AFS_PAGE_PRIV_SHIFT) | from;
   887	}
   888	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34330 bytes --]

  reply	other threads:[~2020-10-27 18:45 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-27 13:49 [PATCH 00/10] AFS fixes David Howells
2020-10-27 13:50 ` [PATCH 01/10] afs: Fix copy_file_range() David Howells
2020-10-27 16:02   ` Christoph Hellwig
2020-10-27 13:50 ` [PATCH 02/10] afs: Fix tracing deref-before-check David Howells
2020-10-27 13:50 ` [PATCH 03/10] afs: Fix a use after free in afs_xattr_get_acl() David Howells
2020-10-27 13:50 ` [PATCH 04/10] afs: Fix afs_launder_page to not clear PG_writeback David Howells
2020-10-27 13:50 ` [PATCH 05/10] afs: Fix to take ref on page when PG_private is set David Howells
2020-10-27 13:50 ` [PATCH 06/10] afs: Fix page leak on afs_write_begin() failure David Howells
2020-10-27 13:50 ` [PATCH 07/10] afs: Fix where page->private is set during write David Howells
2020-10-27 13:50 ` [PATCH 08/10] afs: Wrap page->private manipulations in inline functions David Howells
2020-10-27 18:45   ` kernel test robot [this message]
2020-10-27 13:51 ` [PATCH 09/10] afs: Alter dirty range encoding in page->private David Howells
2020-10-27 13:51 ` [PATCH 10/10] afs: Fix afs_invalidatepage to adjust the dirty region David Howells

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=202010280208.LbzxWQp9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.