Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup headers #216

Merged
merged 3 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nandtool/flashmng.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static struct cleanmarker {
};


int flashmng_readraw(oid_t oid, offs_t addr, void *data, size_t size)
int flashmng_readraw(oid_t oid, off_t addr, void *data, size_t size)
{
msg_t msg = { 0 };
flash_i_devctl_t *idevctl = (flash_i_devctl_t *)msg.i.raw;
Expand Down
2 changes: 1 addition & 1 deletion nandtool/flashmng.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <imx6ull-flashsrv.h>


int flashmng_readraw(oid_t oid, offs_t addr, void *data, size_t size);
int flashmng_readraw(oid_t oid, off_t addr, void *data, size_t size);


int flashmng_writeraw(oid_t oid, unsigned int page, const void *data, size_t size);
Expand Down
4 changes: 2 additions & 2 deletions nandtool/nandtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ static int nandtool_dump(const char *outpath, unsigned int start, unsigned int n
{
const flashsrv_info_t *info;
ssize_t len;
offs_t blocksz, partsz, pagesz;
offs_t addr, endaddr, bytes;
off_t blocksz, partsz, pagesz;
off_t addr, endaddr, bytes;
uint8_t *buf;
int ret = 0;
int outfd;
Expand Down
2 changes: 1 addition & 1 deletion psd/imx6ull/bcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ int dbbt_flash(oid_t oid, int fd, dbbt_t *dbbt, const flashsrv_info_t *info)
int err;

/* DBBT is just after BCB_CNT FCB blocks on the same partition */
offs_t partoff = BCB_CNT * info->erasesz;
off_t partoff = BCB_CNT * info->erasesz;

dbbt_fingerprint(dbbt);
dbbt->size = 1;
Expand Down
6 changes: 3 additions & 3 deletions psd/imx6ull/psd.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ struct {
char rcvBuff[HID_REPORT_2_SIZE];
char buff[_PAGE_SIZE * 2]; /* assuming always big enough to fit psd_common.flash.writesz */

offs_t partsz;
offs_t partOffs;
off_t partsz;
off_t partOffs;

unsigned int nfiles;
struct filedes *f;
Expand Down Expand Up @@ -353,7 +353,7 @@ static int psd_writeRegister(sdp_cmd_t *cmd)
static int psd_writeFile(sdp_cmd_t *cmd)
{
int res, err = hidOK, buffOffset = 0, badBlock = 0;
offs_t writesz, fileOffs = cmd->address;
off_t writesz, fileOffs = cmd->address;
char *outdata = NULL;

/* Check command parameters */
Expand Down
4 changes: 2 additions & 2 deletions psd/imxrt/psd.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <sys/reboot.h>

#include <imxrt-flashsrv.h>
#include <phoenix/arch/imxrt.h>
#include <phoenix/arch/armv7m/imxrt/10xx/imxrt10xx.h>

Check failure on line 29 in psd/imxrt/psd.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7m7-imxrt106x-evk)

phoenix/arch/armv7m/imxrt/10xx/imxrt10xx.h: No such file or directory

Check failure on line 29 in psd/imxrt/psd.c

View workflow job for this annotation

GitHub Actions / call-ci / build (armv7m7-imxrt117x-evk)

phoenix/arch/armv7m/imxrt/10xx/imxrt10xx.h: No such file or directory

#include "../common/sdp.h"

Expand Down Expand Up @@ -264,7 +264,7 @@
int psd_writeFile(sdp_cmd_t *cmd)
{
int res, err = hidOK, offset = 0;
offs_t writesz;
off_t writesz;
char *outdata = NULL;

flash_properties_t *flash = (flash_properties_t *)&psd_common.flashMems[psd_common.flashID];
Expand Down
2 changes: 1 addition & 1 deletion psh/ls/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static void psh_ls_printlong(size_t nfiles)
printf("%s %*d ", perms, linksz, files[i].stat.st_nlink);
printf("%-*s ", usersz, (files[i].pw != NULL) ? files[i].pw->pw_name : "---");
printf("%-*s ", grpsz, (files[i].gr != NULL) ? files[i].gr->gr_name : "---");
printf("%*lld %s ", sizesz, files[i].stat.st_size, buff);
printf("%*lld %s ", sizesz, (long long)files[i].stat.st_size, buff);

psh_ls_printfile(&files[i], files[i].namelen);
putchar('\n');
Expand Down
2 changes: 1 addition & 1 deletion psh/mem/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void psh_mem_procprint(entryinfo_t *e, int mapsz)
printf("%p:%p %-4s %-5s", e->vaddr, e->vaddr + e->size - 1, prot, flags);

if (e->offs != -1)
printf(" %*llx", (int)(2 * sizeof(e->offs)), e->offs);
printf(" %*llx", (int)(2 * sizeof(e->offs)), (long long)e->offs);
else
printf(" %*s", (int)(2 * sizeof(e->offs)), "");

Expand Down
Loading