Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2030975pxj; Sat, 19 Jun 2021 00:39:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKxLjwneI4eKKTLqqGhN3lZDs5tJspPXjW+2H2OTnC+NCep5n540xeWhJq8uPzfMcq2iAu X-Received: by 2002:a5d:87c4:: with SMTP id q4mr10681050ios.141.1624088348455; Sat, 19 Jun 2021 00:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624088348; cv=none; d=google.com; s=arc-20160816; b=gG/44CqM1gLAfoAWSQxtGylMifoZHCLcGLcZ3shCSFnZI/eslMpgYWI1niEi1DpMcG AaK95iPaUc8LKWjAV4o/Gobp8JN5PKfNsYrYlJEy+sjhu6+3VtCgiqCVqxAXQn1jynWa dUlIi02QIF6nb8JmwipLub2ccGoPt8BPxFaxrgMCeCuUaQcg7qZBitsg7Dmz9YrNtRYG HgHrPOsn67mROJI4GaxWT02V2MmK42qtlGRYK0lwXrrrCuD6boTY+a8JCeGuGU/cZ0VL OqFAa2JyJh6bDOpoYGR/aPbgYXiimd4lMmWjkPaYQvnmt4mSkqDEAY3C0Qyq55uTkOuD j6Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=QBEReQMrLJnmJ7k9QX7jY95T5VJ5V7GviHdKGKUsvvg=; b=NyHixG4Qw9UwQxOjpqo2q0ybNTkKcQYlDRA7RbEjdi7wzWcTifpP0pYfMauyWIiZo3 p1xYIl4cBthd8Yqj3x8CZNXo6b10yo/wBkUHejk/m0NMORic0+C0IkKna9ze/83zq5Iy jarVrpR8S6sbmwGuipCt7N+XscvD8m+rWgwL3cjzK3gGw2f5NskWk77+tEMK4YU/jvl8 +kRNmyi8mt/OwYF/C6V5PPOV0EbcIz44+SIpPWgJqpsz50Y6diYtas7iO8cMRRL9ptS1 rcmhvZkL2sJ646/yJ5jVDcI8PRub6/jJVAp7HAbxjzHKUyVo1xcSJd8NTFpXRvhJyAbx diSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tII83pBL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si5224215ilj.140.2021.06.19.00.38.55; Sat, 19 Jun 2021 00:39:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tII83pBL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235063AbhFRWyj (ORCPT + 99 others); Fri, 18 Jun 2021 18:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233892AbhFRWyi (ORCPT ); Fri, 18 Jun 2021 18:54:38 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A545BC061574; Fri, 18 Jun 2021 15:52:27 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id x19so5464440pln.2; Fri, 18 Jun 2021 15:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=QBEReQMrLJnmJ7k9QX7jY95T5VJ5V7GviHdKGKUsvvg=; b=tII83pBLIBi/2wESwabagm4ntRSICChI31q+bE5qSHQG5f7yiBn50dgPVAlj5aCKh1 0jYbWVMv1YTdVCIX1p8RtnSpdyog/uMidDqhFQqy1qsfcQNfT6Umb0KP5r09Ssbiy9hi 36UQU+RxnvDCvoR6e3u3ln6f5TT7HshoMTQMbQcshMnqPkc97sSDDbfKuE91jHn2BHE5 U/G1dQJHpoEzoE+IdwtK6/DsfHSsR2XJKoUbXs+wgXsW/6OC3DyUIC1lhK1bhnARk4cI hO5B/Gn0qEFgn/aqwBT88zAL1ZuhfRQiX55hj5c8EZg/5U8iKgIz3O8fcbxw5Jen+Jgn XRAA== 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=QBEReQMrLJnmJ7k9QX7jY95T5VJ5V7GviHdKGKUsvvg=; b=suJsmNyjxW1xPacrMGtEDvLuXpkadSjBNC/p2u0l0wdPMNbToKn1xG+Yg0DvFZjTFz xwxDJvmGBDx6zD5WYaiMeQ4DvPuXuoiF4xbwTwiqOi0tlb9NI4k5fofOg5Q70tAkFkZO rQ9h3moCWn7GNCEmznq5pNKJk0aAmiOOoLHawak9SyAjCOXJVXvcE9d13vRsjIh+L6Bp FeCWy+GI63LIFrCRcbeDj23mE2+cnymio05WHVN3bHju+88JoSFC19ACHjajCLnf3YOS lI84JkEz9edmWINxQcC6RGE7ByGfEzyHAaMfXFKU5/UD++IJU6T62gBBrhXkuOfQ8JYZ aqIA== X-Gm-Message-State: AOAM532wh5JFbO2yZy384fhxwFTfhhkb57HMQ89FzQBJ5Itpm5DJA5DC nXLCcA3TcyllkWwBEzaV2HOAfjlYuBM= X-Received: by 2002:a17:90a:ea0d:: with SMTP id w13mr16079475pjy.51.1624056747314; Fri, 18 Jun 2021 15:52:27 -0700 (PDT) Received: from [10.230.185.151] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id g8sm10218823pgo.10.2021.06.18.15.52.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Jun 2021 15:52:26 -0700 (PDT) Subject: Re: [PATCH] scsi: elx: efct: Do not use id uninitialized in efct_lio_setup_session() To: Nathan Chancellor , James Smart , Ram Vegesna , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Nick Desaulniers , linux-scsi@vger.kernel.org, target-devel@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com References: <20210617061721.2405511-1-nathan@kernel.org> From: James Smart Message-ID: Date: Fri, 18 Jun 2021 15:52:20 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: <20210617061721.2405511-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/16/2021 11:17 PM, Nathan Chancellor wrote: > clang warns: > > drivers/scsi/elx/efct/efct_lio.c:1216:24: warning: variable 'id' is > uninitialized when used here [-Wuninitialized] > se_sess, node, id); > ^~ > > Shuffle the debug print after id's initialization so that the actual > value is printed. > > Fixes: 692e5d73a811 ("scsi: elx: efct: LIO backend interface routines") > Link: https://github.com/ClangBuiltLinux/linux/issues/1397 > Signed-off-by: Nathan Chancellor > --- > drivers/scsi/elx/efct/efct_lio.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > Thanks Reviewed-by: James Smart -- james