Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp463143imm; Fri, 13 Jul 2018 00:07:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdc+E4N2+yvNBT+J+0vYEiS+cXaxs5hVxDyk6xgkMTMkXug3QIfnla5dPpzAkD0A8LxTB4e X-Received: by 2002:a63:2dc1:: with SMTP id t184-v6mr4970534pgt.62.1531465630718; Fri, 13 Jul 2018 00:07:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531465630; cv=none; d=google.com; s=arc-20160816; b=ZLEjBJELnLNVM6hyaWrcRzb1s8nm+JuXQABskjdMvP2AIGcYZ4JC0zMBgxNtDoYy81 kI1jSxS/TwI1csnC4pQZIL9WFc4BZ45gQ5kRZ7SL1mK3jvCExVZhKzUTVE6BcMDHXDxF u1UNkgsye9tVLwQGA5BLd0fjM73875AdiztMvkN/zvLVkvHNAHLowc0EBBobhKrjDztd 4KLni9E6JBLmYCK7JblPcFFsR9SwlGnqCNg0qzGfeK3mRsxFPtLEn6Mvq8ck1J+fNYEO VIWDiOLIKA3XN2afP2FQL8yG+7/dD0egrfFmegEo6mPBTB1cChRBIrJWS3ovbNKdRtmz kmhg== 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=pc2ySPGABPXzXZzHUAF+q7BooeWDvdtcJXP7+GgU7gI=; b=aGepIhTIuEOY4g3FamghYycFAB9XI9MEfBkNbwaTnvqtus6WHonu5w3A/j2d81gE3Y 8ZRMdA/356SwaGD5dE7xfI/grHVuvDnxm2+MYlA0UmPSJifr4GsSbVgYg/30AYxXJTVt 9sv5VZb2vcO813OaQGhrhBsjOnYFeiW9tCj5YLQu3AeBDubaNeqs5XINSDrYmkDWxhR5 NJF9fI/4wBPpZNeNaAcqtWY/8isD7nK10xF6M1OlF9ng8F4igV6TIxMFVYUOMF/T6yxw 6HSBL6wn9tUvLW2pRLAFM+AmfsnJGpD93iaGajQp0/MBQPLKagmkipXIufWh5uHScgFu 22lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kn0Q5RS5; 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 c2-v6si23244959plb.77.2018.07.13.00.06.55; Fri, 13 Jul 2018 00:07:10 -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=Kn0Q5RS5; 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 S1730110AbeGMHTQ (ORCPT + 99 others); Fri, 13 Jul 2018 03:19:16 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:39555 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729788AbeGMHTQ (ORCPT ); Fri, 13 Jul 2018 03:19:16 -0400 Received: by mail-it0-f65.google.com with SMTP id 198-v6so1960278ite.4 for ; Fri, 13 Jul 2018 00:06:00 -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=pc2ySPGABPXzXZzHUAF+q7BooeWDvdtcJXP7+GgU7gI=; b=Kn0Q5RS53H3RfLxRZ+Nc7vIIJ7NW67C2IfIctt2FjNwI/0MUz37mMcvEwkUSoPDVyt b0NZr+hQneFElgBy2PZ0ZSfcdYaSouF312ejNUMZ25xEDRVbbz6SO9KPhNwvdu2UjvtF /nIMd1hoeoUGGj9f3UR6a/UBKhn+BLOc8isB4= 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=pc2ySPGABPXzXZzHUAF+q7BooeWDvdtcJXP7+GgU7gI=; b=KNgqEo0rNo3dr+ty7KUoiDSbsAKHYHhqbB7FN35Eo+xWB7ENyFPEFF0qOUfoNKIidM hl5LSxmdIxhCfy1zoMzBDMhQbe+KNO03tlqbU6SJ2iEH5caKiJdikIiursGlaSS35nrY VMtjBPcSq8fYrYKIfHMSvAtOBvhnN+nZS/j2Efi9pznsWmpBq4HE+5wf1OkAQQt0aXu4 5RMoFFspotAmmg1a+eEdc8fWqgPLxHCTYN6/z82e97NKSbbLljciP7QaX+0motyWl635 qWgvcHWxplOiCpoeZrJ7tAcjbzw7byXuHygph/HGplI7k6M4b+zM0ju4sVW8cO8ZmNY8 /+Pg== X-Gm-Message-State: AOUpUlG02gIXJmxHl2l1ITYzX2OGgI1i1N4hmMjb+MmDPJA0u8f5I8oV MOhcue3hh38LWEAx54SDuqNTqMeDKdHIZVDG+gtm0g== X-Received: by 2002:a24:ad01:: with SMTP id c1-v6mr3796675itf.70.1531465560101; Fri, 13 Jul 2018 00:06:00 -0700 (PDT) MIME-Version: 1.0 References: <20180709145612.4166409-1-arnd@arndb.de> In-Reply-To: <20180709145612.4166409-1-arnd@arndb.de> From: Linus Walleij Date: Fri, 13 Jul 2018 09:05:48 +0200 Message-ID: Subject: Re: [PATCH] gpio: aspeed: fix compile testing warning To: Arnd Bergmann Cc: Joel Stanley , Andrew Jeffery , Benjamin Herrenschmidt , 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 Mon, Jul 9, 2018 at 4:56 PM 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 Patch applied with Benjamin's ACK. Yours, Linus Walleij