Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5645949imu; Mon, 26 Nov 2018 03:28:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/Um2imbmePdvDjtRQXA+971N7t28QKuas8pm3MR5SjQSaumICAM0ldqwhcv+q0W5pMFib60 X-Received: by 2002:a62:a209:: with SMTP id m9mr1378613pff.218.1543231710452; Mon, 26 Nov 2018 03:28:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543231710; cv=none; d=google.com; s=arc-20160816; b=hkPP5jeoHpOZmPRkySUlJp0YO3hHr818lpCUaXUIEefbA1Rk3ukCqe2HbyhNOiT9W6 witnNdlnQLTbKMwocXcrW2+VL+HHoItqB/cO1uvPASWwkZEaF57cxV0VcAPLFor7oB1G g4SaERcvX4FjI3xw2stXENAiv1TjYPZJXPZbetnE0FA92xf0gCBSSCb1z2RkXQoSa3B8 D6ZY+GbywFGe+oSk6Y7QRShMK3WUYaD1W/wyae5RZB0p3H3ZPfojGcMxhHYgIiQy9o2N 2c0gwCl75AaEBczqUdBlrtNYI+8WyZiW6SOB7MpAOlKEHWr8dwCzIgavQqJfGIfxilpV QA2w== 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=9eG9wSj7IZ1wQU0oofw1qzahgtZ/DUCLR69VBSNjpuw=; b=pq1FxpDUJVriVRA8/gtmGOO/FfOvw4LSIaqLtWloV/zbxXk1dGU0CkLlJPMd7Azj5m gFa5ot4dewZeC7ZCqIysfE/tcrNOTrbak20I+kHxdNWRdxR/JnM96vimMewtq3dZJ0Fl w8cHpCw3vnq/2NzMcuGy0MPMG4XbmmytScuS80EbZebS/94yxxqg+fcTD+Bq3wgItAng /uVklNhhMmhkaWSTEvfkEJlRI2SXPJG7G8JJcuEadwSU03B8qgcf4PJBr4djpb92+2YO 10YC/qgPckb9jIrACCG3NTxTmAKdJqGk9RXj1+jrS4b0rhSLeMRSHPji/42ObWxKyFi/ 6eeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KnV5PwPk; 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 cb2si9927plb.298.2018.11.26.03.27.51; Mon, 26 Nov 2018 03:28:30 -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=KnV5PwPk; 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 S1727182AbeKZVrm (ORCPT + 99 others); Mon, 26 Nov 2018 16:47:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:55934 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727045AbeKZVrl (ORCPT ); Mon, 26 Nov 2018 16:47:41 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 2AE0721104; Mon, 26 Nov 2018 10:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543229637; bh=sbWbTVAm9+/0EBWGDvC8VmnSHWqwgd1sk6lu6SuKGwA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KnV5PwPkC3Aessjk992HDwGCz6+bGKd41hP2EvU9NJlUVVYlc0fofRWotfNb68OIg Bm2c7ztj5WBMyVxs3764zN9aVHjsQEPmipkmEMya4GhrXr2WfgQ7fxEKvzdN/SHWa1 Bwkz+oWBZazrkJjvi8tcAfoIi6jAVQCEvAo71cY4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Miroslav Benes , Rusty Russell , Jessica Yu , Nathan Chancellor Subject: [PATCH 4.4 15/70] modules: mark __inittest/__exittest as __maybe_unused Date: Mon, 26 Nov 2018 11:50:30 +0100 Message-Id: <20181126105048.350575931@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181126105046.722096341@linuxfoundation.org> References: <20181126105046.722096341@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 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 1f318a8bafcfba9f0d623f4870c4e890fd22e659 upstream. clang warns about unused inline functions by default: arch/arm/crypto/aes-cipher-glue.c:68:1: warning: unused function '__inittest' [-Wunused-function] arch/arm/crypto/aes-cipher-glue.c:69:1: warning: unused function '__exittest' [-Wunused-function] As these appear in every single module, let's just disable the warnings by marking the two functions as __maybe_unused. Signed-off-by: Arnd Bergmann Reviewed-by: Miroslav Benes Acked-by: Rusty Russell Signed-off-by: Jessica Yu Signed-off-by: Nathan Chancellor Signed-off-by: Greg Kroah-Hartman --- include/linux/module.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/include/linux/module.h +++ b/include/linux/module.h @@ -125,13 +125,13 @@ extern void cleanup_module(void); /* Each module must use one module_init(). */ #define module_init(initfn) \ - static inline initcall_t __inittest(void) \ + static inline initcall_t __maybe_unused __inittest(void) \ { return initfn; } \ int init_module(void) __attribute__((alias(#initfn))); /* This is only required if you want to be unloadable. */ #define module_exit(exitfn) \ - static inline exitcall_t __exittest(void) \ + static inline exitcall_t __maybe_unused __exittest(void) \ { return exitfn; } \ void cleanup_module(void) __attribute__((alias(#exitfn)));