From patchwork Thu Jun 14 10:12:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omer Efrat X-Patchwork-Id: 10463755 X-Patchwork-Delegate: kvalo@adurom.com 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 191DE603B4 for ; Thu, 14 Jun 2018 10:12:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A69D289C2 for ; Thu, 14 Jun 2018 10:12:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F373E289D1; Thu, 14 Jun 2018 10:12:29 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, 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 61734289C2 for ; Thu, 14 Jun 2018 10:12:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754979AbeFNKM0 (ORCPT ); Thu, 14 Jun 2018 06:12:26 -0400 Received: from mail-eopbgr60108.outbound.protection.outlook.com ([40.107.6.108]:35568 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754764AbeFNKMY (ORCPT ); Thu, 14 Jun 2018 06:12:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tandemg.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WXq/oymOcsekHtPc/G0FfRx+YgNvx09uFb++xRFJ614=; b=SD4l14T9CXnHlYPUkxjL9a5S60bmmZEuR+HK1aPEOMgEPdaj0AB8Vd74Uw/b3EGNeReA56eq0P0ZjICxNaNFjgrq4AqricDAOaF+MRlitjfX1XbV91ARENuBaLOgtpq8MdehgJM+6EMa+1ueHiXFUfpL0cshzXkHMZpWFvOIeyg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=omer.efrat@tandemg.com; Received: from omer-laptop.tandemg.local (37.142.120.98) by AM0PR02MB3619.eurprd02.prod.outlook.com (2603:10a6:208:3f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Thu, 14 Jun 2018 10:12:21 +0000 From: Omer Efrat To: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, b.a.t.m.a.n@lists.open-mesh.org, Omer Efrat Subject: [PATCH v2 3/5] batman: use BIT_ULL for NL80211_STA_INFO_* attribute types Date: Thu, 14 Jun 2018 13:12:17 +0300 Message-Id: <1528971137-432-1-git-send-email-omer.efrat@tandemg.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [37.142.120.98] X-ClientProxiedBy: CWLP265CA0136.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:53::28) To AM0PR02MB3619.eurprd02.prod.outlook.com (2603:10a6:208:3f::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e469763-1cdb-4796-0e8e-08d5d1df51c1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM0PR02MB3619; X-Microsoft-Exchange-Diagnostics: 1; AM0PR02MB3619; 3:PddUOofZ1OpYkqm8trRrFqSzTeDWj8rhqBcNMZHxwz6BpjD6BOG6HeBsKUQ9QKL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Xy6p1lx7inyANXWBzkZd68oVtj50R5m2CuZX6gixt1W1cxAFC2KXN5jZXNH5V7OKx29NqgxWAANf/05YrzFyLBta9muEW7sTcgTfqP4l93MqdnQVrnudBnC//w==; 4:FO2/4PnCYjYQ/wqVO7/QABN/Vh5EcSfwD+KHb3TGo5hjZqHL0cs6z4LIqes/sxQZdwkTRTjHN6yTYL1LcGEoj2GoERuXh1tx2qnNT1cdM1GneIHj5jpXVDFfm2tkCZB7svAZ290L/w5kMq1so/yIXAEiXKSRbeykrvxd2OryaD9sTgQqDM+XYdnqmBbGc36O32v+JFUM8fxM/zeG0CVWppV5pymWXPps0aORHL2Iz8QvVdpLJq0a18t/VLy+TqYhzjZuFCCeyVmG2I3mrkYSHA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:AM0PR02MB3619; BCL:0; PCL:0; RULEID:; SRVR:AM0PR02MB3619; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(39840400004)(39380400002)(396003)(346002)(366004)(376002)(189003)(199004)(53936002)(305945005)(4326008)(25786009)(106356001)(2361001)(66066001)(6486002)(105586002)(956004)(476003)(16586007)(486006)(107886003)(5660300001)(2616005)(6512007)(7736002)(316002)(44832011)(36756003)(47776003)(2351001)(68736007)(59450400001)(6506007)(386003)(8936002)(50226002)(8676002)(81156014)(2906002)(81166006)(478600001)(51416003)(52116002)(26005)(50466002)(186003)(6666003)(16526019)(48376002)(86362001)(6916009)(6116002)(97736004)(3846002)(15760500003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM0PR02MB3619; H:omer-laptop.tandemg.local; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: tandemg.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR02MB3619; 23:ulj/SqGFW5zYB1Tm8MkZUnVbGnMFLM7E8UHA03XUW?= =?us-ascii?Q?7fDxp2/xcJ85hZ8s36ZNv7AvcWX000KIIQCdsEO+XLLgk+nyR+LfIB2kY3/6?= =?us-ascii?Q?mY4VRik07brwG6N/uJRf/YtOv0i/tmdbICPA5TQf3c9/bh+obr94WgHiIYmj?= =?us-ascii?Q?gQvth/HCpi4D5pQ1VEIjG0Chwyy0IJsuVKs4RHmV1yW6CCInd8AVjifJaOc9?= =?us-ascii?Q?QdRF2T19MDAZg5qPuERBpmwoBubEY1kBC5vVfQFXWu+HOVNDp6F8nZiA9GbP?= =?us-ascii?Q?RYKpM8+ISZeSmVhbRBl6wB3OdDsaltLnh3oA7/O0RUrAZ0CZpSFIbY5vmAe8?= =?us-ascii?Q?+7j7nRevJrvyYgu2FYobL23hXFU4qHCJd4gtCgzZGFkCuP0zpbvDF1Pd/9fD?= =?us-ascii?Q?WfDQlk+JfOOVshJUtfm1/2AXpWBumrNWgHAH0Q44jCrE9ysM2LoWYQu+d7Ww?= =?us-ascii?Q?+zgKhKOfbsRF80UCOv8ANMBBqd9uLx2tInsrLEEMC2IuOe/ChXLFKodgxxxX?= =?us-ascii?Q?9nHknCOX+nh7USOVFiPPuSNpu29juvccxrO/D+LEd+K+lSCWHABx43y0gDcR?= =?us-ascii?Q?lLggyMUEkJb0AwTID2qU6GObf7LHqScxyQGBXrMhE7r62HGun1vAdRPbsvhB?= =?us-ascii?Q?MkxjjdyEW9nrDMtUXh/rJositIvaH34NiBqgzdeLGI1gCKp2v/LE4RnK7J9y?= =?us-ascii?Q?v40+SnlbL6joEvGHH1z7qEspo9pAza+zbHT+Sl8lm7Lsmfco0Thf5vfsFmIJ?= =?us-ascii?Q?Mt2zSSoxXcBOdrnYY8AbTm3Az3p/XwAeqJdCpheeGo40DmKghiJWk1MzZpKc?= =?us-ascii?Q?yNeE5AIRmp7ToR7bdxMZfeoMCFD9R0L2mvlGPElLNWn9GXYVzAPoOga1N0kR?= =?us-ascii?Q?1bQeGCyES/ENPZNVadnKa0j1SunzMIJSQf0UtzWybhMrv/b7MfpoUcKDrVXr?= =?us-ascii?Q?v3vIetnuSY/puDSurmNKJurJmwimijSxLRbHIgdDAvp6x9gOfiiGfkZ3konj?= =?us-ascii?Q?LZmI+Xc1JZM1VluYTygfTCxrZ+C8s5vJ/mUC1Fe+wY6+qMrJBWhFIlqAt4QR?= =?us-ascii?Q?eAik3ybMbkmC8v8/63NHvK0UgSHb1Low5LnG8eWkUFid49XLRRk3cHbvB+MZ?= =?us-ascii?Q?ZSCZIZ9fZ8VjPZOBWL1NAf1h2AbgTgtGSZL9ihb8YJwCzIKVum928eLeZUNl?= =?us-ascii?Q?8uQsv0BXyCXonUdyfufmiIn43cE78UFqktqoEHG0Yh3QRi6S2zzuwP0XFOgo?= =?us-ascii?Q?k8c1wppPwqDlHgsFSY=3D?= X-Microsoft-Antispam-Message-Info: EiPogHqsVHdV3LjxcTNKXECmBo7RvWsh37yCQhmZ3gpDsU7xHOuIc+RS9Gf7lsrwOSOoE3Yczr83GSxycclCULVUJ7NMkeBvDEJDhJqn5YsN6fzpl3HNH5JQvyDaddLl10zRWrm6VBXu9uyfrA62QehO/eTa7UPNSY5rb1wWYTqGLY+dcsW7U0jtALWw7uzY X-Microsoft-Exchange-Diagnostics: 1; AM0PR02MB3619; 6:hypchZ5/Is4V2GgQtQop6pCikk4P9yCqik1dmTfxM+L9JXnad4hQyf4xBhreriBesFSoEXURPfnphGhtfvoePiOzMmnP9hCuUwgA4mUlrNhZ1vtLcfvhA26+iW+vNEpykqeL4ZsTHNVRSUcqUbaC/Se0+ID/D3CqayHSHkg4YRYLpRn7cgp6TuHLnvuR4sTiBAnX7vweg9q2DjzCU6bTjgB0bJ46A/G1OZ+Cx3xsRzn9j5XBe8JrEY42Dl4gdPTxSjR0EF25rJXDxWqoMtcbY2KbItlRlq3GNi5px5PZnFvyFEva+fZHT0Et/cSdS6N2zJY1m/RwCupZI/OV7mFSstwgSjrLS6M+84Z6Ju6JZiIUAeAUcGcozpV528S8NHBQS+ALkQz8LfPSsPJic9OR/rLTa8wq0o5HECyhHgBsDikRQyzi8mGROEPznHE3NRKDFAgURi2lbndn8k1pm4qZdg==; 5:xToDO7fAD8jj51Oy0NT2huWewIOUDKu5j5hb8pibWyiEX4lrsCggL8iA7x40HYVlX9uhR2YEls3mL7sjIA1ygjxyc9Pw7AG5PIJyWtmmO2xzr2D93Ltj0pqoy/Z/uNxopQSPcG9xMsQDInbsBQMMPYGo3VDHsY5+YT+TIYjqOE4=; 24:H/tDoBEdH7bgL+5C94CvIynG5NRU5dks3L7q2PHVQEewpeuzBQ/GSbe7xGxWH2kGkcC3NoHLJPbt52mAPprcXDjbPGeh1+vN/9RETbdc+Ks= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM0PR02MB3619; 7:ZxLKBTcXSJoSOtqXpOpB+4sRLFnoJqog9ceAVP7Ye689m6DyEbhq8PsNnPJL2jb+q+2STGrOerl1X7/os8N+Q5WrfWa8SP5vFyAzMdscjR2n0t5nYBYhPv8N9XCgtHAeaNzAktV4lYrCrYOWBCzkcyQb5RLonnw26Q8Wk9qR6pVpNBgOQYREnlwoKfnbI0gVHZlUsPpkyt8GLiPw0cB5fvDnHOhqVoTR1/59l7zAEQ6JX6G+X14aBmbF6novpZKw X-OriginatorOrg: tandemg.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2018 10:12:21.7312 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e469763-1cdb-4796-0e8e-08d5d1df51c1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d690b55a-f04a-454b-9f62-fb1e25467a25 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR02MB3619 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since 'filled' member in station_info changed to u64, BIT_ULL macro should be used with NL80211_STA_INFO_* attribute types instead of BIT. The BIT macro uses unsigned long type which some architectures handle as 32bit and this results in compilation warnings such as: net/mac80211/sta_info.c:2223:2: warning: left shift count >= width of type sinfo->filled |= BIT(NL80211_STA_INFO_TID_STATS); ^ Signed-off-by: Omer Efrat --- net/batman-adv/bat_v_elp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/batman-adv/bat_v_elp.c b/net/batman-adv/bat_v_elp.c index 71c20c1..71e6474 100644 --- a/net/batman-adv/bat_v_elp.c +++ b/net/batman-adv/bat_v_elp.c @@ -114,7 +114,7 @@ static u32 batadv_v_elp_get_throughput(struct batadv_hardif_neigh_node *neigh) } if (ret) goto default_throughput; - if (!(sinfo.filled & BIT(NL80211_STA_INFO_EXPECTED_THROUGHPUT))) + if (!(sinfo.filled & BIT_ULL(NL80211_STA_INFO_EXPECTED_THROUGHPUT))) goto default_throughput; return sinfo.expected_throughput / 100;