Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2088513imu; Tue, 6 Nov 2018 08:56:19 -0800 (PST) X-Google-Smtp-Source: AJdET5eDOWl5E3W9aWn1wOpkD3tJ9B/cYMDDy1/cjMVlYJDNEQfgQ3V0cgqmTFIXTz/6XVFXOkw5 X-Received: by 2002:a62:5210:: with SMTP id g16-v6mr26892052pfb.256.1541523379244; Tue, 06 Nov 2018 08:56:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541523379; cv=none; d=google.com; s=arc-20160816; b=cmwr7E++QLkF2rvjTgKmpznasVBYxKLHorMEYWNXlkt8Z7iLFP15sxKG12ozd9SaXR 3ZuWPYNAz/Tc8sI01QG05zA5bB+jzWyf/f5Q9qbXGVAHNl5PE6hUesVscFeMROgPPKkX PGRjkyMcpDmez23Osdx6QYqto14oaDOL7HUhUsnBS0cu9703+GJZTYCwx6AFmf4Fa5gH 66FN5ewl4d/TZL2MzVMHUlV99pJdFqfIj517qXUtdXEZaeI6zjqiiyHiX2X+RBbEyqNN M/RwAkHVdgsTl9WVwJMsfw+7Q8jFS/WU6+umDH7UBv/CMVkDleDBWK0jJtbmtqVzol58 qKUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=skMHNOoJD4yOALOm6YOjjkiy8VSgLfR1zLFcpNeSm+g=; b=Bxf6kfIpXbHHirZlVRIk/B7YzNmhjb6BfrnbWGhetS53p9yzFoTtw12bcKQYD+hwfo al2oCaQOQjUL7xtmOSre0qkyBp6htvwLtdc391OXVfqAUZ+f0RwjZ2o0zWkmlA7HpUED lIcP9AUqUpVScD+9WEYASHFDqAvNPPsGtUf98Da+cjDn4m0lTu0FiuP2EWc5YH8OkUf3 gCH3qTrNIWmEPGCBpaWaUG0gCvCR5/7yfMGDEHqaVuwTVZ1HmOeDsPsQhGdYxJwYcpXy pwzxYYMx4/+keJMtjjim/6oIJmDf3IC+79E4X7aDb7/6dWS/9FWrezvRkc+e1V9xHofS VTTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="RU/pEJeZ"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17-v6si22572676pgk.501.2018.11.06.08.56.03; Tue, 06 Nov 2018 08:56:19 -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=@cmpxchg-org.20150623.gappssmtp.com header.s=20150623 header.b="RU/pEJeZ"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=cmpxchg.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389359AbeKGCVN (ORCPT + 99 others); Tue, 6 Nov 2018 21:21:13 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34721 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389214AbeKGCVN (ORCPT ); Tue, 6 Nov 2018 21:21:13 -0500 Received: by mail-qk1-f196.google.com with SMTP id a132so18934384qkg.1 for ; Tue, 06 Nov 2018 08:55:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpxchg-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=skMHNOoJD4yOALOm6YOjjkiy8VSgLfR1zLFcpNeSm+g=; b=RU/pEJeZfjNOUbRUXgAbrqgLe/r5V2kWoKFhLTi1l3ED+LcQDVdR0Kzpsgv5ofLVmF FV35E9YYK6LW7YesucQFlCG1kPmsmVYOi/0xmHLQ8swKJdCFGHg/8gGG4OYP5kKCt0cx OH+IxfdGgjzr6oz2LuT4X49Tn56h+y+PGhqKbBoKhpV+bDEMSzkALEWKPcOCz+nEUMB4 9WywMgcL1iLs/1MUf+kOIpz69HIXNKsAQIU3QvC1lYGdH96KaUQUgK1PpC8TfRTxUyWy bC+vsfD1KQvy3rDvutcNjHWWUai/NKDIr25icSIjI+2OQ9kTV7TqgaccGikegUBq1vAm 2VJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=skMHNOoJD4yOALOm6YOjjkiy8VSgLfR1zLFcpNeSm+g=; b=p7UPFJGom/RFJlWW9Rx0Oh3Ym0rSjcmqXw3vFzCscviOe6Du9oi1uPiMIVvXs0V2e5 DKANBOkcNUK5mkfLxmzFLtpC9Vc8aLvXF9MLvnv29elQNLtOP0Zd6AYsdUSpDGHBLYp+ MLtAtx6UkLaEaW01TaQ8BeyqUqnf2jjfAtIi9W6zJSjb2f8SiBnF/sXv/ltrZOvDeWaA yhRg5w8mCU8BVxJRPJDV9oSBaS9vALIkDS7D0XOLw87VAtAG/4cEiIevlGrmfk3JqbPy I7ihioYawUcA9bvuqZg1w5oDUhVCwcQTaWvUUX1QPOzR45KLJkgwRxYFwueY5RDzu/88 L8SA== X-Gm-Message-State: AGRZ1gLNarASUa2rsYo3KCn7+akQlpbGkXxiFs+oryT7VYGN99V8Ds9z X83sOJxntwk9hWxcqW/ayk00Lw== X-Received: by 2002:a37:2bcf:: with SMTP id r76mr24638975qkr.218.1541523306806; Tue, 06 Nov 2018 08:55:06 -0800 (PST) Received: from localhost ([2620:10d:c091:200::6:2772]) by smtp.gmail.com with ESMTPSA id h49-v6sm34838884qth.32.2018.11.06.08.55.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 06 Nov 2018 08:55:06 -0800 (PST) Date: Tue, 6 Nov 2018 11:55:04 -0500 From: Johannes Weiner To: Olof Johansson Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] psi: simplify cgroup_move_task Message-ID: <20181106165504.GA16718@cmpxchg.org> References: <20181103183339.8669-1-olof@lixom.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181103183339.8669-1-olof@lixom.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 03, 2018 at 11:33:39AM -0700, Olof Johansson wrote: > The existing code triggered an invalid warning about 'rq' possibly being > used uninitialized. Instead of doing the silly warning suppression by > initializa it to NULL, refactor the code to bail out early instead. > > Warning was: > > kernel/sched/psi.c: In function ‘cgroup_move_task’: > kernel/sched/psi.c:639:13: warning: ‘rq’ may be used uninitialized in this function [-Wmaybe-uninitialized] > > Fixes: 2ce7135adc9ad ("psi: cgroup support") > Cc: Johannes Weiner > Signed-off-by: Olof Johansson Acked-by: Johannes Weiner Thanks Olof!