From patchwork Mon Aug 21 22:28:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hauke Mehrtens X-Patchwork-Id: 9913891 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 580D0603FA for ; Mon, 21 Aug 2017 22:28:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 38825286AA for ; Mon, 21 Aug 2017 22:28:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2C551286C1; Mon, 21 Aug 2017 22:28:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8843286AA for ; Mon, 21 Aug 2017 22:28:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754307AbdHUW2p (ORCPT ); Mon, 21 Aug 2017 18:28:45 -0400 Received: from mx1.mailbox.org ([80.241.60.212]:48930 "EHLO mx1.mailbox.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754198AbdHUW2o (ORCPT ); Mon, 21 Aug 2017 18:28:44 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 403E042528; Tue, 22 Aug 2017 00:28:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id p5LjbwYhi9CJ; Tue, 22 Aug 2017 00:28:41 +0200 (CEST) From: Hauke Mehrtens To: johannes@sipsolutions.net Cc: backports@vger.kernel.org, Hauke Mehrtens Subject: [PATCH 07/21] header: add module_param_hw_array() Date: Tue, 22 Aug 2017 00:28:03 +0200 Message-Id: <20170821222817.17376-8-hauke@hauke-m.de> In-Reply-To: <20170821222817.17376-1-hauke@hauke-m.de> References: <20170821222817.17376-1-hauke@hauke-m.de> Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This macro is used for some module parameters. This hwtype was newly introduced for module parameters in kernel 4.12, just ignore it on older kernel versions. Signed-off-by: Hauke Mehrtens --- backport/backport-include/linux/moduleparam.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/backport/backport-include/linux/moduleparam.h b/backport/backport-include/linux/moduleparam.h index 1c7dfad4..9a8e03b5 100644 --- a/backport/backport-include/linux/moduleparam.h +++ b/backport/backport-include/linux/moduleparam.h @@ -36,4 +36,9 @@ extern int param_get_ullong(char *buffer, const struct kernel_param *kp); #define param_check_ullong(name, p) __param_check(name, p, unsigned long long) #endif +#if LINUX_VERSION_IS_LESS(4,12,0) +#define module_param_hw_array(name, type, hwtype, nump, perm) \ + module_param_array(name, type, nump, perm) +#endif + #endif /* __BACKPORT_LINUX_MODULEPARAM_H */