Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4208269imm; Wed, 30 May 2018 00:55:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJUl4Rojbh+jXg7riiDvx819TrdmxY1jG/7H6JmPO+FmSne80wls22bWn2U7hInOcUJqWvn X-Received: by 2002:a65:5144:: with SMTP id g4-v6mr1383451pgq.445.1527666945920; Wed, 30 May 2018 00:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527666945; cv=none; d=google.com; s=arc-20160816; b=z1YlODPCuoeV+MlR18CtPKgfroXpYdMDFDJJ1zEfb7Cp3cwqDBjG1ypA5E9CDXXkfI hs0NpXazHk1y05faw4P6MUemkUkXXRSUkT9TL228RheQAO4kgEE8WDedS2/pu2D2DIuI S//gV3ZcnVB5+zL6YsX0SkV7Nt924tnF36okIK3QiWKnNOR2Gr0eWBAqfiQgPr5sHjZZ qz8eUhYx1CDH/+kcEXe2cWb1qFebuPuJqQqyP4aCH1EABt4e3f2KNsdReU/WBNlqYP8f +Q0InB9vHMa6UNYfBvGiH2TZcXSPx85Ij+R4comtL2NLvx8hHnVnjWv0Z2zDbXVRmBuj SBVg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=c9Sj2oOGr2bPbdmLuWkTkq+D6KOaNRZOk8mTb4aKkAs=; b=d/PkTQmGbCz/XJdwHZO5g/kHLfYdTXr0rPD2ihfDWILZ14AeRTBkkPNZI7yZtuJlZG nRQY7YXqKAB9wiU976wAfmyKTLlgfv6gHKebUIgPWkZKNls5FBEiB5aTyR5viCKm9gD1 +QcTyC2cd22fdMxwpIhiHs6em58zeUIxTcopUd/y0j/KQ8zVmIjxwcyUqGvL8PVl2Upu RdVFfwLPp83OSWUTwg62sKcPkb9t5UfULnm36rA0Xc/4f1qPqUIN4JlVJP2jlVeFOgfi ldYMVozLVBSNFxFAK4d5jkgsVhhpJ0hToj6gsXwABbJHDRC3MTCvlXIwriVu5AfdsocS pktQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=ADmk56Xx; 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 x67-v6si33655770pfx.216.2018.05.30.00.55.31; Wed, 30 May 2018 00:55:45 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=ADmk56Xx; 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 S936081AbeE3HzH (ORCPT + 99 others); Wed, 30 May 2018 03:55:07 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:41003 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935164AbeE3HzE (ORCPT ); Wed, 30 May 2018 03:55:04 -0400 Received: by mail-lf0-f68.google.com with SMTP id d24-v6so2792882lfa.8 for ; Wed, 30 May 2018 00:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c9Sj2oOGr2bPbdmLuWkTkq+D6KOaNRZOk8mTb4aKkAs=; b=ADmk56XxNZbe8pnQgg4UOeItOFqFXRJabSsy9EbsqVIO7xhRoAQf4b1lT61B6x5NFg KmU+tnbkQuIWQIrF7u8gvZ5prnJXYcyGNSmMRdpq2YSvHitbLu96mnE3g0Iw+QgBVu7H LofmEB3TDGJ8REgKcZh4k9j2/LzJn55dzaXdtsozX8s5T0sX4v9u4bjxA4EbR4zOdn05 CT90WsHfM7vJlUwpYRR5+sBesvLgB7F5PtSByQEKmGJaAJEaKf4g54no67og3s7ml7WU 69E0tmTpa1gP0ylqpBmeRrd1Jc/PfQRmEFxM/Q2dx9uKJQHAYWTCnrHHu57mWrzAe5q6 u8ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c9Sj2oOGr2bPbdmLuWkTkq+D6KOaNRZOk8mTb4aKkAs=; b=cjFix9mkgHfn7WGGDZOstwE5OU+vqMq5JMDbDyJlyGb5G8Al6og32l4GHdO+SeFin+ A2b96Jde9C6gRQnSd5Nl4vL4QmNTj/eRfEBBQSL8ixUMsaKCYjyQBMJ0FTBKDTXNn4tx SZZPUSC7sa8ivNGFvXGAZYGeEdBW2cVv0bCAiOXLoPF9i8UQ5YNdXaSIeJ0HHUailDtI EtspXhUkchA4dXCBUKWsP1I5Uoi7Qa6Ijwp1ZsyZvrocRiLGuYt5EtkWlJw4KTuTi52U 62LXEH7F7ljTFwreMfb3Z4GJb0cN9iNE8oqUtzR2WZB0pAxdHs1bPseKN7uXtHgNp4zQ p+jA== X-Gm-Message-State: ALKqPweZDFODYWAXpc3yCyNKKXH4S3QLJwk3odlYN8owGcuTXV/v3ZDr 07Y7aKlloHDZAj1RcIRvma5NHPj9rkI= X-Received: by 2002:a19:9390:: with SMTP id w16-v6mr1055309lfk.70.1527666902882; Wed, 30 May 2018 00:55:02 -0700 (PDT) Received: from [192.168.0.126] ([31.173.84.142]) by smtp.gmail.com with ESMTPSA id x72-v6sm1935485lfi.52.2018.05.30.00.54.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 May 2018 00:55:01 -0700 (PDT) Subject: Re: [PATCH] signal/sh: Stop gcc warning about an impossible case in do_divide_error To: "Eric W. Biederman" , Geert Uytterhoeven Cc: Rich Felker , Linux-Arch , Linux Kernel Mailing List , Yoshinori Sato , Linux-sh list References: <87604mhrnb.fsf@xmission.com> <20180420143811.9994-16-ebiederm@xmission.com> <20180420145514.GP3094@brightrain.aerifal.cx> <87h8mqo6at.fsf_-_@xmission.com> From: Sergei Shtylyov Message-ID: <8a890c7c-771a-2f10-6dc1-145a9f75e48a@cogentembedded.com> Date: Wed, 30 May 2018 10:54:57 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <87h8mqo6at.fsf_-_@xmission.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On 5/29/2018 6:00 PM, Eric W. Biederman wrote: > Geert Uytterhoeven reported: >> HOSTLD scripts/mod/modpost >> CC arch/sh/kernel/traps_32.o >> arch/sh/kernel/traps_32.c: In function 'do_divide_error': >> arch/sh/kernel/traps_32.c:606:17: error: 'code' may be used uninitialized in this function [-Werror=uninitialized] >> cc1: all warnings being treated as errors > > It is clear from inspection that do_divide_error is only called with > TRAP_DIVZERO_ERROR or TRAP_DIVOVF_ERROR, as that is the way > set_exception_table_vec is called. So let gcc know the other cases > should not be considered by returning in all other cases. > > This removes the warning and let's the code continue to build. Lets. :-) > Reported-by: Geert Uytterhoeven > Fixes: c65626c0cd4d ("signal/sh: Use force_sig_fault where appropriate") > Signed-off-by: "Eric W. Biederman" [...] MBR, Sergei