Re: [PATCH] fix double next comment in drivers/staging/nvec/nvec.c
On Sat, Sep 26, 2020 at 11:39:37PM -0700, Ryan Kosta wrote: > Signed-off-by: Ryan Kosta > --- > drivers/staging/nvec/nvec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c > index 360ec040774..a80996b2f5c 100644 > --- a/drivers/staging/nvec/nvec.c > +++ b/drivers/staging/nvec/nvec.c > @@ -289,7 +289,7 @@ EXPORT_SYMBOL(nvec_write_async); > * interrupt handlers. > * > * Returns: 0 on success, a negative error code on failure. > - * The response message is returned in @msg. Shall be freed with > + * The response message is returned in @msg. Shall be freed > * with nvec_msg_free() once no longer used. > * > */ > -- > 2.20.1 Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v2] staging: rtl8188eu: Reapply "staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames"
Commit 515ce733e86e ("staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames") was reverted because it caused scheduling while atomic bugs and hard freezes. Experimentation showed that there were no freezes and no BUG messages logged when lib80211_get_crypto_ops() was called directly rather than indirectly through try_then_request_module(). Reapply "staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames" with resolved revert conflicts and replace try_then_request_module() with direct call to lib80211_get_crypto_ops(). Original commit message: Put data to skb, decrypt with lib80211_crypt_ccmp, and place back to tx buffer. Cc: Ivan Safonov Signed-off-by: Michael Straube --- v1 -> v2: Added missing spaces around '+' and removed unnecessary parentheses. if ((curfragnum+1) == pattrib->nr_frags) if (curfragnum + 1 == pattrib->nr_frags) drivers/staging/rtl8188eu/core/rtw_security.c | 778 ++ 1 file changed, 72 insertions(+), 706 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_security.c b/drivers/staging/rtl8188eu/core/rtw_security.c index d2d562550eb7..b7a8c199de54 100644 --- a/drivers/staging/rtl8188eu/core/rtw_security.c +++ b/drivers/staging/rtl8188eu/core/rtw_security.c @@ -722,552 +722,106 @@ u32 rtw_tkip_decrypt(struct adapter *padapter, struct recv_frame *precvframe) return res; } -/* 3 = AES related = */ - -#define MAX_MSG_SIZE 2048 -/*/ -/ SBOX Table */ -/*/ - -static const u8 sbox_table[256] = { - 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, - 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, - 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, - 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, - 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, - 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, - 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, - 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, - 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, - 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, - 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, - 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, - 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, - 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, - 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, - 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, - 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, - 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, - 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, - 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, - 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, - 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, - 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, - 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, - 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, - 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, - 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, - 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, - 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, - 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, - 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, - 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16 -}; - -/*/ -/ Function Prototypes / -/*/ - -static void bitwise_xor(u8 *ina, u8 *inb, u8 *out); -static void construct_mic_iv(u8 *mic_header1, int qc_exists, int a4_exists, u8 *mpdu, uint payload_length, u8 *pn_vector); -static void construct_mic_header1(u8 *mic_header1, int header_length, u8 *mpdu); -static void construct_mic_header2(u8 *mic_header2, u8 *mpdu, int a4_exists, int qc_exists); -static void construct_ctr_preload(u8 *ctr_preload, int a4_exists, int qc_exists, u8 *mpdu, u8 *pn_vector, int c); -static void xor_128(u8 *a, u8 *b, u8 *out); -static void xor_32(u8 *a, u8 *b, u8 *out); -static u8 sbox(u8 a); -static void next_key(u8 *key, int round); -static void byte_sub(u8 *in, u8 *out); -static void shift_row(u8 *in, u8 *out); -static void mix_column(u8 *in, u8 *out); -static void aes128k128d(u8 *key, u8 *data, u8 *ciphertext); - -// -/* aes128k128d() */ -/* Performs a 128 bit AES encrypt with */ -/* 128 bit data. */ -// -static void xor_128(u8 *a, u8 *b, u8 *out) -{ - int i; - - for (i = 0; i < 16; i++) - out[i] = a[i] ^ b[i]; -} - -static void xor_32(u8 *a, u8 *b, u8 *out) -{ - int i; - - for (i = 0; i < 4; i++) - out[i] = a[i] ^ b[i]; -} - -static u8 sbox(u8 a) -{ - return sbox_table[(int)a]; -} - -static void next_key(u8 *key, int round) -{ - u8 rcon; - u8 sbox_key[4]; - static const u8 rcon_table[12] = { -
Re: [PATCH -next] binder: simplify the return expression of binder_mmap
On Mon, Sep 21, 2020 at 07:47:34PM +0800, Liu Shixin wrote: > Simplify the return expression. > > Signed-off-by: Liu Shixin > --- > drivers/android/binder.c | 18 -- > 1 file changed, 4 insertions(+), 14 deletions(-) Is this a v2 patch? If so, please properly label it and say what changed from the v1 version below the --- line. Please fix up and resend a v3. thanks, greg k-h ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH] media: atomisp: Fixed error handling path
Inside alloc_user_pages() based on flag value either pin_user_pages() or get_user_pages_fast() will be called. However, these API might fail. But free_user_pages() called in error handling path doesn't bother about return value and will try to unpin bo->pgnr pages, which is incorrect. Fix this by passing the page_nr to free_user_pages(). If page_nr > 0 pages will be unpinned based on bo->mem_type. This will also take care of non error handling path. Fixes: 14a638ab96c5 ("media: atomisp: use pin_user_pages() for memory allocation") Signed-off-by: Souptick Joarder Cc: John Hubbard Cc: Ira Weiny Cc: Dan Carpenter --- drivers/staging/media/atomisp/pci/hmm/hmm_bo.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c index f13af23..0168f98 100644 --- a/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c +++ b/drivers/staging/media/atomisp/pci/hmm/hmm_bo.c @@ -857,16 +857,17 @@ static void free_private_pages(struct hmm_buffer_object *bo, kfree(bo->page_obj); } -static void free_user_pages(struct hmm_buffer_object *bo) +static void free_user_pages(struct hmm_buffer_object *bo, + unsigned int page_nr) { int i; hmm_mem_stat.usr_size -= bo->pgnr; if (bo->mem_type == HMM_BO_MEM_TYPE_PFN) { - unpin_user_pages(bo->pages, bo->pgnr); + unpin_user_pages(bo->pages, page_nr); } else { - for (i = 0; i < bo->pgnr; i++) + for (i = 0; i < page_nr; i++) put_page(bo->pages[i]); } kfree(bo->pages); @@ -942,6 +943,8 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, dev_err(atomisp_dev, "get_user_pages err: bo->pgnr = %d, pgnr actually pinned = %d.\n", bo->pgnr, page_nr); + if (page_nr < 0) + page_nr = 0; goto out_of_mem; } @@ -954,7 +957,7 @@ static int alloc_user_pages(struct hmm_buffer_object *bo, out_of_mem: - free_user_pages(bo); + free_user_pages(bo, page_nr); return -ENOMEM; } @@ -1037,7 +1040,7 @@ void hmm_bo_free_pages(struct hmm_buffer_object *bo) if (bo->type == HMM_BO_PRIVATE) free_private_pages(bo, &dynamic_pool, &reserved_pool); else if (bo->type == HMM_BO_USER) - free_user_pages(bo); + free_user_pages(bo, bo->pgnr); else dev_err(atomisp_dev, "invalid buffer type.\n"); mutex_unlock(&bo->mutex); -- 1.9.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v2] Staging: nvec: nvec: fix double next comment
Changes since v1: * Made commit message more clear * Added description Note: previous patch named "[PATCH] fix double next comment in drivers/staging/nvec/nvec.c" >8--8< Fixes a comment typo. Signed-off-by: Ryan Kosta --- drivers/staging/nvec/nvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 360ec040774..a80996b2f5c 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -289,7 +289,7 @@ EXPORT_SYMBOL(nvec_write_async); * interrupt handlers. * * Returns: 0 on success, a negative error code on failure. - * The response message is returned in @msg. Shall be freed with + * The response message is returned in @msg. Shall be freed * with nvec_msg_free() once no longer used. * */ -- 2.20.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[PATCH v3] Staging: nvec: Removes repeated word typo in comment
Fix a comment typo. Signed-off-by: Ryan Kosta --- V3: Fix commit name drivers/staging/nvec/nvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 360ec040774..a80996b2f5c 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -289,7 +289,7 @@ EXPORT_SYMBOL(nvec_write_async); * interrupt handlers. * * Returns: 0 on success, a negative error code on failure. - * The response message is returned in @msg. Shall be freed with + * The response message is returned in @msg. Shall be freed * with nvec_msg_free() once no longer used. * */ -- 2.20.1 ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH] media: atomisp: Fixed error handling path
> Fixes: 14a638ab96c5 ("media: atomisp: use pin_user_pages() for memory > allocation") Please omit a line break for this tag. Regards, Markus ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
[staging:staging-testing] BUILD SUCCESS eca1d82ea858044a27fa95c498cc0835a0b2e17a
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing branch HEAD: eca1d82ea858044a27fa95c498cc0835a0b2e17a staging: rtl8188eu: Reapply "staging:r8188eu: Use lib80211 to encrypt (CCMP) tx frames" elapsed time: 720m configs tested: 91 configs skipped: 2 The following configs have been built successfully. More configs may be tested in the coming days. gcc tested configs: arm defconfig arm64allyesconfig arm64 defconfig arm allyesconfig arm allmodconfig powerpc chrp32_defconfig riscvallyesconfig powerpc mpc8560_ads_defconfig sh secureedge5410_defconfig powerpc ppc6xx_defconfig i386 alldefconfig powerpc mpc832x_rdb_defconfig m68k apollo_defconfig sh sdk7780_defconfig arc defconfig powerpc sequoia_defconfig i386defconfig arm tegra_defconfig arm orion5x_defconfig m68k allyesconfig powerpc tqm8xx_defconfig arm lubbock_defconfig armu300_defconfig x86_64 allyesconfig arc haps_hs_defconfig arc nps_defconfig c6xevmc6474_defconfig mips maltaaprp_defconfig arm colibri_pxa300_defconfig powerpc maple_defconfig parisc defconfig armmulti_v5_defconfig openrisc simple_smp_defconfig ia64 allmodconfig ia64defconfig ia64 allyesconfig m68k allmodconfig m68kdefconfig nios2 defconfig arc allyesconfig nds32 allnoconfig c6x allyesconfig nds32 defconfig nios2allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig sh allmodconfig s390 allyesconfig parisc allyesconfig s390defconfig i386 allyesconfig sparcallyesconfig sparc defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200927 i386 randconfig-a006-20200927 i386 randconfig-a003-20200927 i386 randconfig-a004-20200927 i386 randconfig-a005-20200927 i386 randconfig-a001-20200927 x86_64 randconfig-a016-20200927 i386 randconfig-a012-20200927 i386 randconfig-a014-20200927 i386 randconfig-a016-20200927 i386 randconfig-a013-20200927 i386 randconfig-a011-20200927 i386 randconfig-a015-20200927 riscvnommu_k210_defconfig riscvnommu_virt_defconfig riscv allnoconfig riscv defconfig riscv rv32_defconfig riscvallmodconfig x86_64 rhel x86_64rhel-7.6-kselftests x86_64 defconfig x86_64 rhel-8.3 x86_64 kexec clang tested configs: x86_64 randconfig-a005-20200927 x86_64 randconfig-a003-20200927 x86_64 randconfig-a004-20200927 x86_64 randconfig-a002-20200927 x86_64 randconfig-a006-20200927 x86_64 randconfig-a001-20200927 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
Re: [PATCH 00/11] Introduce Simple atomic and non-atomic counters
On Fri, Sep 25, 2020 at 05:47:14PM -0600, Shuah Khan wrote: > This patch series is a result of discussion at the refcount_t BOF > the Linux Plumbers Conference. In this discussion, we identified > a need for looking closely and investigating atomic_t usages in > the kernel when it is used strictly as a counter without it > controlling object lifetimes and state changes. > > There are a number of atomic_t usages in the kernel where atomic_t api > is used strictly for counting and not for managing object lifetime. In > some cases, atomic_t might not even be needed. > > The purpose of these counters is twofold: 1. clearly differentiate > atomic_t counters from atomic_t usages that guard object lifetimes, > hence prone to overflow and underflow errors. It allows tools that scan > for underflow and overflow on atomic_t usages to detect overflow and > underflows to scan just the cases that are prone to errors. 2. provides > non-atomic counters for cases where atomic isn't necessary. Nice series :) It appears there is no user of counter_simple in this series other than the selftest. Would you be planning to add any conversions in the series itself, for illustration of use? Sorry if I missed a usage. Also how do we guard against atomicity of counter_simple RMW operations? Is the implication that it should be guarded using other synchronization to prevent lost-update problem? Some more comments: 1. atomic RMW operations that have a return value are fully ordered. Would you be adding support to counter_simple for such ordering as well, for consistency? 2. I felt counter_atomic and counter_atomic64 would be nice equivalents to the atomic and atomic64 naming currently used (i.e. dropping the '32'). However that is just my opinion and I am ok with either naming. thanks! - Joel > > Simple atomic and non-atomic counters api provides interfaces for simple > atomic and non-atomic counters that just count, and don't guard resource > lifetimes. Counters will wrap around to 0 when it overflows and should > not be used to guard resource lifetimes, device usage and open counts > that control state changes, and pm states. > > Using counter_atomic to guard lifetimes could lead to use-after free > when it overflows and undefined behavior when used to manage state > changes and device usage/open states. > > This patch series introduces Simple atomic and non-atomic counters. > Counter atomic ops leverage atomic_t and provide a sub-set of atomic_t > ops. > > In addition this patch series converts a few drivers to use the new api. > The following criteria is used for select variables for conversion: > > 1. Variable doesn't guard object lifetimes, manage state changes e.g: >device usage counts, device open counts, and pm states. > 2. Variable is used for stats and counters. > 3. The conversion doesn't change the overflow behavior. > > Changes since RFC: > -- Thanks for reviews and reviewed-by, and Acked-by tags. Updated >the patches with the tags. > -- Addressed Kees's comments: >1. Non-atomic counters renamed to counter_simple32 and counter_simple64 > to clearly indicate size. >2. Added warning for counter_simple* usage and it should be used only > when there is no need for atomicity. >3. Renamed counter_atomic to counter_atomic32 to clearly indicate size. >4. Renamed counter_atomic_long to counter_atomic64 and it now uses > atomic64_t ops and indicates size. >5. Test updated for the API renames. >6. Added helper functions for test results printing >7. Verified that the test module compiles in kunit env. and test > module can be loaded to run the test. >8. Updated Documentation to reflect the intent to make the API > restricted so it can never be used to guard object lifetimes > and state management. I left _return ops for now, inc_return > is necessary for now as per the discussion we had on this topic. > -- Updated driver patches with API name changes. > -- We discussed if binder counters can be non-atomic. For now I left >them the same as the RFC patch - using counter_atomic32 > -- Unrelated to this patch series: >The patch series review uncovered improvements could be made to >test_async_driver_probe and vmw_vmci/vmci_guest. I will track >these for fixing later. > > Shuah Khan (11): > counters: Introduce counter_simple* and counter_atomic* counters > selftests:lib:test_counters: add new test for counters > drivers/base: convert deferred_trigger_count and probe_count to > counter_atomic32 > drivers/base/devcoredump: convert devcd_count to counter_atomic32 > drivers/acpi: convert seqno counter_atomic32 > drivers/acpi/apei: convert seqno counter_atomic32 > drivers/android/binder: convert stats, transaction_log to > counter_atomic32 > drivers/base/test/test_async_driver_probe: convert to use > counter_atomic32 > drivers/char/ipmi: convert stats to use counter_ato
Re: [PATCH 07/11] drivers/android/binder: convert stats, transaction_log to counter_atomic32
On Fri, Sep 25, 2020 at 05:47:21PM -0600, Shuah Khan wrote: > counter_atomic* is introduced to be used when a variable is used as > a simple counter and doesn't guard object lifetimes. This clearly > differentiates atomic_t usages that guard object lifetimes. > > counter_atomic* variables will wrap around to 0 when it overflows and > should not be used to guard resource lifetimes, device usage and > open counts that control state changes, and pm states. > > stats tracks per-process binder statistics. Unsure if there is a chance > of this overflowing, other than stats getting reset to 0. Convert it to > use counter_atomic. > > binder_transaction_log:cur is used to keep track of the current log entry > location. Overflow is handled in the code. Since it is used as a > counter, convert it to use counter_atomic32. > > This conversion doesn't change the overflow wrap around behavior. > > Signed-off-by: Shuah Khan Reviewed-by: Joel Fernandes (Google) thanks, - Joel > --- > drivers/android/binder.c | 41 --- > drivers/android/binder_internal.h | 3 ++- > 2 files changed, 23 insertions(+), 21 deletions(-) > > diff --git a/drivers/android/binder.c b/drivers/android/binder.c > index f936530a19b0..52175cd6a62b 100644 > --- a/drivers/android/binder.c > +++ b/drivers/android/binder.c > @@ -66,6 +66,7 @@ > #include > #include > #include > +#include > > #include > #include > @@ -172,22 +173,22 @@ enum binder_stat_types { > }; > > struct binder_stats { > - atomic_t br[_IOC_NR(BR_FAILED_REPLY) + 1]; > - atomic_t bc[_IOC_NR(BC_REPLY_SG) + 1]; > - atomic_t obj_created[BINDER_STAT_COUNT]; > - atomic_t obj_deleted[BINDER_STAT_COUNT]; > + struct counter_atomic32 br[_IOC_NR(BR_FAILED_REPLY) + 1]; > + struct counter_atomic32 bc[_IOC_NR(BC_REPLY_SG) + 1]; > + struct counter_atomic32 obj_created[BINDER_STAT_COUNT]; > + struct counter_atomic32 obj_deleted[BINDER_STAT_COUNT]; > }; > > static struct binder_stats binder_stats; > > static inline void binder_stats_deleted(enum binder_stat_types type) > { > - atomic_inc(&binder_stats.obj_deleted[type]); > + counter_atomic32_inc(&binder_stats.obj_deleted[type]); > } > > static inline void binder_stats_created(enum binder_stat_types type) > { > - atomic_inc(&binder_stats.obj_created[type]); > + counter_atomic32_inc(&binder_stats.obj_created[type]); > } > > struct binder_transaction_log binder_transaction_log; > @@ -197,7 +198,7 @@ static struct binder_transaction_log_entry > *binder_transaction_log_add( > struct binder_transaction_log *log) > { > struct binder_transaction_log_entry *e; > - unsigned int cur = atomic_inc_return(&log->cur); > + unsigned int cur = counter_atomic32_inc_return(&log->cur); > > if (cur >= ARRAY_SIZE(log->entry)) > log->full = true; > @@ -3615,9 +3616,9 @@ static int binder_thread_write(struct binder_proc *proc, > ptr += sizeof(uint32_t); > trace_binder_command(cmd); > if (_IOC_NR(cmd) < ARRAY_SIZE(binder_stats.bc)) { > - atomic_inc(&binder_stats.bc[_IOC_NR(cmd)]); > - atomic_inc(&proc->stats.bc[_IOC_NR(cmd)]); > - atomic_inc(&thread->stats.bc[_IOC_NR(cmd)]); > + counter_atomic32_inc(&binder_stats.bc[_IOC_NR(cmd)]); > + counter_atomic32_inc(&proc->stats.bc[_IOC_NR(cmd)]); > + counter_atomic32_inc(&thread->stats.bc[_IOC_NR(cmd)]); > } > switch (cmd) { > case BC_INCREFS: > @@ -4047,9 +4048,9 @@ static void binder_stat_br(struct binder_proc *proc, > { > trace_binder_return(cmd); > if (_IOC_NR(cmd) < ARRAY_SIZE(binder_stats.br)) { > - atomic_inc(&binder_stats.br[_IOC_NR(cmd)]); > - atomic_inc(&proc->stats.br[_IOC_NR(cmd)]); > - atomic_inc(&thread->stats.br[_IOC_NR(cmd)]); > + counter_atomic32_inc(&binder_stats.br[_IOC_NR(cmd)]); > + counter_atomic32_inc(&proc->stats.br[_IOC_NR(cmd)]); > + counter_atomic32_inc(&thread->stats.br[_IOC_NR(cmd)]); > } > } > > @@ -5841,7 +5842,7 @@ static void print_binder_stats(struct seq_file *m, > const char *prefix, > BUILD_BUG_ON(ARRAY_SIZE(stats->bc) != >ARRAY_SIZE(binder_command_strings)); > for (i = 0; i < ARRAY_SIZE(stats->bc); i++) { > - int temp = atomic_read(&stats->bc[i]); > + int temp = counter_atomic32_read(&stats->bc[i]); > > if (temp) > seq_printf(m, "%s%s: %d\n", prefix, > @@ -5851,7 +5852,7 @@ static void print_binder_stats(struct seq_file *m, > const char *prefix, > BUILD_BUG_ON(ARRAY_SIZE(stats->br) != >ARRAY_SIZE(binder_return_strings)); > for (i = 0; i < ARRAY_SIZE(stats->br); i++) { > - int temp = atomic_read(&stat
[driver-core:driver-core-testing] BUILD SUCCESS e5e5fcef600e94d83c6542cdcca3ab6dada95946
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git driver-core-testing branch HEAD: e5e5fcef600e94d83c6542cdcca3ab6dada95946 dyndbg: use keyword, arg varnames for query term pairs elapsed time: 721m configs tested: 95 configs skipped: 2 The following configs have been built successfully. More configs may be tested in the coming days. gcc tested configs: arm defconfig arm64allyesconfig arm64 defconfig arm allyesconfig arm allmodconfig powerpc chrp32_defconfig powerpc mpc8560_ads_defconfig sh secureedge5410_defconfig powerpc ppc6xx_defconfig arm colibri_pxa300_defconfig powerpc64 defconfig mipsmaltaup_defconfig armhisi_defconfig shsh7785lcr_defconfig openriscor1ksim_defconfig arm moxart_defconfig arm footbridge_defconfig powerpc tqm8560_defconfig arm spear13xx_defconfig powerpc mpc512x_defconfig sh se7722_defconfig m68k alldefconfig arm gemini_defconfig mips pic32mzda_defconfig arm am200epdkit_defconfig powerpcgamecube_defconfig ia64 allmodconfig ia64defconfig ia64 allyesconfig m68k allmodconfig m68kdefconfig m68k allyesconfig nds32 defconfig nios2allyesconfig cskydefconfig alpha defconfig alphaallyesconfig xtensa allyesconfig h8300allyesconfig arc defconfig sh allmodconfig nios2 defconfig arc allyesconfig nds32 allnoconfig c6x allyesconfig parisc defconfig s390 allyesconfig parisc allyesconfig s390defconfig i386 allyesconfig sparcallyesconfig sparc defconfig i386defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a002-20200927 i386 randconfig-a006-20200927 i386 randconfig-a003-20200927 i386 randconfig-a004-20200927 i386 randconfig-a005-20200927 i386 randconfig-a001-20200927 x86_64 randconfig-a011-20200927 x86_64 randconfig-a013-20200927 x86_64 randconfig-a014-20200927 x86_64 randconfig-a015-20200927 x86_64 randconfig-a012-20200927 x86_64 randconfig-a016-20200927 i386 randconfig-a012-20200927 i386 randconfig-a014-20200927 i386 randconfig-a016-20200927 i386 randconfig-a013-20200927 i386 randconfig-a011-20200927 i386 randconfig-a015-20200927 riscvnommu_k210_defconfig riscvallyesconfig riscvnommu_virt_defconfig riscv allnoconfig riscv defconfig riscv rv32_defconfig riscvallmodconfig x86_64 rhel x86_64 allyesconfig x86_64rhel-7.6-kselftests x86_64 defconfig x86_64 rhel-8.3 x86_64 kexec clang tested configs: x86_64 randconfig-a005-20200927 x86_64 randconfig-a003-20200927 x86_64 randconfig-a004-20200927 x86_64 randconfig-a002-20200927 x86_64 randconfig-a006-20200927 x86_64 randconfig-a001-20200927 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org ___ devel mailing list de