lkml.org 
[lkml]   [2012]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] qnx6fs: silence a Sparse warning
Add a  __force to silence a sparse warning:
fs/qnx6/inode.c:88:22: warning: cast to restricted __fs32

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/fs/qnx6/inode.c b/fs/qnx6/inode.c
index e44012d..acf9241 100644
--- a/fs/qnx6/inode.c
+++ b/fs/qnx6/inode.c
@@ -85,7 +85,7 @@ static int qnx6_get_block(struct inode *inode, sector_t iblock,

static int qnx6_check_blockptr(__fs32 ptr)
{
- if (ptr == ~(__fs32)0) {
+ if (ptr == ~(__force __fs32)0) {
printk(KERN_ERR "qnx6: hit unused blockpointer.\n");
return 0;
}

\
 
 \ /
  Last update: 2012-03-08 08:29    [W:0.277 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site