From patchwork Wed Feb 22 22:18:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arend van Spriel X-Patchwork-Id: 9587505 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 D67FE600CA for ; Wed, 22 Feb 2017 22:21:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C657128582 for ; Wed, 22 Feb 2017 22:21:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB137286A1; Wed, 22 Feb 2017 22:21:14 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 3194528582 for ; Wed, 22 Feb 2017 22:21:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933492AbdBVWTY (ORCPT ); Wed, 22 Feb 2017 17:19:24 -0500 Received: from lpdvrndsmtp01.broadcom.com ([192.19.229.170]:58844 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933452AbdBVWTA (ORCPT ); Wed, 22 Feb 2017 17:19:00 -0500 Received: from mail-irv-17.broadcom.com (mail-irv-17.lvn.broadcom.net [10.75.224.233]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 4985030C63C; Wed, 22 Feb 2017 14:18:58 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 4985030C63C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1487801938; bh=KcCJ/e81+YAOfCIAvfagO4btuO3EVCBmcb/7udEvUpI=; h=From:To:Cc:Subject:Date:From; b=tuXnUkQVA+OudH6FKAU1ex9D7gXRu/ZAJDLT9VfNTZqPJL4dRmFQZnVI+46VI9mTZ rYWFTvaFQdV6L26K7X1Z+Jj+6Il1PUkWgcE/+TrsqKbERjD5GMGNHkmu8a/eVtnq4H nSqBHJ3FHsKeDUt1jCVw7q/wzy6bP5y7zXEC5sXI= Received: from jenkins-cam-14.cam.broadcom.com (jenkins-cam-14.cam.broadcom.com [10.177.128.77]) by mail-irv-17.broadcom.com (Postfix) with ESMTP id E122781E9A; Wed, 22 Feb 2017 14:18:57 -0800 (PST) Received: by jenkins-cam-14.cam.broadcom.com (Postfix, from userid 25152) id E7FF7B84E3C; Wed, 22 Feb 2017 22:18:56 +0000 (GMT) From: Arend van Spriel To: Johannes Berg Cc: backports@vger.kernel.org, Arend van Spriel Subject: [PATCH] backports: add definitions S32_MAX and S32_MIN Date: Wed, 22 Feb 2017 22:18:45 +0000 Message-Id: <1487801925-22641-1-git-send-email-arend.vanspriel@broadcom.com> X-Mailer: git-send-email 1.9.1 Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since commit 20e32810bcf4 ("cfg80211: Accept multiple RSSI thresholds for CQM") the backports need to have S32_MAX and S32_MIN which were introduced in kernel.h since v3.14. Signed-off-by: Arend van Spriel --- backport/backport-include/linux/kernel.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/backport/backport-include/linux/kernel.h b/backport/backport-include/linux/kernel.h index 4ad000c..ea55d7d 100644 --- a/backport/backport-include/linux/kernel.h +++ b/backport/backport-include/linux/kernel.h @@ -73,6 +73,14 @@ #define U32_MAX ((u32)~0U) #endif +#ifndef S32_MAX +#define S32_MAX ((s32)(U32_MAX>>1)) +#endif + +#ifndef S32_MIN +#define S32_MIN ((s32)(-S32_MAX - 1)) +#endif + #ifndef __round_mask #define __round_mask(x, y) ((__typeof__(x))((y)-1)) #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1)