* [android-common:android14-6.1-2025-01 1/1] net/core/scm.c:96:8: error: no member named 'dead' in 'struct scm_fp_list'
@ 2025-08-14 3:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-14 3:39 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android14-6.1-2025-01
head: c8d465512cdf4115614f49004b013741d7fbabeb
commit: ffd46a72008507c048e938cdd9f330f6e02d80f6 [1/1] UPSTREAM: af_unix: Add dead flag to struct scm_fp_list.
config: x86_64-buildonly-randconfig-2004-20250813 (https://download.01.org/0day-ci/archive/20250814/202508140537.Mtk0jAlE-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508140537.Mtk0jAlE-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/202508140537.Mtk0jAlE-lkp@intel.com/
All errors (new ones prefixed by >>):
net/core/scm.c:95:8: error: no member named 'inflight' in 'struct scm_fp_list'
95 | fpl->inflight = false;
| ~~~ ^
>> net/core/scm.c:96:8: error: no member named 'dead' in 'struct scm_fp_list'
96 | fpl->dead = false;
| ~~~ ^
net/core/scm.c:97:8: error: no member named 'edges' in 'struct scm_fp_list'
97 | fpl->edges = NULL;
| ~~~ ^
net/core/scm.c:98:24: error: no member named 'vertices' in 'struct scm_fp_list'
98 | INIT_LIST_HEAD(&fpl->vertices);
| ~~~ ^
net/core/scm.c:387:12: error: no member named 'inflight' in 'struct scm_fp_list'
387 | new_fpl->inflight = false;
| ~~~~~~~ ^
net/core/scm.c:388:12: error: no member named 'edges' in 'struct scm_fp_list'
388 | new_fpl->edges = NULL;
| ~~~~~~~ ^
net/core/scm.c:389:28: error: no member named 'vertices' in 'struct scm_fp_list'
389 | INIT_LIST_HEAD(&new_fpl->vertices);
| ~~~~~~~ ^
7 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for WIRELESS_EXT
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_CORE
Depends on [n]: NET [=y] && WIRELESS [=n] && (CFG80211_WEXT [=n] || WIRELESS_EXT [=y])
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_PROC
Depends on [n]: NET [=y] && WIRELESS [=n] && PROC_FS [=n] && WEXT_CORE [=y]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_PRIV
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
WARNING: unmet direct dependencies detected for WEXT_SPY
Depends on [n]: NET [=y] && WIRELESS [=n]
Selected by [y]:
- GKI_LEGACY_WEXT_ALLCONFIG [=y]
vim +96 net/core/scm.c
68
69 static int scm_fp_copy(struct cmsghdr *cmsg, struct scm_fp_list **fplp)
70 {
71 int *fdp = (int*)CMSG_DATA(cmsg);
72 struct scm_fp_list *fpl = *fplp;
73 struct file **fpp;
74 int i, num;
75
76 num = (cmsg->cmsg_len - sizeof(struct cmsghdr))/sizeof(int);
77
78 if (num <= 0)
79 return 0;
80
81 if (num > SCM_MAX_FD)
82 return -EINVAL;
83
84 if (!fpl)
85 {
86 fpl = kmalloc(sizeof(struct scm_fp_list), GFP_KERNEL_ACCOUNT);
87 if (!fpl)
88 return -ENOMEM;
89 *fplp = fpl;
90 fpl->count = 0;
91 fpl->count_unix = 0;
92 fpl->max = SCM_MAX_FD;
93 fpl->user = NULL;
94 #if IS_ENABLED(CONFIG_UNIX)
95 fpl->inflight = false;
> 96 fpl->dead = false;
97 fpl->edges = NULL;
98 INIT_LIST_HEAD(&fpl->vertices);
99 #endif
100 }
101 fpp = &fpl->fp[fpl->count];
102
103 if (fpl->count + num > fpl->max)
104 return -EINVAL;
105
106 /*
107 * Verify the descriptors and increment the usage count.
108 */
109
110 for (i=0; i< num; i++)
111 {
112 int fd = fdp[i];
113 struct file *file;
114
115 if (fd < 0 || !(file = fget_raw(fd)))
116 return -EBADF;
117 /* don't allow io_uring files */
118 if (io_is_uring_fops(file)) {
119 fput(file);
120 return -EINVAL;
121 }
122 if (unix_get_socket(file))
123 fpl->count_unix++;
124
125 *fpp++ = file;
126 fpl->count++;
127 }
128
129 if (!fpl->user)
130 fpl->user = get_uid(current_user());
131
132 return num;
133 }
134
--
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-08-14 3:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 3:39 [android-common:android14-6.1-2025-01 1/1] net/core/scm.c:96:8: error: no member named 'dead' in 'struct scm_fp_list' 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.