Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4832639imc; Mon, 25 Feb 2019 11:55:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IYTk80MH5zCh88m51HTfcHKPjsWhmcfCI38NdmioNXxzEq9OEZhn7Qk+CTzolg06uFo0XqQ X-Received: by 2002:a63:e10:: with SMTP id d16mr20606912pgl.148.1551124501182; Mon, 25 Feb 2019 11:55:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551124501; cv=none; d=google.com; s=arc-20160816; b=CqZrdGb2YLR4eC9o2zm+fVsxemyPXoQF20T8FP4UNRPyBC+kklo1gNgUV7ypXgok78 ZXpm4Ubzp7vtsVXGxjpBzEPyHZvLZ8fTBep+m+oQHjWerNoQDv6adzXi5o5OgN78qKEU BTUXj8Pd92rF2pHllygn5DoSb1vt6XA5Q2lYalipkHDwhawpS5+kTLrBvybvgZnVtMSz vHRwjYHxppUjM11aC6SBbl3sByMXzHylsZg3ecfjv4/GHvesl5pvYDkdxnV4TrtOL98j 3UP+UV0PnUagU7QZpElNNjuu5AVW1i2/W9iRf4RIBH3gYmLEOV4zXleABN42AyATQNAt 0lHw== 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; bh=NMjSLSh3kp6WB7h5Y9AuNjxZZ/9KcGlk9e4LZplkaBE=; b=BaGtqgbogGB1W5Guiz+mBU91lRiXnhV7MQ5cckAzahEYFzh7okeJweYN2QWE8QGb1r 1eCINK8rX3Z6ACvUqaStgb2bWYbNQI7pd61YjzEZKgjg0hayAudHzhkWBpJUmqDmMksw 19lvTMpBT7BxgccumWSDtey/0+ulYsPzSX2HCxYxZLQkVV9cHDqncAvR0qbyX+RZQsSs eFabnOHCHgxvau/eoOcfRNcjnneQCdscBb2srmkl+k4FX+BKfNmFJmUxbD+dNQouk5PC AeXnjdQZI7/cU6lRhidAulTJBz5BUOSI5XDpTF+dUMdWjXUryJ2a7YG8iuip4h71FbQw IIEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=F2Z1siwE; 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 bc4si10096448plb.119.2019.02.25.11.54.45; Mon, 25 Feb 2019 11:55:01 -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=@linux-foundation.org header.s=google header.b=F2Z1siwE; 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 S1727077AbfBYTyP (ORCPT + 99 others); Mon, 25 Feb 2019 14:54:15 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36734 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbfBYTyN (ORCPT ); Mon, 25 Feb 2019 14:54:13 -0500 Received: by mail-lj1-f195.google.com with SMTP id v10so8578585lji.3 for ; Mon, 25 Feb 2019 11:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NMjSLSh3kp6WB7h5Y9AuNjxZZ/9KcGlk9e4LZplkaBE=; b=F2Z1siwEJ5qc+oOUttqdscrbgsALxm3T8O/vOxq1if/vkdiJLNLY86YME4c917bI82 VuttugCNtmEi6CzrZCyPzZLzA/YktR8+oMz8EO3tK0dR1oz/n0g5BVMz298PkeUDRdxt hV4MfN7wOXi0TdMHZ+OTZiDno30IadTVuUOOI= 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=NMjSLSh3kp6WB7h5Y9AuNjxZZ/9KcGlk9e4LZplkaBE=; b=nuf37DyTa8GJrh7jfAYs0R3r8Qno9Pmfx2i5e5hBhSjoHyTSnOoElZ3e3Pl2rkzoAr h3oqdIPQlMd16u9DkIjmWFGSdLcZXopaIhwtu84SCoH13MebJtDvGtSyxugeRKebyY4J BuVTzLyUNbmdVl83D4GbxmbS/VPWN+fTt13JroBEzyEJnV9FBlvoO/dD1kcI2oSlwl/O ZqnHQrbffncrF9XLU0ze8XWTK0nYl8XEmx0KpVFPHMWc8iI74rHwPuBGG3oUPmpNemjw v/pf3juL/iwNqW+UliW+niVojfSOwKWpQ7AAIqOKXPo3FEZGIQH1BCzpr1rCzXQI/IeY Q2Dg== X-Gm-Message-State: AHQUAuZL5722kkU1+J9Uf/VQDy1nMr64ht8lTP0fQedsBIWFtMa37yWE 0EX0ccOYZLkv5SciaPPQz4OK1+tn5PM= X-Received: by 2002:a2e:6505:: with SMTP id z5mr11037489ljb.180.1551124450478; Mon, 25 Feb 2019 11:54:10 -0800 (PST) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id u3sm2489522lje.61.2019.02.25.11.54.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 25 Feb 2019 11:54:09 -0800 (PST) Received: by mail-lf1-f46.google.com with SMTP id h10so7798460lfc.12 for ; Mon, 25 Feb 2019 11:54:09 -0800 (PST) X-Received: by 2002:ac2:415a:: with SMTP id c26mr11947222lfi.62.1551124448787; Mon, 25 Feb 2019 11:54:08 -0800 (PST) MIME-Version: 1.0 References: <20190221222123.GC6474@magnolia> In-Reply-To: From: Linus Torvalds Date: Mon, 25 Feb 2019 11:53:52 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] tmpfs: fix uninitialized return value in shmem_link To: Hugh Dickins Cc: "Darrick J. Wong" , Andrew Morton , Matej Kupljen , Al Viro , Dan Carpenter , Linux List Kernel Mailing , linux-fsdevel , Linux-MM 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 Fri, Feb 22, 2019 at 10:35 PM Hugh Dickins wrote: > > When we made the shmem_reserve_inode call in shmem_link conditional, we > forgot to update the declaration for ret so that it always has a known > value. Dan Carpenter pointed out this deficiency in the original patch. Applied. Side note: how come gcc didn't warn about this? Yes, we disable that warning for some cases because of lots of false positives, but I thought the *default* setup still had it. Is it just that the goto ends up confusing gcc enough that it never notices? Linus