Skip to contentSkip to conversation

kernel/resource.c:1823:22-23: WARNING this kind of initialization is deprecated (fwd)

PATCH New Julia Lawall 1 participant 1 message Jun 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 37/49 kernel/resource.c:1823:22-23: WARNING this kind of initialization is deprecated (fwd)

See line 1823.

julia

---------- Forwarded message ----------
Date: Thu, 23 Jun 2022 18:17:12 +0800
From: kernel test robot <[email protected]>
To: [email protected]
Cc: [email protected], Julia Lawall <[email protected]>
Subject: [cxl:preview 37/49] kernel/resource.c:1823:22-23: WARNING this kind of
initialization is deprecated

CC: [email protected]
BCC: [email protected]
CC: Alison Schofield <[email protected]>
CC: Vishal Verma <[email protected]>
CC: Ira Weiny <[email protected]>
CC: Ben Widawsky <[email protected]>
CC: Dan Williams <[email protected]>
CC: [email protected]
TO: Dan Williams <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git preview
head:   b2d4fd5c97b59f622e6c45ac51020cdcd66bb022
commit: 6f2443c3ffee6675ef14a4b1256400a9c8a652ca [37/49] resource: Introduce alloc_free_mem_region()

:::::: branch date: 9 hours ago
:::::: commit date: 9 hours ago
config: arm-randconfig-c003-20220622 (https://download.01.org/0day-ci/archive/20220623/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag where applicable

cocci warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

kernel/resource.c:1823:22-23: WARNING this kind of initialization is deprecated

vim +1823 kernel/resource.c

6f2443c3ffee66 Dan Williams 2022-05-20  1820
6f2443c3ffee66 Dan Williams 2022-05-20  1821  static void remove_free_mem_region(void *_res)
6f2443c3ffee66 Dan Williams 2022-05-20  1822  {
6f2443c3ffee66 Dan Williams 2022-05-20 @1823  	struct resource *res = res;
6f2443c3ffee66 Dan Williams 2022-05-20  1824
6f2443c3ffee66 Dan Williams 2022-05-20  1825  	if (res->parent)
6f2443c3ffee66 Dan Williams 2022-05-20  1826  		remove_resource(res);
6f2443c3ffee66 Dan Williams 2022-05-20  1827  	free_resource(res);
6f2443c3ffee66 Dan Williams 2022-05-20  1828  }
6f2443c3ffee66 Dan Williams 2022-05-20  1829
Signature · 2 lines
0-DAY CI Kernel Test Service
https://01.org/lkp