Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5943801ybl; Tue, 10 Dec 2019 14:12:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzs+i+kGlBLMwWnoJllu8zVtnoNqp6LiXYyY//c9HDjlXv/OZUDsWMFumIL7SEpdAjTaOwx X-Received: by 2002:aca:aacf:: with SMTP id t198mr207880oie.135.1576015922031; Tue, 10 Dec 2019 14:12:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576015922; cv=none; d=google.com; s=arc-20160816; b=QDHlM5W+p1StCcgnn5w3/KRrhn4UMNpkvKktK71elac+ooQcxOZTQ7fFG3LXaR5a54 0bq/Wf9exQ2C0yYccFMxCLuahnpher2+IFq94zufSbb7HaQeMuacsCGXSOgR0sK+idUF 4nO07MAYY1VRfE78HJPYbkUjYSZH77gZ8hhZeeo7nI7VeaiditZE/Ua/wVT7UD/7LGLR 2x4r6GgglKDOqK0C4BBhp2Fcb3Jow2OCQGiOG9aUcD4+QcWVZhEpQHd6nDu5bkAY6Mym htgS+XfYtTqAzBUn4OTOKvL0f9fdj2cObxnpLd3jbIdYSdieLZfci4ARiXn3sOBrPa30 QJFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:cc:to:from:date:references :in-reply-to:message-id:mime-version:user-agent:dkim-signature :dkim-signature; bh=iTzj/LXruarNxkB4mF+5qgnxYnni345HnB4zzW+dtao=; b=etmyZRA8V1K2WLucPZtMmlHakL057tVPHMOJq2V4KMsgzH0O+5MNYv4MBnVvSCkNJg 75WFgG/ujU4xluv499e6oUFOy8w+o/72OR3U2OhDXkCg83g3Z5b3oWg8Edih0YorEtke rQNGwAXMOBKwL4fK/SCJeLt7DCK/ud8QzehulP4/jpVHSJiPoC5pD/ulHmkAJrdCx1at 8udL5Go14yvEL6GvsI+vz30vcowN6Xutg9CPVCAjLr1VyCN1PTXtz6qdF8ZRvVay9mdR M1yWlMxx/erBDDZoQcbvH3lxXUDdu5he1beFyA/c4uHIq+yqikrW9kuxB9jzAj5bA3r8 obgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=CeFET6SF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ipJwzUWJ; 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 p19si2800944oic.216.2019.12.10.14.11.50; Tue, 10 Dec 2019 14:12:02 -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=@aj.id.au header.s=fm1 header.b=CeFET6SF; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ipJwzUWJ; 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 S1730354AbfLJWLA (ORCPT + 99 others); Tue, 10 Dec 2019 17:11:00 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:58847 "EHLO wout1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728909AbfLJWK6 (ORCPT ); Tue, 10 Dec 2019 17:10:58 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 326DAF5A; Tue, 10 Dec 2019 17:10:57 -0500 (EST) Received: from imap2 ([10.202.2.52]) by compute4.internal (MEProxy); Tue, 10 Dec 2019 17:10:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=iTzj/LXruarNxkB4mF+5qgnxYnni345 HnB4zzW+dtao=; b=CeFET6SFvvOE8YyX5U34URQmorm1Zg3iCfE5rXF71XrLsVG giyMAGOcfVkLtVPHkfQNU1dCrua9wiUW9Np2OHESJiYHcc090vZyjEMIdEvkYxnn ZuYcMc7hmSP611btvl7KumhtA5vrmJwWtoMfLZuGLvseUMVk9kL16OmKjxXcgtVN MKmtwhlc6gP6P7hP3tNT1QNTg5quvUs6KpR466SRb51wv4XaEifDJJunVgPAgoZy ZepqZRxvMqx5TNoWdLacjk3E7vp5TwJdIpsnS5NzbCDQUHRxCGAfrO9LMHAZ34q2 Y7MK+ct62tW0jBiaXpmVdDoWx7oRqQGydg8hLvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=iTzj/L XruarNxkB4mF+5qgnxYnni345HnB4zzW+dtao=; b=ipJwzUWJtdhmKRNun/ZAsR aMJ+C3uwPWPBTkCIeYbXdnP7phZ9WcW+P8DN8BVA1KwVrMQ23gTZkR2u//dwUCxe YroByIKLA3BfeSthfMMDPhhiE9938ISPW03bEr+VUMke1hA8K47MZwwjS5qjNgwC nZdTmoQIzW14j4XmYLjBHBky+x5jAkzDS1cMOWB+rRgQ4vfmemLCTZU/e0AJLNZ2 KFpmbFSDFxraP8nqzlPITpvd8EHvk+CLYO3fpGbP71hSHvtwbZ5ryeddofpZ42Uy l3jzqHr0Vyg+x15g2PLwA+VNjsJO4BfQzCeKH1m/miWQiELGOZYdZ6fTK4JCKB0A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelfedgudehjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehn ughrvgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucfrrg hrrghmpehmrghilhhfrhhomheprghnughrvgifsegrjhdrihgurdgruhenucevlhhushht vghrufhiiigvpedt X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 78AE2E00A2; Tue, 10 Dec 2019 17:10:55 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.1.7-679-g1f7ccac-fmstable-20191210v1 Mime-Version: 1.0 Message-Id: In-Reply-To: <20191210202842.2546758-1-arnd@arndb.de> References: <20191210202842.2546758-1-arnd@arndb.de> Date: Wed, 11 Dec 2019 08:42:35 +1030 From: "Andrew Jeffery" To: "Arnd Bergmann" , "Linus Walleij" , "Bartosz Golaszewski" , "Joel Stanley" Cc: "Hongwei Zhang" , linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] gpio: aspeed: avoid return type warning Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Dec 2019, at 06:58, Arnd Bergmann wrote: > gcc has a hard time tracking whether BUG_ON(1) ends > execution or not: > > drivers/gpio/gpio-aspeed-sgpio.c: In function 'bank_reg': > drivers/gpio/gpio-aspeed-sgpio.c:112:1: error: control reaches end of > non-void function [-Werror=return-type] > > Use the simpler BUG() that gcc knows cannot continue. > > Fixes: f8b410e3695a ("gpio: aspeed-sgpio: Rename and add Kconfig/Makefile") > Signed-off-by: Arnd Bergmann Acked-by: Andrew Jeffery