linux/net/atm
Oliver Hartkopp f4b41f062c net: remove noblock parameter from skb_recv_datagram()
skb_recv_datagram() has two parameters 'flags' and 'noblock' that are
merged inside skb_recv_datagram() by 'flags | (noblock ? MSG_DONTWAIT : 0)'

As 'flags' may contain MSG_DONTWAIT as value most callers split the 'flags'
into 'flags' and 'noblock' with finally obsolete bit operations like this:

skb_recv_datagram(sk, flags & ~MSG_DONTWAIT, flags & MSG_DONTWAIT, &rc);

And this is not even done consistently with the 'flags' parameter.

This patch removes the obsolete and costly splitting into two parameters
and only performs bit operations when really needed on the caller side.

One missing conversion thankfully reported by kernel test robot. I missed
to enable kunit tests to build the mctp code.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-04-06 13:45:26 +01:00
..
addr.c
addr.h
atm_misc.c
atm_sysfs.c net: atm: use DEVICE_ATTR_RO macro 2021-05-20 15:50:54 -07:00
br2684.c net: atm: use address setting helpers 2021-10-24 13:59:45 +01:00
clip.c
common.c net: remove noblock parameter from skb_recv_datagram() 2022-04-06 13:45:26 +01:00
common.h
ioctl.c
Kconfig
lec.c net: atm: use address setting helpers 2021-10-24 13:59:45 +01:00
lec.h
lec_arpc.h
Makefile
mpc.c
mpc.h
mpoa_caches.c
mpoa_caches.h
mpoa_proc.c
pppoatm.c net: atm: pppoatm: use new API for wakeup tasklet 2021-01-29 18:24:05 -08:00
proc.c proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
protocols.h
pvc.c
raw.c
resources.c atm: Use list_for_each_entry() to simplify code in resources.c 2021-06-10 14:08:09 -07:00
resources.h
signaling.c
signaling.h
svc.c