tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 14c6345e6e6ca0570f3897214f24748ef6009761 commit: 91c755d723c54ad604a3fc3debd776cdb9db27af [6932/11721] mm/memcg: Add folio_memcg() and related functions config: i386-randconfig-r002-20210903 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 1104e3258b5064e7110cc297e2cec60ac9acfc0a) 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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=91c755d723c54ad604a3fc3debd776cdb9db27af git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 91c755d723c54ad604a3fc3debd776cdb9db27af # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): ^ include/linux/blkdev.h:1902:66: warning: unused parameter 'rq' [-Wunused-parameter] static inline bool blk_req_needs_zone_write_lock(struct request *rq) ^ include/linux/blkdev.h:1907:60: warning: unused parameter 'rq' [-Wunused-parameter] static inline void blk_req_zone_write_lock(struct request *rq) ^ include/linux/blkdev.h:1911:62: warning: unused parameter 'rq' [-Wunused-parameter] static inline void blk_req_zone_write_unlock(struct request *rq) ^ include/linux/blkdev.h:1914:65: warning: unused parameter 'rq' [-Wunused-parameter] static inline bool blk_req_zone_is_write_locked(struct request *rq) ^ include/linux/blkdev.h:1919:65: warning: unused parameter 'rq' [-Wunused-parameter] static inline bool blk_req_can_dispatch_to_zone(struct request *rq) ^ include/linux/blkdev.h:1996:57: warning: unused parameter 'bdev' [-Wunused-parameter] static inline void invalidate_bdev(struct block_device *bdev) ^ include/linux/blkdev.h:1999:54: warning: unused parameter 'bdev' [-Wunused-parameter] static inline int sync_blockdev(struct block_device *bdev) ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: include/linux/blk-cgroup.h:723:44: warning: unused parameter 'buf' [-Wunused-parameter] static inline int blkcg_set_fc_appid(char *buf, u64 id, size_t len) { return -EINVAL; } ^ include/linux/blk-cgroup.h:723:53: warning: unused parameter 'id' [-Wunused-parameter] static inline int blkcg_set_fc_appid(char *buf, u64 id, size_t len) { return -EINVAL; } ^ include/linux/blk-cgroup.h:723:64: warning: unused parameter 'len' [-Wunused-parameter] static inline int blkcg_set_fc_appid(char *buf, u64 id, size_t len) { return -EINVAL; } ^ include/linux/blk-cgroup.h:724:52: warning: unused parameter 'bio' [-Wunused-parameter] static inline char *blkcg_get_fc_appid(struct bio *bio) { return NULL; } ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: include/linux/writeback.h:113:41: warning: unused parameter 'wbc' [-Wunused-parameter] wbc_blkcg_css(struct writeback_control *wbc) ^ include/linux/writeback.h:297:50: warning: unused parameter 'inode' [-Wunused-parameter] static inline void inode_attach_wb(struct inode *inode, struct page *page) ^ include/linux/writeback.h:297:70: warning: unused parameter 'page' [-Wunused-parameter] static inline void inode_attach_wb(struct inode *inode, struct page *page) ^ include/linux/writeback.h:301:50: warning: unused parameter 'inode' [-Wunused-parameter] static inline void inode_detach_wb(struct inode *inode) ^ include/linux/writeback.h:305:74: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_attach_and_unlock_inode(struct writeback_control *wbc, ^ include/linux/writeback.h:312:74: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_attach_fdatawrite_inode(struct writeback_control *wbc, ^ include/linux/writeback.h:313:27: warning: unused parameter 'inode' [-Wunused-parameter] struct inode *inode) ^ include/linux/writeback.h:317:63: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_detach_inode(struct writeback_control *wbc) ^ include/linux/writeback.h:321:59: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) ^ include/linux/writeback.h:321:76: warning: unused parameter 'bio' [-Wunused-parameter] static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) ^ include/linux/writeback.h:325:71: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_account_cgroup_owner(struct writeback_control *wbc, ^ include/linux/writeback.h:326:23: warning: unused parameter 'page' [-Wunused-parameter] struct page *page, size_t bytes) ^ include/linux/writeback.h:326:36: warning: unused parameter 'bytes' [-Wunused-parameter] struct page *page, size_t bytes) ^ In file included from drivers/gpu/drm/i915/i915_drv.c:39: In file included from include/linux/vga_switcheroo.h:34: In file included from include/linux/fb.h:6: In file included from include/uapi/linux/fb.h:6: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: >> include/linux/memcontrol.h:1119:60: warning: unused parameter 'folio' [-Wunused-parameter] static inline struct mem_cgroup *folio_memcg(struct folio *folio) ^ include/linux/memcontrol.h:1124:58: warning: unused parameter 'page' [-Wunused-parameter] static inline struct mem_cgroup *page_memcg(struct page *page) ^ include/linux/memcontrol.h:1129:62: warning: unused parameter 'page' [-Wunused-parameter] static inline struct mem_cgroup *page_memcg_rcu(struct page *page) ^ include/linux/memcontrol.h:1135:64: warning: unused parameter 'page' [-Wunused-parameter] static inline struct mem_cgroup *page_memcg_check(struct page *page) ^ include/linux/memcontrol.h:1140:51: warning: unused parameter 'folio' [-Wunused-parameter] static inline bool folio_memcg_kmem(struct folio *folio) ^ include/linux/memcontrol.h:1145:47: warning: unused parameter 'page' [-Wunused-parameter] static inline bool PageMemcgKmem(struct page *page) ^ include/linux/memcontrol.h:1150:58: warning: unused parameter 'memcg' [-Wunused-parameter] static inline bool mem_cgroup_is_root(struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1160:58: warning: unused parameter 'memcg' [-Wunused-parameter] static inline void memcg_memory_event(struct mem_cgroup *memcg, ^ include/linux/memcontrol.h:1161:35: warning: unused parameter 'event' [-Wunused-parameter] enum memcg_memory_event event) ^ include/linux/memcontrol.h:1165:60: warning: unused parameter 'mm' [-Wunused-parameter] static inline void memcg_memory_event_mm(struct mm_struct *mm, ^ include/linux/memcontrol.h:1166:31: warning: unused parameter 'event' [-Wunused-parameter] enum memcg_memory_event event) ^ include/linux/memcontrol.h:1170:70: warning: unused parameter 'root' [-Wunused-parameter] static inline unsigned long mem_cgroup_protection(struct mem_cgroup *root, ^ include/linux/memcontrol.h:1171:28: warning: unused parameter 'memcg' [-Wunused-parameter] struct mem_cgroup *memcg, ^ include/linux/memcontrol.h:1172:14: warning: unused parameter 'in_low_reclaim' [-Wunused-parameter] bool in_low_reclaim) ^ include/linux/memcontrol.h:1177:71: warning: unused parameter 'root' [-Wunused-parameter] static inline void mem_cgroup_calculate_protection(struct mem_cgroup *root, ^ include/linux/memcontrol.h:1178:29: warning: unused parameter 'memcg' [-Wunused-parameter] struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1182:60: warning: unused parameter 'memcg' [-Wunused-parameter] static inline bool mem_cgroup_below_low(struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1187:60: warning: unused parameter 'memcg' [-Wunused-parameter] static inline bool mem_cgroup_below_min(struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1192:50: warning: unused parameter 'page' [-Wunused-parameter] static inline int mem_cgroup_charge(struct page *page, struct mm_struct *mm, ^ include/linux/memcontrol.h:1192:74: warning: unused parameter 'mm' [-Wunused-parameter] static inline int mem_cgroup_charge(struct page *page, struct mm_struct *mm, ^ include/linux/memcontrol.h:1193:15: warning: unused parameter 'gfp_mask' [-Wunused-parameter] gfp_t gfp_mask) ^ include/linux/memcontrol.h:1198:62: warning: unused parameter 'page' [-Wunused-parameter] static inline int mem_cgroup_swapin_charge_page(struct page *page, ^ include/linux/memcontrol.h:1199:22: warning: unused parameter 'mm' [-Wunused-parameter] struct mm_struct *mm, gfp_t gfp, swp_entry_t entry) ^ include/linux/memcontrol.h:1199:32: warning: unused parameter 'gfp' [-Wunused-parameter] struct mm_struct *mm, gfp_t gfp, swp_entry_t entry) ^ include/linux/memcontrol.h:1199:49: warning: unused parameter 'entry' [-Wunused-parameter] struct mm_struct *mm, gfp_t gfp, swp_entry_t entry) ^ include/linux/memcontrol.h:1204:64: warning: unused parameter 'entry' [-Wunused-parameter] static inline void mem_cgroup_swapin_uncharge_swap(swp_entry_t entry) ^ include/linux/memcontrol.h:1208:53: warning: unused parameter 'page' [-Wunused-parameter] static inline void mem_cgroup_uncharge(struct page *page) ^ include/linux/memcontrol.h:1212:63: warning: unused parameter 'page_list' [-Wunused-parameter] static inline void mem_cgroup_uncharge_list(struct list_head *page_list) ^ include/linux/memcontrol.h:1216:52: warning: unused parameter 'old' [-Wunused-parameter] static inline void mem_cgroup_migrate(struct page *old, struct page *new) ^ include/linux/memcontrol.h:1216:70: warning: unused parameter 'new' [-Wunused-parameter] static inline void mem_cgroup_migrate(struct page *old, struct page *new) ^ include/linux/memcontrol.h:1220:67: warning: unused parameter 'memcg' [-Wunused-parameter] static inline struct lruvec *mem_cgroup_lruvec(struct mem_cgroup *memcg, ^ include/linux/memcontrol.h:1233:54: warning: unused parameter 'lruvec' [-Wunused-parameter] static inline void lruvec_memcg_debug(struct lruvec *lruvec, struct page *page) ^ include/linux/memcontrol.h:1233:75: warning: unused parameter 'page' [-Wunused-parameter] static inline void lruvec_memcg_debug(struct lruvec *lruvec, struct page *page) ^ include/linux/memcontrol.h:1237:71: warning: unused parameter 'memcg' [-Wunused-parameter] static inline struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg) -- ^ include/linux/blkdev.h:1829:31: warning: unused parameter 'q' [-Wunused-parameter] struct request_queue *q) ^ include/linux/blkdev.h:1834:61: warning: unused parameter 'q' [-Wunused-parameter] static inline void blk_ksm_unregister(struct request_queue *q) { } ^ include/linux/blkdev.h:1902:66: warning: unused parameter 'rq' [-Wunused-parameter] static inline bool blk_req_needs_zone_write_lock(struct request *rq) ^ include/linux/blkdev.h:1907:60: warning: unused parameter 'rq' [-Wunused-parameter] static inline void blk_req_zone_write_lock(struct request *rq) ^ include/linux/blkdev.h:1911:62: warning: unused parameter 'rq' [-Wunused-parameter] static inline void blk_req_zone_write_unlock(struct request *rq) ^ include/linux/blkdev.h:1914:65: warning: unused parameter 'rq' [-Wunused-parameter] static inline bool blk_req_zone_is_write_locked(struct request *rq) ^ include/linux/blkdev.h:1919:65: warning: unused parameter 'rq' [-Wunused-parameter] static inline bool blk_req_can_dispatch_to_zone(struct request *rq) ^ include/linux/blkdev.h:1996:57: warning: unused parameter 'bdev' [-Wunused-parameter] static inline void invalidate_bdev(struct block_device *bdev) ^ include/linux/blkdev.h:1999:54: warning: unused parameter 'bdev' [-Wunused-parameter] static inline int sync_blockdev(struct block_device *bdev) ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:39: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: In file included from include/linux/writeback.h:14: include/linux/blk-cgroup.h:723:44: warning: unused parameter 'buf' [-Wunused-parameter] static inline int blkcg_set_fc_appid(char *buf, u64 id, size_t len) { return -EINVAL; } ^ include/linux/blk-cgroup.h:723:53: warning: unused parameter 'id' [-Wunused-parameter] static inline int blkcg_set_fc_appid(char *buf, u64 id, size_t len) { return -EINVAL; } ^ include/linux/blk-cgroup.h:723:64: warning: unused parameter 'len' [-Wunused-parameter] static inline int blkcg_set_fc_appid(char *buf, u64 id, size_t len) { return -EINVAL; } ^ include/linux/blk-cgroup.h:724:52: warning: unused parameter 'bio' [-Wunused-parameter] static inline char *blkcg_get_fc_appid(struct bio *bio) { return NULL; } ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:39: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: In file included from include/linux/memcontrol.h:22: include/linux/writeback.h:113:41: warning: unused parameter 'wbc' [-Wunused-parameter] wbc_blkcg_css(struct writeback_control *wbc) ^ include/linux/writeback.h:297:50: warning: unused parameter 'inode' [-Wunused-parameter] static inline void inode_attach_wb(struct inode *inode, struct page *page) ^ include/linux/writeback.h:297:70: warning: unused parameter 'page' [-Wunused-parameter] static inline void inode_attach_wb(struct inode *inode, struct page *page) ^ include/linux/writeback.h:301:50: warning: unused parameter 'inode' [-Wunused-parameter] static inline void inode_detach_wb(struct inode *inode) ^ include/linux/writeback.h:305:74: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_attach_and_unlock_inode(struct writeback_control *wbc, ^ include/linux/writeback.h:312:74: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_attach_fdatawrite_inode(struct writeback_control *wbc, ^ include/linux/writeback.h:313:27: warning: unused parameter 'inode' [-Wunused-parameter] struct inode *inode) ^ include/linux/writeback.h:317:63: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_detach_inode(struct writeback_control *wbc) ^ include/linux/writeback.h:321:59: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) ^ include/linux/writeback.h:321:76: warning: unused parameter 'bio' [-Wunused-parameter] static inline void wbc_init_bio(struct writeback_control *wbc, struct bio *bio) ^ include/linux/writeback.h:325:71: warning: unused parameter 'wbc' [-Wunused-parameter] static inline void wbc_account_cgroup_owner(struct writeback_control *wbc, ^ include/linux/writeback.h:326:23: warning: unused parameter 'page' [-Wunused-parameter] struct page *page, size_t bytes) ^ include/linux/writeback.h:326:36: warning: unused parameter 'bytes' [-Wunused-parameter] struct page *page, size_t bytes) ^ In file included from drivers/gpu/drm/i915/i915_config.c:6: In file included from drivers/gpu/drm/i915/i915_drv.h:39: In file included from include/linux/i2c.h:18: In file included from include/linux/regulator/consumer.h:35: In file included from include/linux/suspend.h:5: In file included from include/linux/swap.h:9: >> include/linux/memcontrol.h:1119:60: warning: unused parameter 'folio' [-Wunused-parameter] static inline struct mem_cgroup *folio_memcg(struct folio *folio) ^ include/linux/memcontrol.h:1124:58: warning: unused parameter 'page' [-Wunused-parameter] static inline struct mem_cgroup *page_memcg(struct page *page) ^ include/linux/memcontrol.h:1129:62: warning: unused parameter 'page' [-Wunused-parameter] static inline struct mem_cgroup *page_memcg_rcu(struct page *page) ^ include/linux/memcontrol.h:1135:64: warning: unused parameter 'page' [-Wunused-parameter] static inline struct mem_cgroup *page_memcg_check(struct page *page) ^ include/linux/memcontrol.h:1140:51: warning: unused parameter 'folio' [-Wunused-parameter] static inline bool folio_memcg_kmem(struct folio *folio) ^ include/linux/memcontrol.h:1145:47: warning: unused parameter 'page' [-Wunused-parameter] static inline bool PageMemcgKmem(struct page *page) ^ include/linux/memcontrol.h:1150:58: warning: unused parameter 'memcg' [-Wunused-parameter] static inline bool mem_cgroup_is_root(struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1160:58: warning: unused parameter 'memcg' [-Wunused-parameter] static inline void memcg_memory_event(struct mem_cgroup *memcg, ^ include/linux/memcontrol.h:1161:35: warning: unused parameter 'event' [-Wunused-parameter] enum memcg_memory_event event) ^ include/linux/memcontrol.h:1165:60: warning: unused parameter 'mm' [-Wunused-parameter] static inline void memcg_memory_event_mm(struct mm_struct *mm, ^ include/linux/memcontrol.h:1166:31: warning: unused parameter 'event' [-Wunused-parameter] enum memcg_memory_event event) ^ include/linux/memcontrol.h:1170:70: warning: unused parameter 'root' [-Wunused-parameter] static inline unsigned long mem_cgroup_protection(struct mem_cgroup *root, ^ include/linux/memcontrol.h:1171:28: warning: unused parameter 'memcg' [-Wunused-parameter] struct mem_cgroup *memcg, ^ include/linux/memcontrol.h:1172:14: warning: unused parameter 'in_low_reclaim' [-Wunused-parameter] bool in_low_reclaim) ^ include/linux/memcontrol.h:1177:71: warning: unused parameter 'root' [-Wunused-parameter] static inline void mem_cgroup_calculate_protection(struct mem_cgroup *root, ^ include/linux/memcontrol.h:1178:29: warning: unused parameter 'memcg' [-Wunused-parameter] struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1182:60: warning: unused parameter 'memcg' [-Wunused-parameter] static inline bool mem_cgroup_below_low(struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1187:60: warning: unused parameter 'memcg' [-Wunused-parameter] static inline bool mem_cgroup_below_min(struct mem_cgroup *memcg) ^ include/linux/memcontrol.h:1192:50: warning: unused parameter 'page' [-Wunused-parameter] static inline int mem_cgroup_charge(struct page *page, struct mm_struct *mm, ^ include/linux/memcontrol.h:1192:74: warning: unused parameter 'mm' [-Wunused-parameter] static inline int mem_cgroup_charge(struct page *page, struct mm_struct *mm, ^ include/linux/memcontrol.h:1193:15: warning: unused parameter 'gfp_mask' [-Wunused-parameter] gfp_t gfp_mask) ^ include/linux/memcontrol.h:1198:62: warning: unused parameter 'page' [-Wunused-parameter] static inline int mem_cgroup_swapin_charge_page(struct page *page, ^ include/linux/memcontrol.h:1199:22: warning: unused parameter 'mm' [-Wunused-parameter] struct mm_struct *mm, gfp_t gfp, swp_entry_t entry) ^ include/linux/memcontrol.h:1199:32: warning: unused parameter 'gfp' [-Wunused-parameter] struct mm_struct *mm, gfp_t gfp, swp_entry_t entry) ^ include/linux/memcontrol.h:1199:49: warning: unused parameter 'entry' [-Wunused-parameter] struct mm_struct *mm, gfp_t gfp, swp_entry_t entry) ^ include/linux/memcontrol.h:1204:64: warning: unused parameter 'entry' [-Wunused-parameter] static inline void mem_cgroup_swapin_uncharge_swap(swp_entry_t entry) ^ include/linux/memcontrol.h:1208:53: warning: unused parameter 'page' [-Wunused-parameter] static inline void mem_cgroup_uncharge(struct page *page) ^ include/linux/memcontrol.h:1212:63: warning: unused parameter 'page_list' [-Wunused-parameter] static inline void mem_cgroup_uncharge_list(struct list_head *page_list) ^ include/linux/memcontrol.h:1216:52: warning: unused parameter 'old' [-Wunused-parameter] static inline void mem_cgroup_migrate(struct page *old, struct page *new) ^ include/linux/memcontrol.h:1216:70: warning: unused parameter 'new' [-Wunused-parameter] static inline void mem_cgroup_migrate(struct page *old, struct page *new) ^ include/linux/memcontrol.h:1220:67: warning: unused parameter 'memcg' [-Wunused-parameter] static inline struct lruvec *mem_cgroup_lruvec(struct mem_cgroup *memcg, ^ include/linux/memcontrol.h:1233:54: warning: unused parameter 'lruvec' [-Wunused-parameter] static inline void lruvec_memcg_debug(struct lruvec *lruvec, struct page *page) ^ include/linux/memcontrol.h:1233:75: warning: unused parameter 'page' [-Wunused-parameter] static inline void lruvec_memcg_debug(struct lruvec *lruvec, struct page *page) ^ include/linux/memcontrol.h:1237:71: warning: unused parameter 'memcg' [-Wunused-parameter] static inline struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg) .. vim +/folio +1119 include/linux/memcontrol.h 1118 > 1119 static inline struct mem_cgroup *folio_memcg(struct folio *folio) 1120 { 1121 return NULL; 1122 } 1123 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip