This patch fixes a few build warnings. I have built the code using
i386, x86_64, and ia64 architectures and each has ends up with
complaints of one sort or anther. This gets rid of all of them
*except* those reported by files under the "ltp" (Linux Test
Project) sub-tree.
Signed-off-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
lio_random_methods(long curr_mask)
{
int mask=0;
lio_random_methods(long curr_mask)
{
int mask=0;
/* remove random select, io type, and wait method bits from curr_mask */
mask = curr_mask & (~(LIO_IO_TYPES | LIO_WAIT_TYPES | LIO_RANDOM));
/* remove random select, io type, and wait method bits from curr_mask */
mask = curr_mask & (~(LIO_IO_TYPES | LIO_WAIT_TYPES | LIO_RANDOM));
unsigned char *badbuf;
if (debug)
unsigned char *badbuf;
if (debug)
- fprintf(stderr, "seek to %ld and read %d\n", offset, writesize);
+ fprintf(stderr, "seek to %lld and read %d\n",
+ (long long) offset, writesize);
lseek(fd, offset, SEEK_SET);
if (read(fd, bufptr, writesize) < writesize) {
fprintf(stderr, "short read() at offset %lld\n",
lseek(fd, offset, SEEK_SET);
if (read(fd, bufptr, writesize) < writesize) {
fprintf(stderr, "short read() at offset %lld\n",
perror("mmap");
exit(1);
}
perror("mmap");
exit(1);
}
- printf("pwrite %Ld bytes from %Ld to %Ld\n", amount, from, to);
+ printf("pwrite %Ld bytes from %Ld to %Ld\n",
+ (long long) amount, (long long) from, (long long) to);
ret = pwrite(fd, (char *)mapped_mem + from, amount, to);
if (ret != amount) {
ret = pwrite(fd, (char *)mapped_mem + from, amount, to);
if (ret != amount) {
}
if (bmapx[x].bmv_oflags & 1) {
fprintf(stderr, "FOUND ONE %lld %lld %x\n",
}
if (bmapx[x].bmv_oflags & 1) {
fprintf(stderr, "FOUND ONE %lld %lld %x\n",
- bmapx[x].bmv_offset, bmapx[x].bmv_length,bmapx[x].bmv_oflags);
+ (long long) bmapx[x].bmv_offset,
+ (long long) bmapx[x].bmv_length,
+ bmapx[x].bmv_oflags);
foundone = 1;
foundany = 1;
}
foundone = 1;
foundany = 1;
}
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <xfs/xfs.h>
#include <xfs/jdm.h>
#include <xfs/xfs.h>
#include <xfs/jdm.h>