OpenCloudOS-Kernel/drivers/staging/rtl8192u
Eric Biggers 877b5691f2 crypto: shash - remove shash_desc::flags
The flags field in 'struct shash_desc' never actually does anything.
The only ostensibly supported flag is CRYPTO_TFM_REQ_MAY_SLEEP.
However, no shash algorithm ever sleeps, making this flag a no-op.

With this being the case, inevitably some users who can't sleep wrongly
pass MAY_SLEEP.  These would all need to be fixed if any shash algorithm
actually started sleeping.  For example, the shash_ahash_*() functions,
which wrap a shash algorithm with the ahash API, pass through MAY_SLEEP
from the ahash API to the shash API.  However, the shash functions are
called under kmap_atomic(), so actually they're assumed to never sleep.

Even if it turns out that some users do need preemption points while
hashing large buffers, we could easily provide a helper function
crypto_shash_update_large() which divides the data into smaller chunks
and calls crypto_shash_update() and cond_resched() for each chunk.  It's
not necessary to have a flag in 'struct shash_desc', nor is it necessary
to make individual shash algorithms aware of this at all.

Therefore, remove shash_desc::flags, and document that the
crypto_shash_*() functions can be called from any context.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-04-25 15:38:12 +08:00
..
ieee80211 crypto: shash - remove shash_desc::flags 2019-04-25 15:38:12 +08:00
Kconfig Staging: rtl8192u: kconfig: Remove blank help text 2018-02-02 23:53:10 +09:00
Makefile staging: prefix header search paths with $(srctree)/ 2019-02-04 12:30:27 +01:00
authors
changes
copying
r819xU_cmdpkt.c staging: rtl8192u: Fix misspellings in comments - Style 2018-11-05 14:16:33 +01:00
r819xU_cmdpkt.h staging:rtl8192u: Remove typedef of cmpk_set_cfg_t - Style 2018-07-30 11:12:32 +02:00
r819xU_firmware.c staging: rtl8192u: Fix misspelling in struct member name - Style 2018-11-05 14:16:33 +01:00
r819xU_firmware.h staging:rtl8192u: Remove typedef from enum opt_rst_type_e - Style 2018-09-10 17:12:16 +02:00
r819xU_firmware_img.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_firmware_img.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
r819xU_phy.c staging:rtl8192u: Rename PHY_SetRF8256OFDMTxPower() - Style 2018-08-27 19:28:16 +02:00
r819xU_phy.h staging:rtl8192u: Refactor BaseBand_Config_Type - Style 2018-08-27 19:27:48 +02:00
r819xU_phyreg.h staging: rtl8192u: Fix misspellings in comments - Style 2018-11-05 14:16:33 +01:00
r8180_93cx6.c Staging: rtl8192u: r8180_93cx6.c - style fix 2017-02-12 13:40:47 +01:00
r8180_93cx6.h staging:rtl8192u: Add required SPDX-License-Identifier - Style 2018-09-10 10:37:54 +02:00
r8190_rtl8256.c staging:rtl8192u: Rename PHY_SetRF8256OFDMTxPower() - Style 2018-08-27 19:28:16 +02:00
r8190_rtl8256.h staging:rtl8192u: Add SPDX-License-Identifier tag - Style 2018-08-27 19:28:16 +02:00
r8192U.h staging: rtl8192u: rename struct name _rt_firmare_seg_container 2018-11-07 12:35:10 +01:00
r8192U_core.c staging: rtl8192u: remove redundant nul check on pointer dev 2019-02-07 13:33:54 +01:00
r8192U_dm.c staging: rtl8192u: Fix misspelling in variable name - Style 2018-11-05 14:16:33 +01:00
r8192U_dm.h staging:rtl8192u: Clean up of spacing - Style 2018-08-05 16:21:07 +02:00
r8192U_hw.h staging:rtl8192u: Rename EEPROM_ChannelPlan - Style 2018-08-27 19:27:49 +02:00
r8192U_wx.c staging: rtl8192u: make r8192_wx_handlers_def structure const 2017-10-03 18:34:57 +02:00
r8192U_wx.h staging: rtl8192u: make r8192_wx_handlers_def structure const 2017-10-03 18:34:57 +02:00