Received: by 10.213.65.68 with SMTP id h4csp1432590imn; Mon, 26 Mar 2018 07:26:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELv4nT0RtOkfa31qi6mb7dJNhImEce7qR5Vy0VJb/3NprE2wgxbcdOzwGfh729SriXedBGOr X-Received: by 10.99.126.20 with SMTP id z20mr28063444pgc.38.1522074417906; Mon, 26 Mar 2018 07:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522074417; cv=none; d=google.com; s=arc-20160816; b=xbLHpJ9t3LvlHq4p0fvLY7ZaJDm8n0bH8sFlyI31Sum3zcM4v2NDLYiaZ/Oy+YZuzc hd+6Z+yR8KP2oHWFQKJR4Yk+g+j2KN9j0b55gSlrORxxgSD3UBWu2v6dVqZGsSS54Nv7 ZHaZwyaUcpInPvhjmTkKJ5bKfB/Ne92VMG2kX+HtWFg8zVn8JmrMOJI7DjgbIx8EiMwr FigzyORuhDGJhEhoi/AwNOvwPY6xRFBuuIYVwMx7hbHmlEw7+oMj0pNMnbMFxZtMlbVR w8urrlch9kL+MZDloQBEVrIGubKeao7jnBnwba63MOxtMKkPHTEXUSxcZsMcShITAX7a 5Rhg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=LknNw6f+nIhcSR+heKRMCBNMuE4YhrnzXyqO0hsX2xw=; b=Fwb2BtG8U2iawurkcYpuhwWTG6THqdvBp9Z1fhHqHfL+zPbs2Q26/b2fUW+Fbv6spz cR0pNvscbyO9bo4AJQmo6W5ifrLH7nMiDxKgaLzzvpCk7Zbcntts/jITNrkkIvGFYO/n eQuwhHZKnVWxhVfwdZIl2UHTq5iTifArIztOjV2KHYaY1TDXDQfXalaAvQMKP4Uey9Ys +FDqCnE5MNMWcbFLR7j2J6lG1d/rAi7bb99pvBDEY+5GXfxO9nN/ZhLqQYHp94g60eaJ 72mUcQQ8rHuSFTVjFFptbnFmKN4ntvbcjkLG+IxQIbnGWz2Q6oyj9K2e4isxZ5JBKUXQ kWNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=TgstmNvj; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11si10442839pgc.243.2018.03.26.07.26.39; Mon, 26 Mar 2018 07:26:57 -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=fail header.i=@gmail.com header.s=20161025 header.b=TgstmNvj; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbeCZOZc (ORCPT + 99 others); Mon, 26 Mar 2018 10:25:32 -0400 Received: from mail-yb0-f177.google.com ([209.85.213.177]:44282 "EHLO mail-yb0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752053AbeCZOZb (ORCPT ); Mon, 26 Mar 2018 10:25:31 -0400 Received: by mail-yb0-f177.google.com with SMTP id v8-v6so6402374ybm.11; Mon, 26 Mar 2018 07:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LknNw6f+nIhcSR+heKRMCBNMuE4YhrnzXyqO0hsX2xw=; b=TgstmNvjO+bs38OCAkWAP+jPElZmI+KnwhFiU2kjtf4vp2boAkcWOz4n1M2wjSvLde uP8SIVNuRti5+vMOiNgQxqgmXXfQcFfphntavLohkU3nTYvKRC+0ixLx1F18cNZusRcX AFkU6Q0gse40a2ol/uqm0YDrLdzPUOgqFRAiBGuV8vCrZVjUrs64Ac/V7wUflDKcxuBv jatg2jrOZQCUSJa+4n0zgwXuvkBww7sgmBCoM4bk1NlkbAkz9LFVy33R43HBeil5bSDR C5Nsur6n1jR3gdzOdRqaSmbM8Ru/nsoRY4vEQcHE8E7sQujS+zLiSrHovsjMsQxGA6x1 Z82A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=LknNw6f+nIhcSR+heKRMCBNMuE4YhrnzXyqO0hsX2xw=; b=QQzfosdu05OyXsJRShF2WoUcTsFAZqlglBFw50Do/FqONoerSzxkHnd89zmM2n81cX MyNJcT32fvajQpstYhKhFhvY++uvjmDy2UnzRenYfoLyz0RxbpV8hVQjI3QngfP9O3rY RDwLXP6W2Bj5O/mh3QP2rD/9dkkTvUY/Pz8XUZSSXmArPjCiU+V8bhRbwlxM0Lk0027Q alkEjs+stfeek1/DS8LNO7Vwv64iJg6i6MXJ2OE/1QXck/13uboO3Kf1fZHtVekGME38 125jWlLLLriJt/DxjnPwnOmibKIxO1cuZCb+WsCP2pVDP9AKQd7viuD6EU7CXQ898AvL B4zQ== X-Gm-Message-State: AElRT7GFl4pzv+dvjQCZvpoA6nX3E36us3T2SH2r+IO1K4Rt2S3cIaO0 3/OGxOaDYXfv6U4LXJMzRE8= X-Received: by 2002:a25:a0d1:: with SMTP id i17-v6mr20070722ybm.190.1522074330345; Mon, 26 Mar 2018 07:25:30 -0700 (PDT) Received: from localhost ([2620:10d:c091:200::3:ebeb]) by smtp.gmail.com with ESMTPSA id u197sm984004ywu.27.2018.03.26.07.25.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 07:25:29 -0700 (PDT) Date: Mon, 26 Mar 2018 07:25:27 -0700 From: Tejun Heo To: yuankuiz@codeaurora.org Cc: cgroups@vger.kernel.org, lizefan@huawei.com, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, pkondeti@codeaurora.org, cgroups-owner@vger.kernel.org Subject: Re: [PATCH]cgroup: __cpuset_node_allowed return bool Message-ID: <20180326142527.GJ2149215@devbig577.frc2.facebook.com> References: <0fee75e4a1b12f5fca30e04306a95788@codeaurora.org> <20180326141212.GI2149215@devbig577.frc2.facebook.com> <3540bc7869927f54c409b697c743938a@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3540bc7869927f54c409b697c743938a@codeaurora.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 26, 2018 at 10:20:43PM +0800, yuankuiz@codeaurora.org wrote: > 1) return int type variable in bool function: > bool enabled() > { > int ret = 1; > return ret; > } ... > 2) > bool enabled() > { > bool ret = 1; > return ret; > } ... > so the #1) style function can generate significant instructions > than the #2). That is a problem for the compiler, not the code. > While, this is happened only when "-On" is not used with *-gcc > together. Though, it is oftern there, it is best to provide this > with decoupling of which option is used for optimization. We don't want to dictate minute coding styles to avoid things which are trivially optimized by compilers. Thanks. -- tejun