Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp413833yba; Fri, 3 May 2019 04:23:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjypmmrUzqjQmRPhj+QHqUa/QTRhpXbEW50BsgHcLwfagc4OhUymwjz16+qKbvq+lbJRPN X-Received: by 2002:a63:4c45:: with SMTP id m5mr9449907pgl.78.1556882611311; Fri, 03 May 2019 04:23:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556882611; cv=none; d=google.com; s=arc-20160816; b=Q8R3Ph7a7lfAWIX+KQ6mFuWKUbovpvm/fd56uqCA1gHnKEMpGxy9CUfe1isAT2/6pJ kqIilxsdELI0PQHRoVRCBARpdWpJhlqUME6PRycVQSy/mjiG5QNJ1d5G7mO/Jwtszu3o m2M0DSYaO2z73iO2xy2kxaqcgl0OhxqaMF19LQleBf270dFZ+yyN+pXvlkTepxkHOrvV 24z9YXpbm0kG/pHEA5Xz/soy+BAQTcX85a4fsaRAE3v1pNVCTwig0nCW7hv2iPyr9weK EnpN+YeGvMAH2wBPhjuQKSxM5m8cLJUZUjysc43MfzNHRJ8Zy275GkiE0UDbELOEXlEw nRSA== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=oBJ/k/CYgaRk/KRAgEmtXmgsqlvps7f6KTtuvIPe4r4=; b=DNzAuwUjayDeLkPYG8rMyUi9PwGpzB7br1db0FQay+KGJQhcYgwEnQwmGpgMc4btWN qF/tC8ATsaOy1Frh0neUednAYgEOZ3d+WMEdGTF5Bb2EWgxilTVyqRwMPzRy+HWepbfb ASeqLcIqi+Ba2C8zp89IC8XeAuRHGQfQezpDoenNM6cH6nz8C0lwrUBUE7XZxwxGfbtu 6luW2y1VvXawyF5GCCkKjcjXo69Iz814o2j1lKV89L++YCQN01JkDVlosHpIg98rnsoO RatVJ3klRXjYeZZqDRX3jdmoO4jloX+xcrRHXk8pSM+G9weik6c5DrpKOzZMHHSVZ8yF TitA== ARC-Authentication-Results: i=1; mx.google.com; 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 l37si2051854plb.173.2019.05.03.04.23.15; Fri, 03 May 2019 04:23:31 -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; 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 S1727510AbfECLL7 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 3 May 2019 07:11:59 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:50555 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfECLL6 (ORCPT ); Fri, 3 May 2019 07:11:58 -0400 Received: from xps13 (aaubervilliers-681-1-29-145.w90-88.abo.wanadoo.fr [90.88.149.145]) (Authenticated sender: miquel.raynal@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 9D4FF100005; Fri, 3 May 2019 11:11:53 +0000 (UTC) Date: Fri, 3 May 2019 13:11:52 +0200 From: Miquel Raynal To: Masahiro Yamada Cc: linux-arch , Christophe Leroy , Arnd Bergmann , linux-s390 , Mathieu Malaterre , X86 ML , Heiko Carstens , linux-mips@vger.kernel.org, Linux Kernel Mailing List , Ingo Molnar , linux-mtd , Andrew Morton , linuxppc-dev , linux-arm-kernel Subject: Re: [RESEND PATCH v3 05/11] mtd: rawnand: vf610_nfc: add initializer to avoid -Wmaybe-uninitialized Message-ID: <20190503131152.57b4ce25@xps13> In-Reply-To: References: <20190423034959.13525-1-yamada.masahiro@socionext.com> <20190423034959.13525-6-yamada.masahiro@socionext.com> <20190502161346.07c15187@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, Masahiro Yamada wrote on Fri, 3 May 2019 19:36:35 +0900: > Hi Miquel, > > On Thu, May 2, 2019 at 11:14 PM Miquel Raynal wrote: > > > > Hi Masahiro, > > > > Masahiro Yamada wrote on Tue, 23 Apr > > 2019 12:49:53 +0900: > > > > > This prepares to move CONFIG_OPTIMIZE_INLINING from x86 to a common > > > place. We need to eliminate potential issues beforehand. > > > > > > Kbuild test robot has never reported -Wmaybe-uninitialized warning > > > for this probably because vf610_nfc_run() is inlined by the x86 > > > compiler's inlining heuristic. > > > > > > If CONFIG_OPTIMIZE_INLINING is enabled for a different architecture > > > and vf610_nfc_run() is not inlined, the following warning is reported: > > > > > > drivers/mtd/nand/raw/vf610_nfc.c: In function ‘vf610_nfc_cmd’: > > > drivers/mtd/nand/raw/vf610_nfc.c:455:3: warning: ‘offset’ may be used uninitialized in this function [-Wmaybe-uninitialized] > > > vf610_nfc_rd_from_sram(instr->ctx.data.buf.in + offset, > > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > nfc->regs + NFC_MAIN_AREA(0) + offset, > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > trfr_sz, !nfc->data_access); > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > IMHO this patch has no dependencies with this series. > > > This patch is the prerequisite for 11/11. > https://lore.kernel.org/patchwork/patch/1064959/ > > > Without the correct patch order, > the kbuild test robot reports the warning. > > > > Would you mind sending it alone with the proper Fixes tag? > > > I do not think Fixes is necessary. IMHO it is. Even if today the warning does not spawn, there is a real C error which might already be an issue. > > Nobody has noticed this potential issue before. > Without 11/11, probably we cannot reproduce this warning. > > > BTW, this series has been for a while in linux-next. Missed that. Ok, nevermind. Thanks, Miquèl