Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp385493ybl; Wed, 11 Dec 2019 01:08:39 -0800 (PST) X-Google-Smtp-Source: APXvYqwSwJEZW4EV6aZL3KNzh/1gT7kATGzRaFl3zT8W/81meIP8C82IhiLQG+ScKu5sL6Gm0UH5 X-Received: by 2002:aca:48cf:: with SMTP id v198mr1946354oia.35.1576055319240; Wed, 11 Dec 2019 01:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576055319; cv=none; d=google.com; s=arc-20160816; b=mYuhkUrfubADTCw568YB5xuSbc0J4eq6d4YtXxwjUhU9D1rykJ/q1S0Z67eTlfLesy ciSCQYeS5YtzQ3yhyPQqegYnvXsTBBjiJUeOaOabKF4yTdXq04rHMvWUEmeZvWQ2qsn7 ILr4ZVKBqi+1TS0dTIdNKm5uZSo/kiEbnuZX0iFpVeI5cxMBfkx2iPdKarKcOA4jJxn6 HIEXIbvlZI2HX4h5mrSOCMVcnNJLYMrxNkdOrRwOXOssCyGQmVl0tN616eihQtOH4Vm0 pDo6Pu/QEip81Fv/9SgWpqbP8cG1OM7hMCsYT3HpgwywRFQINHBODH300HFxgriRCQzN Jt/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+1+2OzonF8JaI5zb2TCQGTWjY1hWFqWalCfMdztL7bw=; b=uWYaRMtMj3jG9W6RWGJVfIoJFvU8cUTAQYX2eExhnQvhpJDpDhXT+teuie8BFBpltD 2dcYb+tyttd5wAb2byYcSot53Vja1Pe4p1ppUnGugvR0ZOriVXU7qUJ8roXgQ552na30 oV5HZJn8Ub0NLM+iMsj4HmMWJTHfn95N8ktdmS7mqgtt5f8z/Iod8JMcDmJq9PkoW4Pf O/qnHGhzuATQ1nLS/th288hCLN4LE4wipFUg41y6qJmlRi6JW0XRS5iRC5Wssq7x2emb I+40rnrJSg01n+XYHBga6f5+bYu1n8PZqUn8Q+dXp0G4C8Owzy44/oTjNBLiKQ3u+jz/ CwDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=S60wH1RH; 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 x207si741427oif.30.2019.12.11.01.08.25; Wed, 11 Dec 2019 01:08:39 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=S60wH1RH; 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 S1728381AbfLKJH7 (ORCPT + 99 others); Wed, 11 Dec 2019 04:07:59 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:33697 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727851AbfLKJH7 (ORCPT ); Wed, 11 Dec 2019 04:07:59 -0500 Received: by mail-qk1-f196.google.com with SMTP id d71so11067601qkc.0 for ; Wed, 11 Dec 2019 01:07:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+1+2OzonF8JaI5zb2TCQGTWjY1hWFqWalCfMdztL7bw=; b=S60wH1RHuXQ8mOnPL0RhPKzQIGXltV0Cv9h00AH+VYro56n5frUBSr4jG3994daVvT V+vThx0M+M5TKEPRP7rKgYkWR9SLOxLfctebgbS4/teJyPdNqlqYK9Sqae4OYe3pOZfj RbOKuXYBl+rwcuW9scJiI3DZUILjSRdRChb2cUjEMEG/J6gALdSSdCrSN73Zs+Oaq7Ld ncsVZLJRCCbXDi37Bkc0aQABg2eiqLVtoela5xrLAMI6eSLhlktSHK/xO5UF2xLQLYer yMxhiSsTvhVSoG04ZT4mwPZHx/2a+Y7mdi6v2EwwgKDOC/A2904us+0B2fJX/ZY9l4Bm hO1Q== 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:content-transfer-encoding; bh=+1+2OzonF8JaI5zb2TCQGTWjY1hWFqWalCfMdztL7bw=; b=WbDUtU6ErNzjUKVaZIGCw0XoIXg3UmiMSGI5Hil9Qq6iWL4i4UNui/9Ch444mR0Tm7 GAjIlEg4DUNjNhIrX5quX+3E2Ht3tmvZMFQHJJDx5ppd4ZzJurDDBQxTzhLvgOPlT1H8 pKr3pxR302WRsc32o+fkN43HkqImpV6DQ6VmkyTZRChLCrICISj+E0zPFI3N8gG94fbN h6XYQWCSNwf/0VQsp2RnEF3YuKo8folBm5/CatlEMXV0LpFTx2pl2vDb5Ufog+r8Uhf2 Z0KKqBOgtOpHM1OJnBmqJqQROuV+sr//QX0ruQeIYdb6ElxHRh7eJrCznFZed6ybnBqk N9MA== X-Gm-Message-State: APjAAAV2TzF2PrL1kGDNV00712YkhKTA7ixUktqGSYl6H4e3bprdHgJv hLZAB3cV7t1jvRRcqIRPxz/RqMTexsykW5uA+QTAGQ== X-Received: by 2002:a37:6255:: with SMTP id w82mr1919216qkb.330.1576055278589; Wed, 11 Dec 2019 01:07:58 -0800 (PST) MIME-Version: 1.0 References: <20191210202842.2546758-1-arnd@arndb.de> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 11 Dec 2019 10:07:47 +0100 Message-ID: Subject: Re: [PATCH] gpio: aspeed: avoid return type warning To: Andrew Jeffery Cc: Arnd Bergmann , Linus Walleij , Joel Stanley , Hongwei Zhang , linux-gpio , arm-soc , linux-aspeed@lists.ozlabs.org, LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org wt., 10 gru 2019 o 23:10 Andrew Jeffery napisa=C5=82(a): > > > > 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=3Dreturn-type] > > > > Use the simpler BUG() that gcc knows cannot continue. > > > > Fixes: f8b410e3695a ("gpio: aspeed-sgpio: Rename and add Kconfig/Makefi= le") > > Signed-off-by: Arnd Bergmann > > Acked-by: Andrew Jeffery Applied for fixes. Bartosz