Message ID | 20180220115527.1806578-6-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4553378ljc; Tue, 20 Feb 2018 03:58:10 -0800 (PST) X-Google-Smtp-Source: AH8x225eDzA+L/6apHp1/1ZoU4yZ43A5Lkih0izpZ7c75l43TlC+y+M4b0X/BvDl7/zpOCJCfS0D X-Received: by 10.101.90.130 with SMTP id c2mr15090553pgt.310.1519127890232; Tue, 20 Feb 2018 03:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519127890; cv=none; d=google.com; s=arc-20160816; b=suNwj3p2PpWOa6kFTzGGsa/T5VDv5ucXM4ey+OHBFATS/aJShBInlBe7x9BzNnuR6e qpCNjjulgMy0yktBFkQxZd1V9WPdJyvIYsylWQSO5YhOZCso758uqKVsxAzPkiqSX+ac JRxERFx9NNu8quiU18TJ8MesoiYkUNW4KNHtWB5PfdV8buNc+wAvJqMbwY0qjRzm+F2e Foga02fCtj1Dfw5Ou414ClTyUXvx8quyGSHsXRIRm6jSjc6vG4va/mi0FzaX1ERJ1ew5 X6BolzG32lecmt6j305+TBOuuiQ/Du7g/JNCbJJxnlB8vsHG63VGuPliXdWqDgd3za5P U3CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=3EXdaR8klswLR8IkrfgcsX4O2930oPg7dMD1Fm2rf48=; b=oZBN/IwqdVbUgRTCSmN6JsqBt+F9o3rbPXPFMtcm6xZuH3dgaeZjbiD0CU4cvnrZjq VM5FkxX+1gi8iMGdp4uTz4iPiv8lA4er17phyfjP8Y88vGGNbozcA9H9QheG/Kie/kEG QVy+T0N/9J8HJPr36uMYVZyUO53UpLyilvpPnIVkrW7foKsCM1wznfV1R9xB9F3zoKdr 0u8VcTxjzc09gjIrP0D17kE6rBOVoL6SaP3KtBb4Kj7LoDzV1SoVw87frPgQxpUZbTtX l2W+Zwv5zHn2clELuB4zR3YfgZ0BQf6YSkcYn66ffwNC3KZcC0slPWn9dV1OUdFnuh2q kA+g== ARC-Authentication-Results: i=1; mx.google.com; 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44-v6si5549563pld.724.2018.02.20.03.58.09; Tue, 20 Feb 2018 03:58:10 -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; 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 S1751756AbeBTL6E (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Tue, 20 Feb 2018 06:58:04 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:49671 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751678AbeBTL6C (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 20 Feb 2018 06:58:02 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LjbM8-1eCpvr3nzM-00bXEz; Tue, 20 Feb 2018 12:58:00 +0100 From: Arnd Bergmann <arnd@arndb.de> To: stable@vger.kernel.org Cc: Greg KH <gregkh@linuxfoundation.org>, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Alexander Viro <viro@zeniv.linux.org.uk>, linux-fsdevel@vger.kernel.org Subject: [4.4-stable 05/22] binfmt_elf: compat: avoid unused function warning Date: Tue, 20 Feb 2018 12:54:52 +0100 Message-Id: <20180220115527.1806578-6-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180220115527.1806578-1-arnd@arndb.de> References: <20180220115527.1806578-1-arnd@arndb.de> X-Provags-ID: V03:K0:AQmQf7SU2ti+TA1dVDcOP0BrHcYYG4evrZ/sdFZm0KTWOpgYV7Z a6tyucQmqG+l63+TLuoFpUINwxUavsNI+66m2ej7sysNljkYzwVS8bwiv2+tuSww0GBSL+N M4Jcd2ml6ks3wlh9t8s2INe0tzF0uGqyjekZUsf6mIBO6oGUhmjScBfZzjfoGRUMQvM3aRl jwe2+nlsxGHLBxO1DobEA== X-UI-Out-Filterresults: notjunk:1; V01:K0:BbghsELhevc=:2zB/VW8D21kisme6mBC0x3 raryyLwCn++w8c598KsLBvWDVfIKl6L9hgcDEoBjDmytDq/w19a1vccLhYQozQKvaZtTq8r+o Zd/k80DGooDW97KnSf90SweWuuHz97MB1P/bVHeKUolP5nGZkQq3leDhge0ba2LLynl1iLOHf B3aUH8jRTQCtReMXIFUAQnrnDJOwJ0FCORwfnOry65/MQE2ZzG05hkAkYGh9IIaUW6OSnhvxd mdl45APJDYVayudVvGdWvtowgUwGvvZmfS5L2UhrsdOi9Sn/XSVQ/n/oCY2uGASnuqCRdJPQf 2EdFJCJWV0I/+u0y+YuRlHbYwTBXKYKiFyxgppShru0qdwE+hB8tvY2UGlMeA9udR+pPCl6oN sTWCxdkWRRPYkRlP8nKFXNNfa+c9Do+eRenKBZIYkMlxGrKvVEUxYvZamA/P/67k7lYRqwFy/ T/2XwouGK6r3t1xAnWKmFtWGk5M6eOnX/FfdBeGBlg1qrV5vIvmb/vWibdVtjk6dk1rQpCZfc JSLZmwk5MnMF+zMEUEGc1ELgQSVORv30xAI6MXqYXTnhYKRyFtCM25MRbcG9YoDiW3jnjXJuC uHExB35utVIHCLiubCw+OQwJCp3RIKqzuwNO5npK+vHLlOMYMsXsWNKpQg2qRYFdyFRcmTiGD TkCPyQiEj4u3yvCAxVROZQQRp/ObplpR3CkwCTAVqeY31kfS3DMPcl0vXd+haGpTJ6MrkwGw1 YoJ3VCQoY7DBP3AvSCA7itrdMWA++gNRbToDTQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[4.4-stable,01/22] gpio: xgene: mark PM functions as __maybe_unused
|
expand
|
diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c index 4d24d17bcfc1..943be5ecfcd9 100644 --- a/fs/compat_binfmt_elf.c +++ b/fs/compat_binfmt_elf.c @@ -51,6 +51,7 @@ #define elf_prstatus compat_elf_prstatus #define elf_prpsinfo compat_elf_prpsinfo +#ifdef CONFIG_ELF_CORE /* * Compat version of cputime_to_compat_timeval, perhaps this * should be an inline in <linux/compat.h>. @@ -63,6 +64,7 @@ static void cputime_to_compat_timeval(const cputime_t cputime, value->tv_sec = tv.tv_sec; value->tv_usec = tv.tv_usec; } +#endif #undef cputime_to_timeval #define cputime_to_timeval cputime_to_compat_timeval
When CONFIG_ELF_CORE is disabled, we get a harmless warning in the compat version of binfmt_elf: fs/compat_binfmt_elf.c:58:13: error: 'cputime_to_compat_timeval' defined but not used [-Werror=unused-function] This was addressed in mainline Linux as part of a larger rework with commit cd19c364b313 ("fs/binfmt: Convert obsolete cputime type to nsecs"). For 4.9 and earlier, this just shuts up the warning by adding an #ifdef around the function definition. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- fs/compat_binfmt_elf.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0