Received: by 2002:ab2:1c04:0:b0:1f7:53ba:1ebe with SMTP id f4csp105043lqg; Fri, 26 Apr 2024 09:56:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWAV6e6wkvf84aFRnLgMvPqaXHz3M/rqYyWqGFgoT12QcSIS7xVTk/Dli2an8N7eNHo+cjX13uqUsPSKjedFqgpSY7Yd88VI31erPjvpw== X-Google-Smtp-Source: AGHT+IF7yh8fxOMwxmU/3NutkIdWCi8PwjX17nj9JrPKZ0XP+fW0UI88w36WSb19prGyHxlZRE+o X-Received: by 2002:a05:6512:3983:b0:518:d5c5:7276 with SMTP id j3-20020a056512398300b00518d5c57276mr2480096lfu.58.1714150580536; Fri, 26 Apr 2024 09:56:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714150580; cv=pass; d=google.com; s=arc-20160816; b=QbjtBzfi4tpIwFhG+KEga6qLwGgBO2XV/mLHfS2eQHY13ASehfsrkBKlvtHeqk44zj Yp4kXlKx6pD4HhSZg9vXsELjNNfqD+k3EV8HA8nwy0+nbPw0VU08eFOFOLrVtzyxFynO dLor7h0OWr8SFzPZMlJmcqY8H80pZSBOzFFdUSNxxiVj9fRzgvw9Ris996kkz+ygN80W h4TSRFYERR2N2tBId02NdtZBie/xm3VCksOl4T17tRSk4GR+Sj2x/r+G74lRiSJrV5n2 LC16jVG+HRldGJSA+3l5vMzx40tdLliCoVCKpxPrOPSuSfhQ2Rzo3pbYabWC4Eay6LaG a39A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=2MwB5Fq1HmaIKdg3eoQn60Wy24Ew40aII4ZEPUMroLs=; fh=g0QHEhAqqyL2eyCUpztupqrfFPXerTf1vBaV5HdQAGY=; b=RdL8TRLw0q7hUxe7lqr1aEPcs1f90i6UZOFY+y2TNsCNVv4HHQ+gojv+YTMlGGlneg tY8BkAIBRdaZgNTk/2RtOlpGvxhR6hVJc1XX9iPEoZTJfMSHbZq/VKAZ/wlVy90NJocL BgFmdyuPEaPiKoiQRzO0zwGW5P8rMEYYcrxSbRclyNHinCf5sres19t3a9PT/OfdXJZ7 CFralJeRWvc7tmmH/z0MRFoBl+t7yXilu8zOJV9+8uN1yuQ0N42OYD8fYXlX3f4BfWNu dVTP9p1Jv/Zc/0rjNKwnJKZSOegHwezEtknajxLMN3HmsfwmPzJFUH17fcGx38/yIzWB 2dsg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mY6BCuIo; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n16-20020a170906165000b00a4e05accf57si10488464ejd.789.2024.04.26.09.56.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 09:56:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mY6BCuIo; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-160415-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 426341F24D56 for ; Fri, 26 Apr 2024 16:56:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C54D1591FB; Fri, 26 Apr 2024 16:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mY6BCuIo" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3169E2B9DB; Fri, 26 Apr 2024 16:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714150570; cv=none; b=hp/JhL+VSSMvnW+x6SALxa5bUO2T3md+asV6bFExFf/KvZ+QQCdp0fH3Td50RnapsZ5xeMaXV4EnL7yPggM+ZecgKUEa8Fbq6yI+uNv6dCan2kzwV6kOpT4gKKNHoCYVHD3IgEdyhh6dXgRd+pcEjQMp7eWaRXJOcNp+TpSHE+c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714150570; c=relaxed/simple; bh=fI4cB/S+NtwgpOy3l6L+Ecgwll4Y2dQBqzwftAOhHZc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PtMp9hbV2jd2pRLyZJnhcRQNc/zxUYfJvGjL6dK3e4uj4/+DkWPPQtbzkE1Wjk2utOGV+d+3AQsxTCR6PlqK+3XHPA+2vX23Vs49e67wrnFj0RuYPWDemHEslzViBh5A4lwIE4tG+wClS0Y5sEDXYIHwMN8wZ3wDZ72eaFM5OwM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mY6BCuIo; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714150569; x=1745686569; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fI4cB/S+NtwgpOy3l6L+Ecgwll4Y2dQBqzwftAOhHZc=; b=mY6BCuIoSSpJ6J9UHwE5FvIZFQq55cB8zdh5/K8E3lduQxqZaGbnm1/t LBeRdX5O9oYWrHIHyRbPR8HJNv6I9p5ORqs2sU9TZ8pPF0gDM5aHSodzg 92lHWBcVgiouvdKvaEhHP16Ph5VwOzJIw7nSo4RbMAL6yuHzPpk0uVvk3 WQeenhFvegH2gFBLWBaOdFRc+j/mtyZYCYsvdxStV8q+xn86sjgf/fgA4 pDcjvQLHs9sxtEHaNZxjGI6+lY8m/ubWnhceJYQ2OMsof7z3Yj7Tiy72w EjDgeo09DqmRQih9td7nqtfHHvrjkh3kOvBKqsxC7WrJIrr8fTMiHMBw2 Q==; X-CSE-ConnectionGUID: ZOnLBFr2R9+9caFRESlEOQ== X-CSE-MsgGUID: yC5AK/eXRUqZ6wxBJ2hiiw== X-IronPort-AV: E=McAfee;i="6600,9927,11056"; a="9770181" X-IronPort-AV: E=Sophos;i="6.07,233,1708416000"; d="scan'208";a="9770181" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 09:56:09 -0700 X-CSE-ConnectionGUID: fJOhKm6LRDuwqXGOF8aIAw== X-CSE-MsgGUID: fyD+yvKDShm/GyVoALzuCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,233,1708416000"; d="scan'208";a="25434053" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa009.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2024 09:56:07 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1s0Ork-00000001Ohd-00Zn; Fri, 26 Apr 2024 19:56:04 +0300 Date: Fri, 26 Apr 2024 19:56:03 +0300 From: Andy Shevchenko To: Jason Gunthorpe Cc: Leon Romanovsky , Konstantin Taranov , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Long Li , Ajay Sharma Subject: Re: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error Message-ID: References: <20240423204258.3669706-1-andriy.shevchenko@linux.intel.com> <20240426163719.GA334984@nvidia.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Fri, Apr 26, 2024 at 07:50:41PM +0300, Andy Shevchenko wrote: > On Fri, Apr 26, 2024 at 01:37:19PM -0300, Jason Gunthorpe wrote: > > On Tue, Apr 23, 2024 at 11:42:58PM +0300, Andy Shevchenko wrote: > > > The compilation with CONFIG_WERROR=y is broken: > > > > > > .../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] > > > if (!upper_ndev) { > > > ^~~~~~~~~~~ > > > > > > Fix this by assigning the ret to -ENODEV in respective condition. > > > > > > Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1") > > > Signed-off-by: Andy Shevchenko > > > --- > > > drivers/infiniband/hw/mana/device.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > This was fixed in > > Hmm... The below patch had been sent _after_ mine. What's wrong with mine patch? Oh, my... Sorry, I missed PM, it was mine sent after that one! I guess time for weekend. -- With Best Regards, Andy Shevchenko