* [android-common:android-4.9-o-mr1 42/51] include/linux/rculist_nulls.h:127:16: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2020-01-08 18:13 kbuild test robot
2020-01-08 18:13 ` [RFC PATCH android-common] objtool, perf: cpufreq_interactive_init() can be static kbuild test robot
0 siblings, 1 reply; 2+ messages in thread
From: kbuild test robot @ 2020-01-08 18:13 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 41367 bytes --]
tree: https://android.googlesource.com/kernel/common android-4.9-o-mr1
head: 58ce54880a03d9c27327434ba15281f5a7139671
commit: 4864b070265301ba88506ee407d51e058dcb0ad6 [42/51] objtool, perf: Fix GCC 8 -Wrestrict error
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-129-g341daf20-dirty
git checkout 4864b070265301ba88506ee407d51e058dcb0ad6
make ARCH=x86_64 allmodconfig
make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> include/linux/rculist_nulls.h:127:16: sparse: sparse: incorrect type in assignment (different address spaces)
>> include/linux/rculist_nulls.h:127:16: sparse: expected struct hlist_nulls_node *i
>> include/linux/rculist_nulls.h:127:16: sparse: got struct hlist_nulls_node [noderef] <asn:4> *
include/linux/rculist_nulls.h:128:16: sparse: sparse: incorrect type in assignment (different address spaces)
include/linux/rculist_nulls.h:128:16: sparse: expected struct hlist_nulls_node *i
include/linux/rculist_nulls.h:128:16: sparse: got struct hlist_nulls_node [noderef] <asn:4> *
>> include/linux/rculist_nulls.h:127:16: sparse: sparse: incorrect type in assignment (different address spaces)
>> include/linux/rculist_nulls.h:127:16: sparse: expected struct hlist_nulls_node *i
>> include/linux/rculist_nulls.h:127:16: sparse: got struct hlist_nulls_node [noderef] <asn:4> *
include/linux/rculist_nulls.h:128:16: sparse: sparse: incorrect type in assignment (different address spaces)
include/linux/rculist_nulls.h:128:16: sparse: expected struct hlist_nulls_node *i
include/linux/rculist_nulls.h:128:16: sparse: got struct hlist_nulls_node [noderef] <asn:4> *
include/linux/rculist.h:514:16: sparse: sparse: incorrect type in assignment (different address spaces)
include/linux/rculist.h:514:16: sparse: expected struct hlist_node *i
include/linux/rculist.h:514:16: sparse: got struct hlist_node [noderef] <asn:4> *
include/linux/rculist.h:514:43: sparse: sparse: incorrect type in assignment (different address spaces)
include/linux/rculist.h:514:43: sparse: expected struct hlist_node *i
include/linux/rculist.h:514:43: sparse: got struct hlist_node [noderef] <asn:4> *
--
net/ipv4/icmp.c:891:51: sparse: sparse: incorrect type in argument 2 (different base types)
net/ipv4/icmp.c:891:51: sparse: expected unsigned int [usertype] info
net/ipv4/icmp.c:891:51: sparse: got restricted __be32 [usertype] gateway
net/ipv4/icmp.c:389:13: sparse: sparse: context imbalance in 'icmp_reply' - different lock contexts for basic block
>> net/ipv4/icmp.c:733:9: sparse: sparse: context imbalance in 'icmp_send' - different lock contexts for basic block
--
>> drivers/cpufreq/cpufreq_interactive.c:1154:5: sparse: sparse: symbol 'cpufreq_interactive_init' was not declared. Should it be static?
>> drivers/cpufreq/cpufreq_interactive.c:1239:6: sparse: sparse: symbol 'cpufreq_interactive_exit' was not declared. Should it be static?
>> drivers/cpufreq/cpufreq_interactive.c:1264:5: sparse: sparse: symbol 'cpufreq_interactive_start' was not declared. Should it be static?
>> drivers/cpufreq/cpufreq_interactive.c:1291:6: sparse: sparse: symbol 'cpufreq_interactive_stop' was not declared. Should it be static?
>> drivers/cpufreq/cpufreq_interactive.c:1310:6: sparse: sparse: symbol 'cpufreq_interactive_limits' was not declared. Should it be static?
--
include/linux/reservation.h:185:37: sparse: sparse: incorrect type in argument 1 (different address spaces)
>> include/linux/reservation.h:185:37: sparse: expected struct fence *[noderef] <asn:4> *fencep
>> include/linux/reservation.h:185:37: sparse: got struct fence [noderef] <asn:4> **
>> include/linux/fence.h:245:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
>> include/linux/fence.h:245:25: sparse: expected void const volatile *p
>> include/linux/fence.h:245:25: sparse: got struct fence *[noderef] <asn:4> *fencep
>> include/linux/fence.h:245:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
>> include/linux/fence.h:245:25: sparse: expected void const volatile *p
>> include/linux/fence.h:245:25: sparse: got struct fence *[noderef] <asn:4> *fencep
>> include/linux/fence.h:245:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> include/linux/fence.h:245:25: sparse: struct fence [noderef] <asn:4> *
>> include/linux/fence.h:245:25: sparse: struct fence *
include/linux/fence.h:263:30: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/fence.h:263:30: sparse: struct fence [noderef] <asn:4> *
include/linux/fence.h:263:30: sparse: struct fence *
drivers/gpu/drm/drm_fb_cma_helper.c:343:61: sparse: sparse: incorrect type in argument 3 (different address spaces)
drivers/gpu/drm/drm_fb_cma_helper.c:343:61: sparse: expected void *cpu_addr
drivers/gpu/drm/drm_fb_cma_helper.c:343:61: sparse: got char [noderef] <asn:2> *screen_base
drivers/gpu/drm/drm_fb_cma_helper.c:478:26: sparse: sparse: incorrect type in assignment (different address spaces)
drivers/gpu/drm/drm_fb_cma_helper.c:478:26: sparse: expected char [noderef] <asn:2> *screen_base
drivers/gpu/drm/drm_fb_cma_helper.c:478:26: sparse: got void *
--
>> include/linux/rculist_nulls.h:127:16: sparse: sparse: incorrect type in assignment (different address spaces)
>> include/linux/rculist_nulls.h:127:16: sparse: expected struct hlist_nulls_node *i
>> include/linux/rculist_nulls.h:127:16: sparse: got struct hlist_nulls_node [noderef] <asn:4> *
include/linux/rculist_nulls.h:128:16: sparse: sparse: incorrect type in assignment (different address spaces)
include/linux/rculist_nulls.h:128:16: sparse: expected struct hlist_nulls_node *i
include/linux/rculist_nulls.h:128:16: sparse: got struct hlist_nulls_node [noderef] <asn:4> *
--
>> net/ipv6/ip6_tunnel.c:886:12: sparse: sparse: context imbalance in 'ipxip6_rcv' - different lock contexts for basic block
--
>> net/ieee802154/6lowpan/6lowpan_i.h:44:56: sparse: sparse: restricted __le16 degrades to integer
net/ieee802154/6lowpan/6lowpan_i.h:44:39: sparse: sparse: restricted __le16 degrades to integer
>> net/ieee802154/6lowpan/6lowpan_i.h:44:56: sparse: sparse: restricted __le16 degrades to integer
net/ieee802154/6lowpan/6lowpan_i.h:44:39: sparse: sparse: restricted __le16 degrades to integer
--
>> fs/ceph/caps.c:1951:9: sparse: sparse: context imbalance in 'try_flush_caps' - wrong count at exit
fs/ceph/caps.c:3067:9: sparse: sparse: context imbalance in 'handle_cap_grant' - wrong count at exit
fs/ceph/caps.c:3635:17: sparse: sparse: context imbalance in 'ceph_handle_caps' - unexpected unlock
--
>> net/tipc/socket.c:2279:30: sparse: sparse: context imbalance in 'tipc_sk_reinit' - different lock contexts for basic block
--
sound/core/control.c:1298:17: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control.c:1298:26: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control.c:1299:17: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control.c:1299:26: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control.c:1305:48: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control.c:1309:40: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:210:21: sparse: sparse: incorrect type in assignment (different base types)
sound/core/control_compat.c:210:21: sparse: expected int [assigned] err
sound/core/control_compat.c:210:21: sparse: got restricted snd_ctl_elem_type_t [usertype] type
sound/core/control_compat.c:220:14: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:222:14: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:224:14: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:226:14: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:254:21: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:255:21: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:286:21: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:287:21: sparse: sparse: restricted snd_ctl_elem_type_t degrades to integer
sound/core/control_compat.c:404:13: sparse: sparse: incorrect type in assignment (different base types)
>> sound/core/control_compat.c:404:13: sparse: expected restricted snd_ctl_elem_type_t [usertype] type
>> sound/core/control_compat.c:404:13: sparse: got signed int
--
>> fs/xfs/xfs_inode.c:2336:54: sparse: sparse: context imbalance in 'xfs_ifree_cluster' - different lock contexts for basic block
--
drivers/staging/rtl8712/rtl871x_xmit.c:491:9: sparse: sparse: invalid assignment: &=
drivers/staging/rtl8712/rtl871x_xmit.c:491:9: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:491:9: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:491:9: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:491:9: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:491:9: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:495:25: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:495:25: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:495:25: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:502:25: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:502:25: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:502:25: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:524:25: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:524:25: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:524:25: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:528:33: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:528:33: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:528:33: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:529:25: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:529:25: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:529:25: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:554:33: sparse: sparse: cast to restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:554:33: sparse: sparse: cast to restricted __le16
>> drivers/staging/rtl8712/rtl871x_xmit.c:577:36: sparse: sparse: incorrect type in assignment (different base types)
>> drivers/staging/rtl8712/rtl871x_xmit.c:577:36: sparse: expected unsigned short [usertype]
>> drivers/staging/rtl8712/rtl871x_xmit.c:577:36: sparse: got restricted __be16 [usertype]
drivers/staging/rtl8712/rtl871x_xmit.c:634:17: sparse: sparse: invalid assignment: |=
drivers/staging/rtl8712/rtl871x_xmit.c:634:17: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:634:17: sparse: right side has type restricted __le16
drivers/staging/rtl8712/rtl871x_xmit.c:699:25: sparse: sparse: invalid assignment: &=
drivers/staging/rtl8712/rtl871x_xmit.c:699:25: sparse: left side has type unsigned short
drivers/staging/rtl8712/rtl871x_xmit.c:699:25: sparse: right side has type fouled restricted __le16
--
>> drivers/base/regmap/regmap.c:101:27: sparse: sparse: Using plain integer as NULL pointer
drivers/base/regmap/regmap.c:323:14: sparse: sparse: incorrect type in assignment (different base types)
drivers/base/regmap/regmap.c:323:14: sparse: expected restricted __be16 [usertype]
drivers/base/regmap/regmap.c:323:14: sparse: got int
drivers/base/regmap/regmap.c:330:14: sparse: sparse: incorrect type in assignment (different base types)
drivers/base/regmap/regmap.c:330:14: sparse: expected restricted __le16 [usertype]
drivers/base/regmap/regmap.c:330:14: sparse: got unsigned short [usertype]
drivers/base/regmap/regmap.c:366:14: sparse: sparse: incorrect type in assignment (different base types)
drivers/base/regmap/regmap.c:366:14: sparse: expected restricted __be32 [usertype]
drivers/base/regmap/regmap.c:366:14: sparse: got unsigned int
drivers/base/regmap/regmap.c:373:14: sparse: sparse: incorrect type in assignment (different base types)
drivers/base/regmap/regmap.c:373:14: sparse: expected restricted __le32 [usertype]
drivers/base/regmap/regmap.c:373:14: sparse: got unsigned int [usertype]
drivers/base/regmap/regmap.c:400:14: sparse: sparse: incorrect type in assignment (different base types)
drivers/base/regmap/regmap.c:400:14: sparse: expected restricted __be64 [usertype]
drivers/base/regmap/regmap.c:400:14: sparse: got unsigned long long
drivers/base/regmap/regmap.c:407:14: sparse: sparse: incorrect type in assignment (different base types)
drivers/base/regmap/regmap.c:407:14: sparse: expected restricted __le64 [usertype]
drivers/base/regmap/regmap.c:407:14: sparse: got unsigned long long [usertype]
--
>> drivers/net/ethernet/broadcom/bgmac.c:532:38: sparse: sparse: restricted __le32 degrades to integer
--
>> kernel/bpf/cgroup.c:52:21: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> kernel/bpf/cgroup.c:52:21: sparse: struct bpf_prog [noderef] <asn:4> *
>> kernel/bpf/cgroup.c:52:21: sparse: struct bpf_prog *
kernel/bpf/cgroup.c:96:29: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/cgroup.c:96:29: sparse: struct bpf_prog [noderef] <asn:4> *
kernel/bpf/cgroup.c:96:29: sparse: struct bpf_prog *
kernel/bpf/cgroup.c:189:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/bpf/cgroup.c:189:16: sparse: struct bpf_prog [noderef] <asn:4> *
kernel/bpf/cgroup.c:189:16: sparse: struct bpf_prog *
--
drivers/staging/wlan-ng/hfa384x_usb.c:3470:36: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:3470:36: sparse: expected signed int [usertype] ssi_signal
drivers/staging/wlan-ng/hfa384x_usb.c:3470:36: sparse: got restricted __be32 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:3471:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:3471:35: sparse: expected signed int [usertype] ssi_noise
drivers/staging/wlan-ng/hfa384x_usb.c:3471:35: sparse: got restricted __be32 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:3472:34: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:3472:34: sparse: expected unsigned int [usertype] preamble
drivers/staging/wlan-ng/hfa384x_usb.c:3472:34: sparse: got restricted __be32 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:3473:34: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:3473:34: sparse: expected unsigned int [usertype] encoding
drivers/staging/wlan-ng/hfa384x_usb.c:3473:34: sparse: got restricted __be32 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:3329:36: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:3330:34: sparse: sparse: cast to restricted __le32
drivers/staging/wlan-ng/hfa384x_usb.c:3524:13: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:627:26: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:628:25: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:629:25: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:630:25: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:642:23: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:644:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:1307:34: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1307:34: sparse: expected unsigned short [usertype] type
drivers/staging/wlan-ng/hfa384x_usb.c:1307:34: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1308:33: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1308:33: sparse: expected unsigned short [usertype] cmd
drivers/staging/wlan-ng/hfa384x_usb.c:1308:33: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1309:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1309:35: sparse: expected unsigned short [usertype] parm0
drivers/staging/wlan-ng/hfa384x_usb.c:1309:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1310:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1310:35: sparse: expected unsigned short [usertype] parm1
drivers/staging/wlan-ng/hfa384x_usb.c:1310:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1311:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1311:35: sparse: expected unsigned short [usertype] parm2
drivers/staging/wlan-ng/hfa384x_usb.c:1311:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1397:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1397:35: sparse: expected unsigned short [usertype] type
drivers/staging/wlan-ng/hfa384x_usb.c:1397:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1398:37: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1398:37: sparse: expected unsigned short [usertype] frmlen
drivers/staging/wlan-ng/hfa384x_usb.c:1398:37: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1400:34: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1400:34: sparse: expected unsigned short [usertype] rid
drivers/staging/wlan-ng/hfa384x_usb.c:1400:34: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1478:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1478:35: sparse: expected unsigned short [usertype] type
drivers/staging/wlan-ng/hfa384x_usb.c:1478:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1479:37: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1479:37: sparse: expected unsigned short [usertype] frmlen
drivers/staging/wlan-ng/hfa384x_usb.c:1479:37: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1482:34: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1482:34: sparse: expected unsigned short [usertype] rid
drivers/staging/wlan-ng/hfa384x_usb.c:1482:34: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1566:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1566:35: sparse: expected unsigned short [usertype] type
drivers/staging/wlan-ng/hfa384x_usb.c:1566:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1567:37: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1567:37: sparse: expected unsigned short [usertype] frmlen
drivers/staging/wlan-ng/hfa384x_usb.c:1567:37: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1570:37: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1570:37: sparse: expected unsigned short [usertype] offset
drivers/staging/wlan-ng/hfa384x_usb.c:1570:37: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1571:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1571:35: sparse: expected unsigned short [usertype] page
drivers/staging/wlan-ng/hfa384x_usb.c:1571:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1659:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1659:35: sparse: expected unsigned short [usertype] type
drivers/staging/wlan-ng/hfa384x_usb.c:1659:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1660:37: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1660:37: sparse: expected unsigned short [usertype] frmlen
drivers/staging/wlan-ng/hfa384x_usb.c:1660:37: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1663:37: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1663:37: sparse: expected unsigned short [usertype] offset
drivers/staging/wlan-ng/hfa384x_usb.c:1663:37: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1664:35: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:1664:35: sparse: expected unsigned short [usertype] page
drivers/staging/wlan-ng/hfa384x_usb.c:1664:35: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:1816:28: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:1817:30: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:1818:27: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:1824:25: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:2322:34: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:2323:35: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:2345:44: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x_usb.c:2607:42: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:2607:42: sparse: expected unsigned short [usertype] tx_control
drivers/staging/wlan-ng/hfa384x_usb.c:2607:42: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:2616:48: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:2616:48: sparse: expected unsigned short [usertype] data_len
drivers/staging/wlan-ng/hfa384x_usb.c:2616:48: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x_usb.c:2619:48: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/hfa384x_usb.c:2619:48: sparse: expected unsigned short [usertype] data_len
drivers/staging/wlan-ng/hfa384x_usb.c:2619:48: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mgmt.c:172:30: sparse: sparse: incorrect type in assignment (different base types)
>> drivers/staging/wlan-ng/prism2mgmt.c:172:30: sparse: expected unsigned short [usertype] word
drivers/staging/wlan-ng/prism2mgmt.c:172:30: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mgmt.c:187:24: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/prism2mgmt.c:187:24: sparse: expected unsigned short [addressable] [usertype] txRate
drivers/staging/wlan-ng/prism2mgmt.c:187:24: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mgmt.c:199:29: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/prism2mgmt.c:199:29: sparse: expected unsigned short [addressable] [usertype] channelList
drivers/staging/wlan-ng/prism2mgmt.c:199:29: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mgmt.c:202:26: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/prism2mgmt.c:202:26: sparse: expected unsigned short [addressable] [usertype] len
drivers/staging/wlan-ng/prism2mgmt.c:202:26: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mgmt.c:231:28: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/prism2mgmt.c:231:28: sparse: expected unsigned short
drivers/staging/wlan-ng/prism2mgmt.c:231:28: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mgmt.c:406:28: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mgmt.c:407:27: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mgmt.c:416:30: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mgmt.c:464:34: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mgmt.c:474:36: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mgmt.c:478:31: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mgmt.c:481:17: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/hfa384x.h:1405:33: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: sparse: incorrect type in initializer (different base types)
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: expected unsigned short [usertype] value
drivers/staging/wlan-ng/hfa384x.h:1411:21: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mib.c:719:45: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2mib.c:722:45: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/prism2mib.c:722:45: sparse: expected unsigned short [addressable] [usertype] datalen
drivers/staging/wlan-ng/prism2mib.c:722:45: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mib.c:757:22: sparse: sparse: incorrect type in assignment (different base types)
drivers/staging/wlan-ng/prism2mib.c:757:22: sparse: expected unsigned short [usertype] len
drivers/staging/wlan-ng/prism2mib.c:757:22: sparse: got restricted __le16 [usertype]
drivers/staging/wlan-ng/prism2mib.c:779:26: sparse: sparse: cast to restricted __le16
drivers/staging/wlan-ng/prism2sta.c:373:46: sparse: sparse: cast to restricted __le16
--
net/qrtr/qrtr.c:274:16: sparse: sparse: incorrect type in assignment (different base types)
>> net/qrtr/qrtr.c:274:16: sparse: expected unsigned int [usertype]
>> net/qrtr/qrtr.c:274:16: sparse: got restricted __le32 [usertype]
net/qrtr/qrtr.c:275:16: sparse: sparse: incorrect type in assignment (different base types)
net/qrtr/qrtr.c:275:16: sparse: expected unsigned int [usertype]
net/qrtr/qrtr.c:275:16: sparse: got restricted __le32 [usertype]
net/qrtr/qrtr.c:276:16: sparse: sparse: incorrect type in assignment (different base types)
net/qrtr/qrtr.c:276:16: sparse: expected unsigned int [usertype]
net/qrtr/qrtr.c:276:16: sparse: got restricted __le32 [usertype]
--
include/linux/reservation.h:185:37: sparse: sparse: incorrect type in argument 1 (different address spaces)
>> include/linux/reservation.h:185:37: sparse: expected struct fence *[noderef] <asn:4> *fencep
>> include/linux/reservation.h:185:37: sparse: got struct fence [noderef] <asn:4> **
>> include/linux/fence.h:245:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
>> include/linux/fence.h:245:25: sparse: expected void const volatile *p
>> include/linux/fence.h:245:25: sparse: got struct fence *[noderef] <asn:4> *fencep
>> include/linux/fence.h:245:25: sparse: sparse: incorrect type in argument 1 (different address spaces)
>> include/linux/fence.h:245:25: sparse: expected void const volatile *p
>> include/linux/fence.h:245:25: sparse: got struct fence *[noderef] <asn:4> *fencep
>> include/linux/fence.h:245:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> include/linux/fence.h:245:25: sparse: struct fence [noderef] <asn:4> *
>> include/linux/fence.h:245:25: sparse: struct fence *
include/linux/fence.h:263:30: sparse: sparse: incompatible types in comparison expression (different address spaces):
include/linux/fence.h:263:30: sparse: struct fence [noderef] <asn:4> *
include/linux/fence.h:263:30: sparse: struct fence *
--
>> drivers/platform/goldfish/goldfish_pipe_v2.c:562:1: sparse: sparse: symbol 'goldfish_interrupt_tasklet' was not declared. Should it be static?
Please review and possibly fold the followup patch.
vim +127 include/linux/rculist_nulls.h
d894ba18d4e449 Craig Gallek 2016-04-12 101
d894ba18d4e449 Craig Gallek 2016-04-12 102 /**
d894ba18d4e449 Craig Gallek 2016-04-12 103 * hlist_nulls_add_tail_rcu
d894ba18d4e449 Craig Gallek 2016-04-12 104 * @n: the element to add to the hash list.
d894ba18d4e449 Craig Gallek 2016-04-12 105 * @h: the list to add to.
d894ba18d4e449 Craig Gallek 2016-04-12 106 *
d894ba18d4e449 Craig Gallek 2016-04-12 107 * Description:
d894ba18d4e449 Craig Gallek 2016-04-12 108 * Adds the specified element to the end of the specified hlist_nulls,
d894ba18d4e449 Craig Gallek 2016-04-12 109 * while permitting racing traversals. NOTE: tail insertion requires
d894ba18d4e449 Craig Gallek 2016-04-12 110 * list traversal.
d894ba18d4e449 Craig Gallek 2016-04-12 111 *
d894ba18d4e449 Craig Gallek 2016-04-12 112 * The caller must take whatever precautions are necessary
d894ba18d4e449 Craig Gallek 2016-04-12 113 * (such as holding appropriate locks) to avoid racing
d894ba18d4e449 Craig Gallek 2016-04-12 114 * with another list-mutation primitive, such as hlist_nulls_add_head_rcu()
d894ba18d4e449 Craig Gallek 2016-04-12 115 * or hlist_nulls_del_rcu(), running on this same list.
d894ba18d4e449 Craig Gallek 2016-04-12 116 * However, it is perfectly legal to run concurrently with
d894ba18d4e449 Craig Gallek 2016-04-12 117 * the _rcu list-traversal primitives, such as
d894ba18d4e449 Craig Gallek 2016-04-12 118 * hlist_nulls_for_each_entry_rcu(), used to prevent memory-consistency
d894ba18d4e449 Craig Gallek 2016-04-12 119 * problems on Alpha CPUs. Regardless of the type of CPU, the
d894ba18d4e449 Craig Gallek 2016-04-12 120 * list-traversal primitive must be guarded by rcu_read_lock().
d894ba18d4e449 Craig Gallek 2016-04-12 121 */
d894ba18d4e449 Craig Gallek 2016-04-12 122 static inline void hlist_nulls_add_tail_rcu(struct hlist_nulls_node *n,
d894ba18d4e449 Craig Gallek 2016-04-12 123 struct hlist_nulls_head *h)
d894ba18d4e449 Craig Gallek 2016-04-12 124 {
d894ba18d4e449 Craig Gallek 2016-04-12 125 struct hlist_nulls_node *i, *last = NULL;
d894ba18d4e449 Craig Gallek 2016-04-12 126
d894ba18d4e449 Craig Gallek 2016-04-12 @127 for (i = hlist_nulls_first_rcu(h); !is_a_nulls(i);
d894ba18d4e449 Craig Gallek 2016-04-12 128 i = hlist_nulls_next_rcu(i))
d894ba18d4e449 Craig Gallek 2016-04-12 129 last = i;
d894ba18d4e449 Craig Gallek 2016-04-12 130
d894ba18d4e449 Craig Gallek 2016-04-12 131 if (last) {
d894ba18d4e449 Craig Gallek 2016-04-12 132 n->next = last->next;
d894ba18d4e449 Craig Gallek 2016-04-12 133 n->pprev = &last->next;
d894ba18d4e449 Craig Gallek 2016-04-12 134 rcu_assign_pointer(hlist_nulls_next_rcu(last), n);
d894ba18d4e449 Craig Gallek 2016-04-12 135 } else {
d894ba18d4e449 Craig Gallek 2016-04-12 136 hlist_nulls_add_head_rcu(n, h);
d894ba18d4e449 Craig Gallek 2016-04-12 137 }
d894ba18d4e449 Craig Gallek 2016-04-12 138 }
d894ba18d4e449 Craig Gallek 2016-04-12 139
:::::: The code at line 127 was first introduced by commit
:::::: d894ba18d4e449b3a7f6eb491f16c9e02933736e soreuseport: fix ordering for mixed v4/v6 sockets
:::::: TO: Craig Gallek <kraig@google.com>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org Intel Corporation
^ permalink raw reply [flat|nested] 2+ messages in thread
* [RFC PATCH android-common] objtool, perf: cpufreq_interactive_init() can be static
2020-01-08 18:13 [android-common:android-4.9-o-mr1 42/51] include/linux/rculist_nulls.h:127:16: sparse: sparse: incorrect type in assignment (different address spaces) kbuild test robot
@ 2020-01-08 18:13 ` kbuild test robot
0 siblings, 0 replies; 2+ messages in thread
From: kbuild test robot @ 2020-01-08 18:13 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2806 bytes --]
Fixes: 4864b0702653 ("objtool, perf: Fix GCC 8 -Wrestrict error")
Signed-off-by: kbuild test robot <lkp@intel.com>
---
cpufreq/cpufreq_interactive.c | 10 +++++-----
platform/goldfish/goldfish_pipe_v2.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/cpufreq/cpufreq_interactive.c b/drivers/cpufreq/cpufreq_interactive.c
index 5a77d91296114..8163fbbc18d57 100644
--- a/drivers/cpufreq/cpufreq_interactive.c
+++ b/drivers/cpufreq/cpufreq_interactive.c
@@ -1151,7 +1151,7 @@ static void interactive_tunables_free(struct interactive_tunables *tunables)
kfree(tunables);
}
-int cpufreq_interactive_init(struct cpufreq_policy *policy)
+static int cpufreq_interactive_init(struct cpufreq_policy *policy)
{
struct interactive_policy *ipolicy;
struct interactive_tunables *tunables;
@@ -1236,7 +1236,7 @@ int cpufreq_interactive_init(struct cpufreq_policy *policy)
return ret;
}
-void cpufreq_interactive_exit(struct cpufreq_policy *policy)
+static void cpufreq_interactive_exit(struct cpufreq_policy *policy)
{
struct interactive_policy *ipolicy = policy->governor_data;
struct interactive_tunables *tunables = ipolicy->tunables;
@@ -1261,7 +1261,7 @@ void cpufreq_interactive_exit(struct cpufreq_policy *policy)
interactive_policy_free(ipolicy);
}
-int cpufreq_interactive_start(struct cpufreq_policy *policy)
+static int cpufreq_interactive_start(struct cpufreq_policy *policy)
{
struct interactive_policy *ipolicy = policy->governor_data;
struct interactive_cpu *icpu;
@@ -1288,7 +1288,7 @@ int cpufreq_interactive_start(struct cpufreq_policy *policy)
return 0;
}
-void cpufreq_interactive_stop(struct cpufreq_policy *policy)
+static void cpufreq_interactive_stop(struct cpufreq_policy *policy)
{
struct interactive_policy *ipolicy = policy->governor_data;
struct interactive_cpu *icpu;
@@ -1307,7 +1307,7 @@ void cpufreq_interactive_stop(struct cpufreq_policy *policy)
}
}
-void cpufreq_interactive_limits(struct cpufreq_policy *policy)
+static void cpufreq_interactive_limits(struct cpufreq_policy *policy)
{
struct interactive_cpu *icpu;
unsigned int cpu;
diff --git a/drivers/platform/goldfish/goldfish_pipe_v2.c b/drivers/platform/goldfish/goldfish_pipe_v2.c
index ad373ed365552..10f8e3f815df8 100644
--- a/drivers/platform/goldfish/goldfish_pipe_v2.c
+++ b/drivers/platform/goldfish/goldfish_pipe_v2.c
@@ -559,7 +559,7 @@ static void goldfish_interrupt_task(unsigned long unused)
wake_up_interruptible(&pipe->wake_queue);
}
}
-DECLARE_TASKLET(goldfish_interrupt_tasklet, goldfish_interrupt_task, 0);
+static DECLARE_TASKLET(goldfish_interrupt_tasklet, goldfish_interrupt_task, 0);
/*
* The general idea of the interrupt handling:
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-08 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-08 18:13 [android-common:android-4.9-o-mr1 42/51] include/linux/rculist_nulls.h:127:16: sparse: sparse: incorrect type in assignment (different address spaces) kbuild test robot
2020-01-08 18:13 ` [RFC PATCH android-common] objtool, perf: cpufreq_interactive_init() can be static kbuild 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.