Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3887184ybc; Thu, 14 Nov 2019 16:40:07 -0800 (PST) X-Google-Smtp-Source: APXvYqx3+1PHbIysiwd5DFEEPXw4UccaBud/5DAK+RFSbtsvGNR/PZPJFUGkuvpIMpaHQCs23t/k X-Received: by 2002:adf:dc0a:: with SMTP id t10mr11786488wri.138.1573778406965; Thu, 14 Nov 2019 16:40:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573778406; cv=none; d=google.com; s=arc-20160816; b=MwlhVLYSkWF8JLhhxXVbpQKrIKgAbaep0k4V+gfpxYR/JyjSNqtHYg5j8ACLCXHD01 dSoVNZBqNF9nHfKcFCgxKcAISPmmURRmkJ+d7ZreQTRTPTDf2sCaK6Oy+pJ3KqzoXWo9 7cMRc8utNXy7dQhjv1bNHfcbKWhOWkJWn1WIt+GY8NORdwYssyNz6zXhJUO1rZybuiWf Xjh7uOyptGDd/Qbv7ZnsDebRYmB+xglt0dhC/HUKPH536/9/FBigLFoMRW/3gopGGb0f fzmr+IWwFCDzOKYXs+u4drCH+mZtPy1oSPXUCKUZRpvTlBwsOPC8D87ZxFC9rvLvR6yw VI4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=V+xyAyokSVdG2YJZBQsiL4UYdt3E6o24h3s6g0fTDHQ=; b=ici6ALK6DL2vHQX3Tm6CSzmx4ROaqmW4elAmgjLZrV3suFxh/AJF8Sn0SiBbhyjMqR 3Ub6EZUuSd3IVYSLhhy7uRYBnbMtp9OtRxoXCRdeKVRsAYhaRVpNHk/Ch8t+EyMkMk5e ci1tkz5klZ4ynQke0PcQ4NAE3yBMRNsbGrkGBMfakHDw7RnHdHnNe1ebVkad39gxZNGY jmSZJPTL8yDWb3I3YhqqU56iksqzLKvXCLe2+GgKOycctm0F0SFcRv69ONvbE8vK5IUQ oKOPJ8vN59En0imKxDEN/Li7sHBubzjcXyDYqMJFGD5ImfKOdBMNKVnNRQFAjL5QM4+6 T0BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=alMS8Avt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si3242482edj.310.2019.11.14.16.39.40; Thu, 14 Nov 2019 16:40:06 -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=@gmail.com header.s=20161025 header.b=alMS8Avt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727142AbfKOAi2 (ORCPT + 99 others); Thu, 14 Nov 2019 19:38:28 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:33383 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726852AbfKOAi1 (ORCPT ); Thu, 14 Nov 2019 19:38:27 -0500 Received: by mail-wm1-f68.google.com with SMTP id a17so8833043wmb.0; Thu, 14 Nov 2019 16:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=V+xyAyokSVdG2YJZBQsiL4UYdt3E6o24h3s6g0fTDHQ=; b=alMS8AvtcH2tnUO26K5nS7zSK+98v4P5mFBkv5HzrpQRFZdrUnC08/d/o+dCvZF771 PIxw8+RRGzhcv5JtqMhmNFK00a7GHIvyNyHTmJs084SQkIENknsGDyc4PuV1ARIIeqSB ztUx3sBVVVX/MJScjB/cJQknV4L1rNX8tWcFY7qb3MpX0EUOpFtT7YCkp5i9Rr9iZFbc 8npg3kUuCrQ7lVnCaivW3205Pj2eKwC/fXKO6Rd427N2IIPs1BJBVh327D4JM1GG/RqY ueb40XzyXltLWlprmaL0Eun06GDo1jZ3JWyORxThL/yCXFXzPoAUqbgzPF8FlCHAeLYF v9eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=V+xyAyokSVdG2YJZBQsiL4UYdt3E6o24h3s6g0fTDHQ=; b=jTJWD5dyOzO2DErh8K4cAYUyf53XZjqieqE0KjJ6U0ST9asHLjhC6SYLLIJA7fhdDC DF3759Fo9EWYE0WnnNVQZ0iq/jzEeROyPwKLBWa7Achg6s5jjCcZWAFgN4VHlDcUyY+J ffIQjIWIs+o0MXLQ5XNzTeQzppWeIKFrMm1jQxXHnKs9EJR7yxnrLC8FEueDUA6Fn9TZ 7sqoEhcVQA9kMqxr2k9Z97lOVCdDg8dLu571ddzbtf0OrTr4f/G3XWemv4C/oEE2DF+5 BXdQK8g4ycTpOc79tVq8SMkR99b/ykrf7PRrAj5aCqyZACFiomXJ4oZmZ69H5cp+02De LITw== X-Gm-Message-State: APjAAAW57VIqgpBdYFts1w4Zu7c/X26h0DTo+1XFswrA9NbPjCCNA+Nj 4dsyV3hJuyShS+5wtk5vvJU= X-Received: by 2002:a1c:64d6:: with SMTP id y205mr10714765wmb.136.1573778303928; Thu, 14 Nov 2019 16:38:23 -0800 (PST) Received: from ltop.local ([2a02:a03f:40e1:9900:b41c:b7ad:6b56:89fb]) by smtp.gmail.com with ESMTPSA id g133sm7856389wme.42.2019.11.14.16.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 16:38:23 -0800 (PST) Date: Fri, 15 Nov 2019 01:38:21 +0100 From: Luc Van Oostenryck To: Alex Kogan Cc: kbuild test robot , linux-sparse@vger.kernel.org, kbuild-all@lists.01.org, linux@armlinux.org.uk, Peter Zijlstra , mingo@redhat.com, will.deacon@arm.com, arnd@arndb.de, longman@redhat.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, bp@alien8.de, hpa@zytor.com, x86@kernel.org, guohanjun@huawei.com, jglauber@marvell.com, steven.sistare@oracle.com, daniel.m.jordan@oracle.com, dave.dice@oracle.com, rahul.x.yadav@oracle.com Subject: Re: [PATCH v6 3/5] locking/qspinlock: Introduce CNA into the slow path of qspinlock Message-ID: <20191115003821.raskzlj7hscz7vax@ltop.local> References: <20191107174622.61718-4-alex.kogan@oracle.com> <201911110540.8p3UoQAR%lkp@intel.com> <58623E4A-973B-46CC-8FA8-29E68DB5EFF4@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <58623E4A-973B-46CC-8FA8-29E68DB5EFF4@oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 14, 2019 at 03:57:34PM -0500, Alex Kogan wrote: > + linux-sparse mailing list > > It seems like a bug in the way sparse handles “pure” functions that return > a pointer. Yes, it's a bug in sparse. > The warnings can be eliminated by adding an explicit cast, e.g.: > > node = (struct mcs_spinlock *)grab_mcs_node(node, idx); > > but this seems wrong (unnecessary) to me. Indeed, it would be wrong. Thanks for analyzing and reporting this, -- Luc