public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Alex Elder <aelder@sgi.com>
Cc: xfs@oss.sgi.com
Subject: Re: [PATCH] xfstests: fix a few build warnings
Date: Wed, 09 Mar 2011 11:34:04 -0600	[thread overview]
Message-ID: <4D77BA0C.6080604@sandeen.net> (raw)
In-Reply-To: <201103041937.p24JbVtP004804@stout.americas.sgi.com>

On 3/4/11 1:37 PM, Alex Elder wrote:
> 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.

Reviewed-by: Eric Sandeen <sandeen@sandeen.net>

> Signed-off-by: Alex Elder <aelder@sgi.com>
> 
> ---
>  lib/tlibio.c                         |    2 +-
>  src/aio-dio-regress/aiodio_sparse2.c |    3 ++-
>  src/pwrite_mmap_blocked.c            |    3 ++-
>  src/unwritten_sync.c                 |    4 +++-
>  src/xfsctl.c                         |    2 ++
>  5 files changed, 10 insertions(+), 4 deletions(-)
> 
> Index: b/lib/tlibio.c
> ===================================================================
> --- a/lib/tlibio.c
> +++ b/lib/tlibio.c
> @@ -453,7 +453,7 @@ int
>  lio_random_methods(long curr_mask)
>  {
>      int mask=0;
> -    long random_bit();
> +    long random_bit(long);
>  
>      /* remove random select, io type, and wait method bits from curr_mask */
>      mask = curr_mask & (~(LIO_IO_TYPES | LIO_WAIT_TYPES | LIO_RANDOM));
> Index: b/src/aio-dio-regress/aiodio_sparse2.c
> ===================================================================
> --- a/src/aio-dio-regress/aiodio_sparse2.c
> +++ b/src/aio-dio-regress/aiodio_sparse2.c
> @@ -227,7 +227,8 @@ void aiodio_sparse(char *filename, int a
>  		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",
> Index: b/src/pwrite_mmap_blocked.c
> ===================================================================
> --- a/src/pwrite_mmap_blocked.c
> +++ b/src/pwrite_mmap_blocked.c
> @@ -59,7 +59,8 @@ int main(int argc, char *argv[])
>  		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) {
> Index: b/src/unwritten_sync.c
> ===================================================================
> --- a/src/unwritten_sync.c
> +++ b/src/unwritten_sync.c
> @@ -136,7 +136,9 @@ again:
>  		}
>  		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;
>  		}
> Index: b/src/xfsctl.c
> ===================================================================
> --- a/src/xfsctl.c
> +++ b/src/xfsctl.c
> @@ -16,6 +16,8 @@
>   * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
>   */
>  
> +#include <sys/stat.h>
> +
>  #include <xfs/xfs.h>
>  #include <xfs/jdm.h>
>  
> 
> _______________________________________________
> xfs mailing list
> xfs@oss.sgi.com
> http://oss.sgi.com/mailman/listinfo/xfs
> 

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2011-03-09 17:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04 19:37 [PATCH] xfstests: fix a few build warnings Alex Elder
2011-03-09 17:34 ` Eric Sandeen [this message]
2011-03-10 17:24 ` Christoph Hellwig
2011-03-10 22:16   ` Alex Elder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D77BA0C.6080604@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=aelder@sgi.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox