tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: e23f76121de26a57b9f398c8b1ce5405a88acd8a commit: 9d961dd8f6989bee222015da75553f9800b46714 [29933/30000] mm: add /sys/class/bdi/<bdi>/min_bytes knob config: x86_64-randconfig-123-20240910 (https://download.01.org/0day-ci/archive/20240912/202409120855.xGnhP78f-lkp@i...) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240912/202409120855.xGnhP78f-lkp@i...)
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/202409120855.xGnhP78f-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
mm/backing-dev.c:226:1: sparse: sparse: symbol 'dev_attr_min_bytes' was not declared. Should it be static?
mm/backing-dev.c:254:1: sparse: sparse: symbol 'dev_attr_max_bytes' was not declared. Should it be static?
vim +/dev_attr_min_bytes +226 mm/backing-dev.c
208 209 static ssize_t min_bytes_store(struct device *dev, 210 struct device_attribute *attr, const char *buf, size_t count) 211 { 212 struct backing_dev_info *bdi = dev_get_drvdata(dev); 213 u64 bytes; 214 ssize_t ret; 215 216 ret = kstrtoull(buf, 10, &bytes); 217 if (ret < 0) 218 return ret; 219 220 ret = bdi_set_min_bytes(bdi, bytes); 221 if (!ret) 222 ret = count; 223 224 return ret; 225 }
226 DEVICE_ATTR_RW(min_bytes);
227