Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3102990ybi; Fri, 5 Jul 2019 01:59:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6x/D7ZLWH3eIQCuMs8B7gOXvE2PWjV4lJYScsWbScK3jDBW95/w/t7BVpy/PTTdPvKyi2 X-Received: by 2002:a17:902:bd06:: with SMTP id p6mr4069820pls.189.1562317147288; Fri, 05 Jul 2019 01:59:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562317147; cv=none; d=google.com; s=arc-20160816; b=srinBCMaTAXZVlHesthzDIJtcmDTPMTpSBYlox0eqg25+8jqqDuvM4UpYxZ6oXHibm DYDzI1RmZcqShRTNCbwlQFR6sj4JF+ywQdjccqmuCUtQs/iNMA1nyDc+IUI1YdJSjhgX /VpYJR9RilyVD1jPFfUGEI7bi15GL4EYJ0uzLBcw7s6n0Sg6JVoLW937AoWr6x65sSoT 6+V59Y+rFTUO1Y17Sr8MWwfNestQgVYB1UQnOuAtcutXOC/1A/R1QxeI2CEY4RrvMe4K T3kXV1z+hV+txY9bKN6pmVUVoDbnLRL/gR2C0YjLRu3V/QUlGpUY6qBSvmpFik93pCCv 2yRA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=1YPlHtNgTN1G0od1SzkjELx9HewbPSo2GNnCAZJ9hb8=; b=ow24k4+hBVCn1Tijzwove6F2aCXmGQTEnGn5FRWKfw75IIXuAVRg+R3PYZWnElRNBF J4GnoNsLP/XzIVVQ/X31h65RFc7bae6GbM5KfyflrgwPhf6CzCaPFJHtD0U95Y59Wuny 5zcHEFFFDJqkJnkNli1k3DGOeHGuWPnqBR1T+GVIpmhCXUW3GmVUqHQhjO5JACdznQKL PGxHZ/SJUj6NS891zFqp26N2MdTLV5PyUfeUAcFl2jdzx2bQ3Ba5rW0cMtLTdwDC4qn0 izj5LsA413lcFZGfAhoAYVSshTT7oPPaG+qdp6acoJl//5w/TY+5YQpjXohsRSqKQaWk AXgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=E8Jq1h8p; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r199si8517295pfr.233.2019.07.05.01.58.52; Fri, 05 Jul 2019 01:59:07 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=E8Jq1h8p; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728171AbfGEI4b (ORCPT + 99 others); Fri, 5 Jul 2019 04:56:31 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44113 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727462AbfGEI4b (ORCPT ); Fri, 5 Jul 2019 04:56:31 -0400 Received: by mail-pl1-f196.google.com with SMTP id t14so1211303plr.11 for ; Fri, 05 Jul 2019 01:56:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1YPlHtNgTN1G0od1SzkjELx9HewbPSo2GNnCAZJ9hb8=; b=E8Jq1h8pS4+Brm0rvsAfnwUSvN0RwgYU8sdYmdtRuWP21u1i+lCGYQL6/Y/sgCHfF9 ZSnMGKSzXCSC9vsZmGDagepg0vPFU4yl22jxdN2k/SvpggYdlvY9QtKjjrAIYCT8bw8M 2js32oP+jFjHueasQ5HbcSehBIaC/3usnew40IPZdfMgEDnBPTVDMU5rX6a78sRWhXBI k+byDQQgmqTOYGyfjWeCSQt3TuoaWoWlRgG3LfMrkUmuAyS9M+dhni/VIG/4Q88dbhXD Jve23Z7G4W1qWAaFb/Ym9pXjXCx9Jkw7SzaX0Gn6x3EhKu+0pO4sKIJ2U595pTn1pZWE 4/KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1YPlHtNgTN1G0od1SzkjELx9HewbPSo2GNnCAZJ9hb8=; b=Ka+W3v/NmZ2e+RJ5K3B/FFGi5uSZRu/sfQRROiWG55ZRfv4BRLoAOqpauGu6E4d97p lF1PEvBBBY6yPujC8+tJ+GmAK/TMXU8Kw8Xcj7/z9XIpV6s9zCMvyCuVJp27XM421rl4 TAhXZFgZO+lt8J7uC/N2cHGeUMgnGVtRG4hfyoDdwu939iyk1lNUSdQAEKwfPVqCo14s Uv0ODkmLJzdduNnpH+YKIofmy/v2GMGnNL1gfpMw9JG+AdgP1aWr/BFp+j1Svv7mVe8P IO30S7DD4Yx4A/OGEGEY0zFpTshLulMcbRDM2WxLyGzLaTKsDwsxhT4fCp4m+WNU6Qa5 ih5Q== X-Gm-Message-State: APjAAAV1owZBa2PNAInFyjWT07E2/hDlKw7szdZFhwBcGoz1eB8Bo7S9 utwdCi5xHokrDfWGbnMqM0k= X-Received: by 2002:a17:902:9b81:: with SMTP id y1mr4140472plp.194.1562316990530; Fri, 05 Jul 2019 01:56:30 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7148:c4d0:6a65:6774:f88c:ebeb]) by smtp.googlemail.com with ESMTPSA id n89sm19478906pjc.0.2019.07.05.01.56.26 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 01:56:29 -0700 (PDT) From: Puranjay Mohan To: skhan@linuxfoundation.org Cc: Puranjay Mohan , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org (open list:SCHEDULER), linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH] Sched: Change type of 'overrun' from int to u64 Date: Fri, 5 Jul 2019 14:26:09 +0530 Message-Id: <20190705085609.24453-1-puranjay12@gmail.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Callers of hrtimer_forward_now() should save the return value in u64. function sched_rt_period_timer() stores it in variable 'overrun' of type int change type of overrun from int to u64 to solve the issue. Signed-off-by: Puranjay Mohan --- kernel/sched/rt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c index 1e6b909dca36..f5d3893914f5 100644 --- a/kernel/sched/rt.c +++ b/kernel/sched/rt.c @@ -19,7 +19,7 @@ static enum hrtimer_restart sched_rt_period_timer(struct hrtimer *timer) struct rt_bandwidth *rt_b = container_of(timer, struct rt_bandwidth, rt_period_timer); int idle = 0; - int overrun; + u64 overrun; raw_spin_lock(&rt_b->rt_runtime_lock); for (;;) { -- 2.21.0