mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* mm/slab_common.c:1331:1: warning: 'retain' attribute ignored
@ 2025-03-18 18:11 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-18 18:11 UTC (permalink / raw)
  To: Namhyung Kim; +Cc: oe-kbuild-all, linux-kernel, Alexei Starovoitov

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   76b6905c11fd3c6dc4562aefc3e8c4429fefae1e
commit: a992d7a3979120fbd7c13435d27b3da8d9ed095a mm/bpf: Add bpf_get_kmem_cache() kfunc
date:   5 months ago
config: mips-allmodconfig (https://download.01.org/0day-ci/archive/20250319/202503190112.kVuDUqV8-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250319/202503190112.kVuDUqV8-lkp@intel.com/reproduce)

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/202503190112.kVuDUqV8-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/slab_common.c:1331:1: warning: 'retain' attribute ignored [-Wattributes]
    1331 | {
         | ^

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for GET_FREE_REGION
   Depends on [n]: SPARSEMEM [=n]
   Selected by [m]:
   - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m]


vim +/retain +1331 mm/slab_common.c

  1329	
  1330	__bpf_kfunc struct kmem_cache *bpf_get_kmem_cache(u64 addr)
> 1331	{
  1332		struct slab *slab;
  1333	
  1334		if (!virt_addr_valid((void *)(long)addr))
  1335			return NULL;
  1336	
  1337		slab = virt_to_slab((void *)(long)addr);
  1338		return slab ? slab->slab_cache : NULL;
  1339	}
  1340	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

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

only message in thread, other threads:[~2025-03-18 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-18 18:11 mm/slab_common.c:1331:1: warning: 'retain' attribute ignored kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®