All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chen Gang <gang.chen@asianux.com>
To: linux-sh@vger.kernel.org
Subject: [PATCH] sh64: mm: use 'unsigned long' instead of 'unsigned long long'
Date: Tue, 30 Jul 2013 02:40:50 +0000	[thread overview]
Message-ID: <51F727B2.2010708@asianux.com> (raw)

The address's type is 'unsigned long', so use 'unsigned long' instead
of 'unsigned long long' (warning is treated as error).

The related error (with 'allmodconfig', without "EXTRA_CFLAGS=-W"):

    CC      arch/sh/mm/cache-sh5.o
  arch/sh/mm/cache-sh5.c: In function ‘sh64_dcache_purge_sets’:
  arch/sh/mm/cache-sh5.c:255:12: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
  cc1: all warnings being treated as errors


Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/sh/mm/cache-sh5.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c
index d1bffbc..1da2900 100644
--- a/arch/sh/mm/cache-sh5.c
+++ b/arch/sh/mm/cache-sh5.c
@@ -252,7 +252,7 @@ static void inline sh64_dcache_purge_sets(int sets_to_purge_base, int n_sets)
 
 	for (j = 0; j < n_sets; j++, set_offset++) {
 		set_offset &= (cpu_data->dcache.sets - 1);
-		eaddr0 = (unsigned long long)dummy_alloco_area +
+		eaddr0 = (unsigned long)dummy_alloco_area +
 			(set_offset << cpu_data->dcache.entry_shift);
 
 		/*
-- 
1.7.7.6

                 reply	other threads:[~2013-07-30  2:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=51F727B2.2010708@asianux.com \
    --to=gang.chen@asianux.com \
    --cc=linux-sh@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.