Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2699285imm; Mon, 10 Sep 2018 05:18:51 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaZTZTB2hxUu3Bk6PKyDUOQn/13TdmYpHU0gtfelsEy73Nxe9UdJQly7ZAaNMgJjklWoQmr X-Received: by 2002:a63:3e8b:: with SMTP id l133-v6mr21904356pga.355.1536581931285; Mon, 10 Sep 2018 05:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536581931; cv=none; d=google.com; s=arc-20160816; b=pBDgaWM4XaXlB8lr82HEmGkzf/nXFZyiSTknQcskhNN26OYZhv29Lvj/Q9RPMvz4JL JgoxWugMQJXIp0LRZ4uf7jNjzQ1ep6J+19FWEZig++aLDF/BuDaiGEd/qH4zMWFkBqQf kZ5IG1t9ob6X0V/Sws/nra6N6ohYDxP7Hp49czxy7uCoFmkWVUtZ3llmsoAt9ivkF9ep Wkb3pWfZ2o/erSt6Qti5jF5DO3p/WZ+gACnif09o/dctFWB1hKEZ1SIGROTCKMh0Nzsx IJODoMvCCcEddBpS9Nsc+bvpsAn9EaKjqXI0ZXO92gTMSwfo1OyvF7kckXZAPlHNWM/v mIEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=FdBpssGbEHp3QH0N6UKJjZ8IZ0dsF56sg+zppGD0ous=; b=xZtZKxdLorqMCXeI2PcakRFKvLwVPfd8kkzFH9xYwuBRgE4xdfj9zawpieC9rhF04Q HTb5kZbCZ+wG3LugsJTZUmMLPBG0N1b0wAjzRjww09AN0oS5J3OP8iThZGpuhSWCW4xM 0Nb6hS0cEQJalDrLWswBeRFhsoOpjjqPo6DO77+FCqUwWDsv3UbLWQ1RjPbhyRZ6as3G 6l2Fd+SifnnwZja+cVfyHW6rRGl5Y4sIVaYdFb2DkANWqxQ0dpLB2p/BWDhR7phtfBTW CKovMpAh8xE640MzDTU0ljL6m2maUW28SFAu4tDMns7E9OHhRTgB82lJTofy161TOo3w KVeg== ARC-Authentication-Results: i=1; mx.google.com; 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 d128-v6si18470925pfc.211.2018.09.10.05.18.35; Mon, 10 Sep 2018 05:18:51 -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; 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 S1728327AbeIJRK4 (ORCPT + 99 others); Mon, 10 Sep 2018 13:10:56 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:42360 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727649AbeIJRK4 (ORCPT ); Mon, 10 Sep 2018 13:10:56 -0400 Received: by mail-qt0-f196.google.com with SMTP id z8-v6so23772831qto.9; Mon, 10 Sep 2018 05:17:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FdBpssGbEHp3QH0N6UKJjZ8IZ0dsF56sg+zppGD0ous=; b=b6UegEmGJ/Pu25YMrMtcwoZqD14I8x4uEVcy0A09lRQek3ZQCCLjbVWp14Uiq0u2+5 yeJ9NkSkNrPhaQPCtOAuiohNPbPy+GRDjTm0PKVOXQlWX3WUtBWDbo16FDUtm645NYm/ tEZou5oXyo5+veXz16xEGnVH47MALcGb5GK+xOptmDtQ4FFV1cT+oRWN4b4P1K3w68sw B+RVh3/ZyBx2gc29Gl9H2wLAdhYEU6JQFHihtcb1Ql5wQ/Um89oFd0lLtBw8/TGqjL0h HeDHe5EqzePo7eypQvprAs567wu78/kKKtC+X2asukuk1I/FdP6vg3imEiOthjQnam3O 9OdA== X-Gm-Message-State: APzg51DgeDRLBsBcK14xPIq/XWiymQKI0s0UVGPk6d7FNNIy202jFQIf FTliryiyURRG0brrVc7l533EfnJffHMAw4A0Y8Y= X-Received: by 2002:a0c:fb08:: with SMTP id c8-v6mr14183683qvp.149.1536581828186; Mon, 10 Sep 2018 05:17:08 -0700 (PDT) MIME-Version: 1.0 References: <20180908045928.26201-1-igor.stoppa@huawei.com> In-Reply-To: <20180908045928.26201-1-igor.stoppa@huawei.com> From: Arnd Bergmann Date: Mon, 10 Sep 2018 14:16:52 +0200 Message-ID: Subject: Re: [PATCH v2] asm-generic: bug: unify hints for BUG_ON() To: Igor Stoppa Cc: igor.stoppa@huawei.com, linux-arch , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 8, 2018 at 6:59 AM Igor Stoppa wrote: > > If BUG_ON() is used instead of BUG(), it means that probably the > preferred outcome is to not BUG(), therefore the condition tested should > be unlikely(). > > However, when CONFIG_PROFILE_ANNOTATED_BRANCHES is enabled, the hint is > disabled, to avoid generating false-positive warnings caused by > -Wmaybe-uninitialized. > > Signed-off-by: Igor Stoppa > Cc: Arnd Bergmann > Cc: linux-arch@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > --- Acked-by: Arnd Bergmann I assume this will be included in a longer patch series rather than going through my asm-generic tree, right? Arnd