Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp57138imu; Thu, 8 Nov 2018 14:44:06 -0800 (PST) X-Google-Smtp-Source: AJdET5eqRQ8K15wJfIWWFyHu/lloVD9LIWQaPDTrtzTO2uWeHOK1qc86LP2ZDf1c+pQHD1POYZA3 X-Received: by 2002:a62:8c93:: with SMTP id m141-v6mr6342800pfd.239.1541717046570; Thu, 08 Nov 2018 14:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541717046; cv=none; d=google.com; s=arc-20160816; b=mgSDPDMpfCoCciACUE9Tpey3NP1SaKfNVlQJMYr0qB50JUyVpZCujQK/6izOYas049 1SYIcaiaIXZGYNJ87yj0JS8JLCge7yBFkfGp5MsriHku/S0/f7z2gZ3YRWXaCYoAZ63a PdgkJb2n7a2E0iHCQWebVebXYAZGhW8VHnTyZk3jtIrDyRVL6p5moSID+C+jfbGmEQFn 9CDpmvXOrnkraOZlFHaQPDWRjKKP/DqAII3O2e0jX+lC9LMG2un1RVf52oeNtiKhdIAu Bl4gQ0sXrchEFCMOoCuaHyA+RNvbd3B/hORg6Spn8yMVRL9/8CSQ9OJYjOEpVmkCnvi0 g1zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=aZt/wWmBpo/oIkiRP7VdzlSsu0/WlOaigwdYjvhnuqk=; b=v7oG7bMK4JIyEK2c8gtS58Anch/aoVNG6yf+CEVTdWikMRaEk3gl0frR/rAE4Ak3BZ kejMeEnsy8YYeLTldGEWm3vGodByRZ2NL//ShrOVbU+GGN++CxvbVK0qhgYcjWBelX9L SH7yftedhhkjpNvBug60vCl6Utsu9KZQD266+uMq1fPQzCdpqkmLBpHGwQY0B4wj3V5E 2tptLNUkN+8SmVkB8vJI52nVdZKgCuvQgFhcymsg5DdHAhU09Kpw5VaRwy+Wti6G0N9E zyOtdnb6c/2ZX4ukQOBCSGqwXLYCJqY2Yf8s14QI/Eptv7+S8MHOA+IhhVgBzNz+5vCN z39w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1I3xoBDd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 101-v6si5983137pld.398.2018.11.08.14.43.51; Thu, 08 Nov 2018 14:44:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1I3xoBDd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728968AbeKIIVA (ORCPT + 99 others); Fri, 9 Nov 2018 03:21:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:48590 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728696AbeKIHdI (ORCPT ); Fri, 9 Nov 2018 02:33:08 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB459208E3; Thu, 8 Nov 2018 21:55:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714140; bh=O57ge86ezyBx/02E8iYjxo9eJyJFEkH7N3mXFCgUI3o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1I3xoBDdwYzmBpU/6bqAOdbEoyWQaccIYq7ChcssNwxIzEczrGq2NmbZFdl3wjt7R 8unwZk62/mWdRDxONASqJZp3z9mvNMEi6/1JKC7T6UrxjoLYVFjaN+iuLcbSywid73 KU5UjViBjQH5uGu0XbchtxMF/B8c1CYJrkhPTG1Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexey Brodkin , Jiri Olsa , Borislav Petkov , Cody P Schafer , Ingo Molnar , Namhyung Kim , Peter Zijlstra , Vineet Gupta , Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH 3.18 075/144] perf tools: Fix statfs.f_type data type mismatch build error with uclibc Date: Thu, 8 Nov 2018 13:50:46 -0800 Message-Id: <20181108215100.747620317@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit db1806edcfef007d9594435a331dcf7e7f1b8fac ] ARC Linux uses the no legacy syscalls abi and corresponding uClibc headers statfs defines f_type to be U32 which causes perf build breakage http://git.uclibc.org/uClibc/tree/libc/sysdeps/linux/common-generic/bits/statfs.h ----------->8--------------- CC fs/fs.o fs/fs.c: In function 'fs__valid_mount': fs/fs.c:82:24: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] else if (st_fs.f_type != magic) ^ cc1: all warnings being treated as errors ----------->8--------------- Signed-off-by: Alexey Brodkin Acked-by: Jiri Olsa Cc: Borislav Petkov Cc: Cody P Schafer Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Vineet Gupta Link: http://lkml.kernel.org/r/1420888254-17504-2-git-send-email-vgupta@synopsys.com Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin --- tools/lib/api/fs/debugfs.c | 2 +- tools/lib/api/fs/fs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/lib/api/fs/debugfs.c b/tools/lib/api/fs/debugfs.c index a74fba6d7743..86ea2d7b8845 100644 --- a/tools/lib/api/fs/debugfs.c +++ b/tools/lib/api/fs/debugfs.c @@ -67,7 +67,7 @@ int debugfs_valid_mountpoint(const char *debugfs) if (statfs(debugfs, &st_fs) < 0) return -ENOENT; - else if (st_fs.f_type != (long) DEBUGFS_MAGIC) + else if ((long)st_fs.f_type != (long)DEBUGFS_MAGIC) return -ENOENT; return 0; diff --git a/tools/lib/api/fs/fs.c b/tools/lib/api/fs/fs.c index c1b49c36a951..4b2fa7bcbb84 100644 --- a/tools/lib/api/fs/fs.c +++ b/tools/lib/api/fs/fs.c @@ -75,7 +75,7 @@ static int fs__valid_mount(const char *fs, long magic) if (statfs(fs, &st_fs) < 0) return -ENOENT; - else if (st_fs.f_type != magic) + else if ((long)st_fs.f_type != magic) return -ENOENT; return 0; -- 2.17.1