All of lore.kernel.org
 help / color / mirror / Atom feed
* [alexshi:lrunext 27/27] include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value
@ 2020-08-12 18:24 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-08-12 18:24 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/alexshi/linux.git lrunext
head:   48d2e577853193ef6e4fa1e714fe0d333a26fa38
commit: 48d2e577853193ef6e4fa1e714fe0d333a26fa38 [27/27] mm/compaction: skip compaction if any skip bit found in pageblock
config: powerpc-randconfig-r016-20200811 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 30c1633386e7cfb01c0a54b31ccf4c3a3873e71b)
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
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        git checkout 48d2e577853193ef6e4fa1e714fe0d333a26fa38
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 arch/powerpc/kernel/asm-offsets.c:14:
   In file included from include/linux/compat.h:17:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   1 warning generated.
--
   In file included from drivers/gpu/drm/drm_mm.c:47:
   In file included from include/linux/seq_file.h:11:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_insert' [-Wunused-function]
   INTERVAL_TREE_DEFINE(struct drm_mm_node, rb,
   ^
   include/linux/interval_tree_generic.h:38:15: note: expanded from macro 'INTERVAL_TREE_DEFINE'
   ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node,                             \
                 ^
   <scratch space>:51:1: note: expanded from here
   drm_mm_interval_tree_insert
   ^
   drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_iter_next' [-Wunused-function]
   include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE'
   ITSTATIC ITSTRUCT *                                                           \
                                                                                 ^
   <scratch space>:73:1: note: expanded from here
   drm_mm_interval_tree_iter_next
   ^
   drivers/gpu/drm/drm_mm.c:617:20: warning: function 'drm_mm_node_scanned_block' is not needed and will not be emitted [-Wunneeded-internal-declaration]
   static inline bool drm_mm_node_scanned_block(const struct drm_mm_node *node)
                      ^
   4 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_device.c:30:
   In file included from include/linux/efi.h:19:
   In file included from include/linux/proc_fs.h:10:
   In file included from include/linux/fs.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_device.c:637:6: warning: no previous prototype for function 'radeon_device_is_virtual' [-Wmissing-prototypes]
   bool radeon_device_is_virtual(void)
        ^
   drivers/gpu/drm/radeon/radeon_device.c:637:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool radeon_device_is_virtual(void)
   ^
   static 
   2 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_kms.c:29:
   In file included from include/linux/pci.h:35:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_kms.c:61:6: warning: no previous prototype for function 'radeon_driver_unload_kms' [-Wmissing-prototypes]
   void radeon_driver_unload_kms(struct drm_device *dev)
        ^
   drivers/gpu/drm/radeon/radeon_kms.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_driver_unload_kms(struct drm_device *dev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:104:5: warning: no previous prototype for function 'radeon_driver_load_kms' [-Wmissing-prototypes]
   int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
       ^
   drivers/gpu/drm/radeon/radeon_kms.c:104:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:618:6: warning: no previous prototype for function 'radeon_driver_lastclose_kms' [-Wmissing-prototypes]
   void radeon_driver_lastclose_kms(struct drm_device *dev)
        ^
   drivers/gpu/drm/radeon/radeon_kms.c:618:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_driver_lastclose_kms(struct drm_device *dev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:633:5: warning: no previous prototype for function 'radeon_driver_open_kms' [-Wmissing-prototypes]
   int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
       ^
   drivers/gpu/drm/radeon/radeon_kms.c:633:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:704:6: warning: no previous prototype for function 'radeon_driver_postclose_kms' [-Wmissing-prototypes]
   void radeon_driver_postclose_kms(struct drm_device *dev,
        ^
   drivers/gpu/drm/radeon/radeon_kms.c:704:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_driver_postclose_kms(struct drm_device *dev,
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:755:5: warning: no previous prototype for function 'radeon_get_vblank_counter_kms' [-Wmissing-prototypes]
   u32 radeon_get_vblank_counter_kms(struct drm_crtc *crtc)
       ^
   drivers/gpu/drm/radeon/radeon_kms.c:755:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   u32 radeon_get_vblank_counter_kms(struct drm_crtc *crtc)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:825:5: warning: no previous prototype for function 'radeon_enable_vblank_kms' [-Wmissing-prototypes]
   int radeon_enable_vblank_kms(struct drm_crtc *crtc)
       ^
   drivers/gpu/drm/radeon/radeon_kms.c:825:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_enable_vblank_kms(struct drm_crtc *crtc)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_kms.c:852:6: warning: no previous prototype for function 'radeon_disable_vblank_kms' [-Wmissing-prototypes]
   void radeon_disable_vblank_kms(struct drm_crtc *crtc)
        ^
   drivers/gpu/drm/radeon/radeon_kms.c:852:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_disable_vblank_kms(struct drm_crtc *crtc)
   ^
   static 
   9 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_atombios.c:27:
   In file included from include/linux/pci.h:35:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_atombios.c:1791:6: warning: no previous prototype for function 'radeon_atom_get_tv_timings' [-Wmissing-prototypes]
   bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index,
        ^
   drivers/gpu/drm/radeon/radeon_atombios.c:1791:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index,
   ^
   static 
   2 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_ttm.c:33:
   In file included from include/linux/dma-mapping.h:7:
   In file included from include/linux/device.h:16:
   In file included from include/linux/energy_model.h:7:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_ttm.c:773:5: warning: no previous prototype for function 'radeon_ttm_init' [-Wmissing-prototypes]
   int radeon_ttm_init(struct radeon_device *rdev)
       ^
   drivers/gpu/drm/radeon/radeon_ttm.c:773:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_ttm_init(struct radeon_device *rdev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_ttm.c:831:6: warning: no previous prototype for function 'radeon_ttm_fini' [-Wmissing-prototypes]
   void radeon_ttm_fini(struct radeon_device *rdev)
        ^
   drivers/gpu/drm/radeon/radeon_ttm.c:831:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_ttm_fini(struct radeon_device *rdev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_ttm.c:892:5: warning: no previous prototype for function 'radeon_mmap' [-Wmissing-prototypes]
   int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
       ^
   drivers/gpu/drm/radeon/radeon_ttm.c:892:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
   ^
   static 
   4 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_legacy_encoders.c:27:
   In file included from include/linux/backlight.h:12:
   In file included from include/linux/device.h:16:
   In file included from include/linux/energy_model.h:7:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_legacy_encoders.c:371:6: warning: no previous prototype for function 'radeon_legacy_backlight_init' [-Wmissing-prototypes]
   void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder,
        ^
   drivers/gpu/drm/radeon/radeon_legacy_encoders.c:371:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder,
   ^
   static 
   drivers/gpu/drm/radeon/radeon_legacy_encoders.c:1745:1: warning: no previous prototype for function 'radeon_add_legacy_encoder' [-Wmissing-prototypes]
   radeon_add_legacy_encoder(struct drm_device *dev, uint32_t encoder_enum, uint32_t supported_device)
   ^
   drivers/gpu/drm/radeon/radeon_legacy_encoders.c:1744:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void
   ^
   static 
   3 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_gem.c:29:
   In file included from include/linux/pci.h:35:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_gem.c:38:6: warning: no previous prototype for function 'radeon_gem_object_free' [-Wmissing-prototypes]
   void radeon_gem_object_free(struct drm_gem_object *gobj)
        ^
   drivers/gpu/drm/radeon/radeon_gem.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_gem_object_free(struct drm_gem_object *gobj)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_gem.c:149:5: warning: no previous prototype for function 'radeon_gem_object_open' [-Wmissing-prototypes]
   int radeon_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv)
       ^
   drivers/gpu/drm/radeon/radeon_gem.c:149:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_gem_object_open(struct drm_gem_object *obj, struct drm_file *file_priv)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_gem.c:179:6: warning: no previous prototype for function 'radeon_gem_object_close' [-Wmissing-prototypes]
   void radeon_gem_object_close(struct drm_gem_object *obj,
        ^
   drivers/gpu/drm/radeon/radeon_gem.c:179:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_gem_object_close(struct drm_gem_object *obj,
   ^
   static 
   4 warnings generated.
--
   In file included from drivers/gpu/drm/radeon/radeon_irq_kms.c:29:
   In file included from include/linux/pci.h:35:
   In file included from include/linux/kobject.h:20:
   In file included from include/linux/sysfs.h:16:
   In file included from include/linux/kernfs.h:13:
   In file included from include/linux/idr.h:15:
   In file included from include/linux/radix-tree.h:18:
   In file included from include/linux/xarray.h:14:
   In file included from include/linux/gfp.h:6:
   In file included from include/linux/mmzone.h:18:
>> include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value [-Wreturn-type]
   }
   ^
   drivers/gpu/drm/radeon/radeon_irq_kms.c:55:13: warning: no previous prototype for function 'radeon_driver_irq_handler_kms' [-Wmissing-prototypes]
   irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg)
               ^
   drivers/gpu/drm/radeon/radeon_irq_kms.c:55:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_irq_kms.c:122:6: warning: no previous prototype for function 'radeon_driver_irq_preinstall_kms' [-Wmissing-prototypes]
   void radeon_driver_irq_preinstall_kms(struct drm_device *dev)
        ^
   drivers/gpu/drm/radeon/radeon_irq_kms.c:122:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_driver_irq_preinstall_kms(struct drm_device *dev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_irq_kms.c:154:5: warning: no previous prototype for function 'radeon_driver_irq_postinstall_kms' [-Wmissing-prototypes]
   int radeon_driver_irq_postinstall_kms(struct drm_device *dev)
       ^
   drivers/gpu/drm/radeon/radeon_irq_kms.c:154:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int radeon_driver_irq_postinstall_kms(struct drm_device *dev)
   ^
   static 
   drivers/gpu/drm/radeon/radeon_irq_kms.c:173:6: warning: no previous prototype for function 'radeon_driver_irq_uninstall_kms' [-Wmissing-prototypes]
   void radeon_driver_irq_uninstall_kms(struct drm_device *dev)
        ^
   drivers/gpu/drm/radeon/radeon_irq_kms.c:173:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void radeon_driver_irq_uninstall_kms(struct drm_device *dev)
   ^
   static 
   5 warnings generated.
..

vim +88 include/linux/pageblock-flags.h

835c134ec4dd75 Mel Gorman     2007-10-16  56  
dc4b0caff24d9b Mel Gorman     2014-06-04  57  unsigned long get_pfnblock_flags_mask(struct page *page,
dc4b0caff24d9b Mel Gorman     2014-06-04  58  				unsigned long pfn,
e58469bafd0524 Mel Gorman     2014-06-04  59  				unsigned long mask);
dc4b0caff24d9b Mel Gorman     2014-06-04  60  
48d2e577853193 Alex Shi       2020-08-12  61  bool set_pfnblock_flags_mask(struct page *page,
e58469bafd0524 Mel Gorman     2014-06-04  62  				unsigned long flags,
dc4b0caff24d9b Mel Gorman     2014-06-04  63  				unsigned long pfn,
e58469bafd0524 Mel Gorman     2014-06-04  64  				unsigned long mask);
e58469bafd0524 Mel Gorman     2014-06-04  65  
835c134ec4dd75 Mel Gorman     2007-10-16  66  /* Declarations for getting and setting flags. See mm/page_alloc.c */
bb13ffeb9f6bfe Mel Gorman     2012-10-08  67  #ifdef CONFIG_COMPACTION
bb13ffeb9f6bfe Mel Gorman     2012-10-08  68  #define get_pageblock_skip(page) \
490dec8720a68a Wei Yang       2020-08-01  69  	get_pfnblock_flags_mask(page, page_to_pfn(page),	\
1dc78a9e466748 Wei Yang       2020-08-01  70  			(1 << (PB_migrate_skip)))
bb13ffeb9f6bfe Mel Gorman     2012-10-08  71  #define clear_pageblock_skip(page) \
490dec8720a68a Wei Yang       2020-08-01  72  	set_pfnblock_flags_mask(page, 0, page_to_pfn(page),	\
1dc78a9e466748 Wei Yang       2020-08-01  73  			(1 << PB_migrate_skip))
bb13ffeb9f6bfe Mel Gorman     2012-10-08  74  #define set_pageblock_skip(page) \
490dec8720a68a Wei Yang       2020-08-01  75  	set_pfnblock_flags_mask(page, (1 << PB_migrate_skip),	\
490dec8720a68a Wei Yang       2020-08-01  76  			page_to_pfn(page),			\
1dc78a9e466748 Wei Yang       2020-08-01  77  			(1 << PB_migrate_skip))
21dc7e023611fb David Rientjes 2017-11-17  78  #else
21dc7e023611fb David Rientjes 2017-11-17  79  static inline bool get_pageblock_skip(struct page *page)
21dc7e023611fb David Rientjes 2017-11-17  80  {
21dc7e023611fb David Rientjes 2017-11-17  81  	return false;
21dc7e023611fb David Rientjes 2017-11-17  82  }
21dc7e023611fb David Rientjes 2017-11-17  83  static inline void clear_pageblock_skip(struct page *page)
21dc7e023611fb David Rientjes 2017-11-17  84  {
21dc7e023611fb David Rientjes 2017-11-17  85  }
48d2e577853193 Alex Shi       2020-08-12  86  static inline bool set_pageblock_skip(struct page *page)
21dc7e023611fb David Rientjes 2017-11-17  87  {
21dc7e023611fb David Rientjes 2017-11-17 @88  }
bb13ffeb9f6bfe Mel Gorman     2012-10-08  89  #endif /* CONFIG_COMPACTION */
bb13ffeb9f6bfe Mel Gorman     2012-10-08  90  

:::::: The code@line 88 was first introduced by commit
:::::: 21dc7e023611fbcf8e38f255731bcf3cc38e7638 mm, compaction: persistently skip hugetlbfs pageblocks

:::::: TO: David Rientjes <rientjes@google.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

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

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

only message in thread, other threads:[~2020-08-12 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-12 18:24 [alexshi:lrunext 27/27] include/linux/pageblock-flags.h:88:1: warning: non-void function does not return a value 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.