Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp464045imm; Fri, 13 Jul 2018 00:08:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcTI/YF3tbUNh/XnLN1bcmXZZOwCL9CYLckJ2W8saUc0R48e2une5Xb2DMQl4xJJmcl9hG3 X-Received: by 2002:aa7:87d0:: with SMTP id i16-v6mr5764842pfo.82.1531465699178; Fri, 13 Jul 2018 00:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531465699; cv=none; d=google.com; s=arc-20160816; b=JpnBaKI3GsV2oiYOCAapME39mmp/ncBETgI7ctTkfR9vLfd7jpEZmkxME0DLOfFKwL LFmhRAawg05/Q+c+ysXtBI5EOjdWDk+TBFMYmoAElX4VU/GfdxbomjIcSOywibNH86mZ vIw1cv34/H/nyV8p+jchRokUbhTUmwLEgibWWHpqdWbCH4FMWIhY21t+RDL6ODLzYoJZ yElpccmy8DVr1Vt6XXrePQIaapip8zGp96iRoKteOeaeUdd4npuMUZmez+Trh4Ow/1SP Bt3GH3MWdJICsUFoW3KMYV5bC43CRqSiSKoI2z9We+cvkFsvyA5ATgugst84u/6ihIxR 6UEg== 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:dkim-signature :arc-authentication-results; bh=2D7J4Cc/bFv9FBrEN5o4rNsJA9UdekeJQiUgg4Wdw6Q=; b=yI32wVNDPsW01VAJgk1SdXRqKL+x7orY6Kk/z6sBuLynHDhrih6/qEo6CxVf0t0cP9 b6Q+xfz9i4tzUMkw2wUEbkEOOmOLDaBXH2tVrvwPAkn/cjub4kXzFfwAisXxGe/eVnlg gjowTgfiBKtYCI4zG1tYGLlMq2wo70f7Ai399BXwailxcVj7xvL1HFxUV6t913lQIi8u HmW+bwa0BFXVIgbS4G9BLjisUiwyHmsq6z3N1nE0prfsbB5q+gXDm8za/b7NRSrlIKd6 QcUn3hDodTy5NFf10zkiNdVbzfRNCQoetcl1UJeDpeB+GY11Wls9qFxShFNHcvCMV9+m 5YrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MbJR5dtA; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z13-v6si24808414pfc.118.2018.07.13.00.08.04; Fri, 13 Jul 2018 00:08:19 -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=@linaro.org header.s=google header.b=MbJR5dtA; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730644AbeGMHUW (ORCPT + 99 others); Fri, 13 Jul 2018 03:20:22 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:33452 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729618AbeGMHUW (ORCPT ); Fri, 13 Jul 2018 03:20:22 -0400 Received: by mail-it0-f68.google.com with SMTP id y124-v6so4080075itc.0 for ; Fri, 13 Jul 2018 00:07:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2D7J4Cc/bFv9FBrEN5o4rNsJA9UdekeJQiUgg4Wdw6Q=; b=MbJR5dtAqqaeKNUzHHIavjeOyUJ67iZwSQodg/2Qswj87xvpmKDkfi+FNyjemFMqB8 AclU4P6LVXnqWnNnUW/ydEFOQhIgurdGNoo2gh/aO2vDpLV7+HdQ/38KjDWV99kazWcn zjSDp/jI0kJkZANfOmifEdvALYaTwVsU9T+3s= 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=2D7J4Cc/bFv9FBrEN5o4rNsJA9UdekeJQiUgg4Wdw6Q=; b=YIX8gXhiwLrIvNewZaukHUnSpYlJua5qyx5gxIp49jmSYDQPtaa9NvGelRRL4Fl5qd 1QP2HTyG+V6KIiNMi8ZP24JSxi8pV9TnCILrEMze0KNu1ThxeyxRwl1556Qq0K8xBvcu BW30nJ2hvq/FaLfheQu2p2+ynIoj6lHJkqpy4+xqHKY4ufIoTWqr34AAfJOxisWSOACF 3hTaINaQNwg3De1vV0xRKlGe8DefLFoo4R0Aw0Z6K4Ld1xS5Gv09YKtdBLICwSz+66A8 +IrV3TbzmHMIhjt89FgK/0xsW/qw1kNnRBRokcWTgriNoxyWoRJ5GePZYAxbSKpofh1v HtMg== X-Gm-Message-State: AOUpUlEDaZccE+qk7z3w1iWfdI+csy/kqYiYGv0lsJapuiF9qFDMbuxz FOVcL8f/7PzTXvVuN5tbD1NvxrR7jULlqrrbWsqezw== X-Received: by 2002:a24:5004:: with SMTP id m4-v6mr3781498itb.38.1531465625840; Fri, 13 Jul 2018 00:07:05 -0700 (PDT) MIME-Version: 1.0 References: <20180709145612.4166409-1-arnd@arndb.de> <34126dddef64a7669946c354d4dd9e2adfb3344f.camel@kernel.crashing.org> In-Reply-To: <34126dddef64a7669946c354d4dd9e2adfb3344f.camel@kernel.crashing.org> From: Linus Walleij Date: Fri, 13 Jul 2018 09:06:54 +0200 Message-ID: Subject: Re: [PATCH] gpio: aspeed: fix compile testing warning To: Benjamin Herrenschmidt Cc: Arnd Bergmann , Joel Stanley , Andrew Jeffery , Thierry Reding , "open list:GPIO SUBSYSTEM" , Linux ARM , linux-aspeed@lists.ozlabs.org, "linux-kernel@vger.kernel.org" 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 Tue, Jul 10, 2018 at 1:53 AM Benjamin Herrenschmidt wrote: > On Mon, 2018-07-09 at 16:56 +0200, Arnd Bergmann wrote: > > Gcc cannot always see that BUG_ON(1) is guaranteed to not > > return, so we get a warning message in some configurations: > > > > drivers/gpio/gpio-aspeed.c: In function 'bank_reg': > > drivers/gpio/gpio-aspeed.c:244:1: error: control reaches end of non-void function [-Werror=return-type] > > > > Using a plain BUG() is easier here and avoids the problem. > > > > Fixes: 44ddf559d579 ("gpio: aspeed: Rework register type accessors") > > Signed-off-by: Arnd Bergmann > > Acked-by: Benjamin Herrenschmidt > > Linus, can you plonk that on top of the patches in that topic branch > you created ? I put it on top of my devel branch where I merged in the topic branch. As it's a fringe thing anyways I don't think we need to recreate the topic branch for this. Yours, Linus Walleij