From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752972AbbJGJow (ORCPT ); Wed, 7 Oct 2015 05:44:52 -0400 Received: from mga01.intel.com ([192.55.52.88]:44821 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbbJGJov (ORCPT ); Wed, 7 Oct 2015 05:44:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,648,1437462000"; d="scan'208";a="805445847" From: Alexander Shishkin To: Arnd Bergmann , gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] intel_th: fix compile warning In-Reply-To: <4973464.lbBncgkGPs@wuerfel> References: <4973464.lbBncgkGPs@wuerfel> User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Wed, 07 Oct 2015 12:44:22 +0300 Message-ID: <87h9m3hv2h.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > The newly added MSU portion of the intel_th driver causes a harmless > compile warning on 32-bit kernels: > > drivers/hwtracing/intel_th/msu.c: In function 'msc_single_to_user': > include/linux/kernel.h:724:17: warning: comparison of distinct pointer types lacks a cast > > This changes the code to use min_t() to force the correct type and > avoid that warning, which seems easier than changing the code to > use consistent types everywhere. This from yesterday: http://marc.info/?l=linux-kernel&m=144412498425492 Regards, -- Alex