You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/01/25 16:26:56 UTC
[incubator-nuttx] 03/12: include: nuttx: binfmt: fix nxstyle errors
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 186c2bbe4438e32537341f753e675085371f7907
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Mon Jan 25 12:57:31 2021 +0100
include: nuttx: binfmt: fix nxstyle errors
Fix nxstyle errors for headers
Signed-off-by: Alin Jerpelea <al...@sony.com>
---
include/nuttx/binfmt/elf.h | 9 +++++----
include/nuttx/binfmt/ieee695.h | 4 +++-
include/nuttx/binfmt/nxflat.h | 11 ++++++-----
include/nuttx/binfmt/symtab.h | 8 +++++---
4 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/include/nuttx/binfmt/elf.h b/include/nuttx/binfmt/elf.h
index 5926008..061665a 100644
--- a/include/nuttx/binfmt/elf.h
+++ b/include/nuttx/binfmt/elf.h
@@ -97,13 +97,14 @@ struct elf_loadinfo_s
/* elfalloc is the base address of the memory that is allocated to hold the
* ELF program image.
*
- * If CONFIG_ARCH_ADDRENV=n, elfalloc will be allocated using kmm_malloc() (or
- * kmm_zalloc()). If CONFIG_ARCH_ADDRENV-y, then elfalloc will be allocated using
+ * If CONFIG_ARCH_ADDRENV=n, elfalloc will be allocated using kmm_malloc()
+ * (or kmm_zalloc()).
+ * If CONFIG_ARCH_ADDRENV-y, then elfalloc will be allocated using
* up_addrenv_create(). In either case, there will be a unique instance
* of elfalloc (and stack) for each instance of a process.
*
- * The alloc[] array in struct binary_s will hold memory that persists after
- * the ELF module has been loaded.
+ * The alloc[] array in struct binary_s will hold memory that persists
+ * after the ELF module has been loaded.
*/
uintptr_t textalloc; /* .text memory allocated when ELF file was loaded */
diff --git a/include/nuttx/binfmt/ieee695.h b/include/nuttx/binfmt/ieee695.h
index c30913f..44e5465 100644
--- a/include/nuttx/binfmt/ieee695.h
+++ b/include/nuttx/binfmt/ieee695.h
@@ -168,6 +168,7 @@
#define IEEE695_COMENT_PASS2 0x01 /* Records generated from Pass 2 of the linker */
/* Standard Functions, Identifiers and Commands *************************************/
+
/* Standard functions */
#define IEEE695_FUNC_F 0xa0
@@ -347,6 +348,7 @@
#define IEEE695_SYMCLASS_DEFINE 4 /* C #define constant */
/* Helper Macros ********************************************************************/
+
/* These macros extract un-aligned, little-endian values from the object file */
#define IEEE695_GETUINT16(p) \
@@ -441,7 +443,7 @@ extern "C"
#endif
/************************************************************************************
- * Public Functions
+ * Public Functions Definitions
************************************************************************************/
#undef EXTERN
diff --git a/include/nuttx/binfmt/nxflat.h b/include/nuttx/binfmt/nxflat.h
index 7b31fa0..c6bd5ab 100644
--- a/include/nuttx/binfmt/nxflat.h
+++ b/include/nuttx/binfmt/nxflat.h
@@ -77,8 +77,9 @@ struct nxflat_loadinfo_s
/* Data Space (DSpace): This region contains all information that is
* referenced as data (other than the stack which is separately allocated).
*
- * If CONFIG_ARCH_ADDRENV=n, DSpace will be allocated using kmm_malloc() (or
- * kmm_zalloc()). If CONFIG_ARCH_ADDRENV-y, then DSpace will be allocated using
+ * If CONFIG_ARCH_ADDRENV=n, DSpace will be allocated using kmm_malloc()
+ * (or kmm_zalloc()).
+ * If CONFIG_ARCH_ADDRENV-y, then DSpace will be allocated using
* up_addrenv_create(). In either case, there will be a unique instance
* of DSpace (and stack) for each instance of a process.
*/
@@ -117,7 +118,7 @@ struct nxflat_loadinfo_s
};
/****************************************************************************
- * Public Functions
+ * Public Functions Definitions
****************************************************************************/
#undef EXTERN
@@ -243,8 +244,8 @@ int nxflat_read(struct nxflat_loadinfo_s *loadinfo, char *buffer,
* Description:
* Bind the imported symbol names in the loaded module described by
* 'loadinfo' using the exported symbol values provided by 'symtab'
- * After binding the module, clear the BSS region (which held the relocation
- * data) in preparation for execution.
+ * After binding the module, clear the BSS region (which held the
+ * relocation data) in preparation for execution.
*
* Returned Value:
* 0 (OK) is returned on success and a negated errno is returned on
diff --git a/include/nuttx/binfmt/symtab.h b/include/nuttx/binfmt/symtab.h
index affb7cd..223bab7 100644
--- a/include/nuttx/binfmt/symtab.h
+++ b/include/nuttx/binfmt/symtab.h
@@ -44,7 +44,7 @@
#include <nuttx/symtab.h>
/****************************************************************************
- * Public Functions
+ * Public Functions Definitions
****************************************************************************/
#undef EXTERN
@@ -60,11 +60,13 @@ extern "C"
* Name: exec_getsymtab
*
* Description:
- * Get the current application symbol table selection as an atomic operation.
+ * Get the current application symbol table selection as an atomic
+ * operation.
*
* Input Parameters:
* symtab - The location to store the symbol table.
- * nsymbols - The location to store the number of symbols in the symbol table.
+ * nsymbols - The location to store the number of symbols in the symbol
+ * table.
*
* Returned Value:
* None