You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/05/31 10:49:50 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6347: fs/cromfs: Fixed a hardFault caused by unaligned memory access

pkarashchenko commented on code in PR #6347:
URL: https://github.com/apache/incubator-nuttx/pull/6347#discussion_r885490111


##########
fs/cromfs/cromfs.h:
##########
@@ -116,6 +117,6 @@ struct cromfs_node_s
     uint32_t cn_link;    /* Offset to an arbitrary node (for hard link) */
     uint32_t cn_blocks;  /* Offset to first block of compressed data (for read) */
   } u;
-};
+} end_packed_struct; /* Added to resolve hardFault caused by unaligned memory access of cromfs nodes.

Review Comment:
   ```suggestion
   } end_packed_struct; /* Added to resolve hardFault caused by unaligned memory access of cromfs nodes. */
   ```
   to solve
   ```
   In file included from ./cromfs/fs_cromfs.c:46:
   ./cromfs/cromfs.h:21: error: unterminated #ifndef
      21 | #ifndef __FS_CROMFS_CROMFS_H
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org