From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752212AbbIOID0 (ORCPT ); Tue, 15 Sep 2015 04:03:26 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:36103 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbbIOIDV (ORCPT ); Tue, 15 Sep 2015 04:03:21 -0400 Date: Tue, 15 Sep 2015 13:33:15 +0530 From: Sudip Mukherjee To: Joern Engel , Prasad Joshi Cc: linux-kernel@vger.kernel.org, logfs@logfs.org, akpm@linux-foundation.org Subject: Re: [PATCH] logfs: fix build warning Message-ID: <20150915080315.GF9305@sudip-pc> References: <1441879864-17487-1-git-send-email-sudipm.mukherjee@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1441879864-17487-1-git-send-email-sudipm.mukherjee@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2015 at 03:41:04PM +0530, Sudip Mukherjee wrote: > While building we were getting build warning of: > > fs/logfs/dev_bdev.c: In function '__bdev_writeseg': > include/linux/kernel.h:601:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] > (void) (&_min1 == &_min2); \ > fs/logfs/dev_bdev.c:84:14: note: in expansion of macro 'min' > max_pages = min(nr_pages, BIO_MAX_PAGES); > > fs/logfs/dev_bdev.c: In function 'do_erase': > include/linux/kernel.h:601:17: warning: comparison of distinct pointer types lacks a cast [enabled by default] > (void) (&_min1 == &_min2); \ > fs/logfs/dev_bdev.c:174:14: note: in expansion of macro 'min' > max_pages = min(nr_pages, BIO_MAX_PAGES); > > Lets use min_t and mention the type. > > Signed-off-by: Sudip Mukherjee > --- Hi, I know its too early to ping. But I can still see the build warnings with i386 allmodconfig. Build is at: https://travis-ci.org/sudipm-mukherjee/parport/jobs/80365417 regards sudip