Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp621346pxa; Tue, 4 Aug 2020 13:47:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdxPkb2peii4BX9f39gOVDz+vZUz4m+O4ZXl+dQWTT4RIxNQCBGYu73WY71dHzN7Sr+/T0 X-Received: by 2002:aa7:c049:: with SMTP id k9mr9577454edo.55.1596574034285; Tue, 04 Aug 2020 13:47:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596574034; cv=none; d=google.com; s=arc-20160816; b=wQS3A0rsEmEQjw/DxV2ia1L0BsS2UgN2EEoe+OW4YTwQw7g3VpkbHmb1kh2wKf6htG v4gMxm54pECmXa6K6tlvTIgEFNtrK/wXzXS91YXB7AeJBbKaOc3X5erOUg3RzIIsBZjV VlFbMc5nbBGVu5UYRIVo0GO5YyawIAsBEXuyOtg9yietZGT0JtbvoU4iwgeGHBz/mlY0 GOL5UqB5MtmCYrXv5heIqG0V1FMK2I0FhgsQAMwwOBjdCpEVSwfe3LPduVCRO46OsZSC AoqgEyUHqYAEbLG/sRkIgNrONN0dZT/auBVbfva+mkOC+bceiPNiO8eqkSwHCkjTRouX jU2Q== 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-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JkYcaggsGpcDWWPmcXd4JLlQeabzirm750hdjJEVhuE=; b=c2v3LihKbNjGS8EpLT4ldF2Lf4SSfPX1/7pnfwQ4Un9P7Q4dFN5+Q3lDvsFRr5JX4l zb3Rl4g9jr889D/Jtb8R0b5mir4CN9fPC5fb3J/7YnEJTKzxOayVATZYNKDK4zRY6V8L Gt71FCJmV5CKGEi28OZqGLB4OFLr2GftVsQSZdlHSHdPuG2COGkotBFVB37V4HJ56nC2 ajypPXD23KeqkrNWw9x38Bj90BfJKsZkhNX9lVaIuZ0SscKpNboYIMN0UX4txT2LAS78 PRWCMpKlezsaoedMllUn7dGlIVgU5LFx8ggsknS1Ui0ZXChIur35yS+LYmeR9ypkBfhs sUOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NFg4cddv; 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 lv10si4576753ejb.522.2020.08.04.13.46.49; Tue, 04 Aug 2020 13:47:14 -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=NFg4cddv; 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 S1727873AbgHDUqO (ORCPT + 99 others); Tue, 4 Aug 2020 16:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbgHDUqN (ORCPT ); Tue, 4 Aug 2020 16:46:13 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 88321C06174A for ; Tue, 4 Aug 2020 13:46:13 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id m19so3438696ejd.8 for ; Tue, 04 Aug 2020 13:46:13 -0700 (PDT) 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:in-reply-to; bh=JkYcaggsGpcDWWPmcXd4JLlQeabzirm750hdjJEVhuE=; b=NFg4cddveDkJRaT1O3RuBGLGAnrKH5WS9QKSCol+urjsTiuPILUDsu2qHvIeGvmLZ7 AWv+dqZp+ggBIBhCmlj/dhWBVfER342c908cQgR43cNevS278v8mPTqDnS7tFQPPI5ww 0GTMHUZTW6oF7Vwz76ilfFm73ybFJNJ6rEwTxyixKG7b6bq1YJt4kSLY9n9xZOkm9GsA Ms3trDIpC1buR1fQsncoCu5fBb+/ZfZTnIFQ2mKOkNppcVA5uH6Iy+VT47X6Eph1VOxy 8xECIF/WyUUaRndvro2duUlC7pL0ilZAE0eC7zsuhY2oRYLgdwQDK96xLtZRKCd3F+U+ PQuQ== 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:in-reply-to; bh=JkYcaggsGpcDWWPmcXd4JLlQeabzirm750hdjJEVhuE=; b=H633OVK6WmSZ9YRbaYLGO7lyJ9Ox0VpbyMh4dq4i2Z/HxN1kM3MXGOkPrJ+6tbILqT E8c9wPErNuUjfySu8Xqd48+mDmAaf7xXiUzbzfVr5txdyJ74/dYSMQj55G2p2yYXO3EO 4TSnHxoyZrwJFlrQaTC6H7bfHNxQwkWIdQdov3q4HlObraJhLZITW61SDdaL063EhmRU MV+wtCohhTwbrRzpljV4pTGf/WVqxTZsN/XB1bdijn5qnLnRlDxeUkGzeZTZAGVV70VH yR/j2Je7KCUKYlzWm2j9KG4pKM7cDKhYyrj8r3laEjCOPsnMGKds+eTDz7a8m4XzEWBR qTiw== X-Gm-Message-State: AOAM533t7t7xe0E9/MkSffSFtlO3E06U0OthGJOl7NNEJJrqq1bC5gdU fZgCjQcBMzh2V3bBCRZVm6Y= X-Received: by 2002:a17:906:c08a:: with SMTP id f10mr22883770ejz.181.1596573972287; Tue, 04 Aug 2020 13:46:12 -0700 (PDT) Received: from ltop.local ([2a02:a03f:a7fb:e200:d068:a44f:fa3b:62da]) by smtp.gmail.com with ESMTPSA id i9sm38188ejb.48.2020.08.04.13.46.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Aug 2020 13:46:11 -0700 (PDT) Date: Tue, 4 Aug 2020 22:46:10 +0200 From: Luc Van Oostenryck To: Stafford Horne Cc: LKML , Jonas Bonn , Stefan Kristiansson , openrisc@lists.librecores.org Subject: Re: [PATCH 2/6] openrisc: uaccess: Fix sparse address space warnings Message-ID: <20200804204610.mxzw6ahdnfw6yko2@ltop.local> References: <20200804042354.3930694-1-shorne@gmail.com> <20200804042354.3930694-3-shorne@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200804042354.3930694-3-shorne@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 04, 2020 at 01:23:50PM +0900, Stafford Horne wrote: > The OpenRISC user access functions put_user(), get_user() and > clear_user() were missing proper sparse annotations. This generated > warnings like the below. > > This patch adds the annotations to fix the warnings. > > Example warnings: > > net/ipv4/ip_sockglue.c:759:29: warning: incorrect type in argument 1 (different address spaces) > net/ipv4/ip_sockglue.c:759:29: expected void const volatile [noderef] __user * > net/ipv4/ip_sockglue.c:759:29: got int const *__gu_addr > net/ipv4/ip_sockglue.c:764:29: warning: incorrect type in initializer (different address spaces) > net/ipv4/ip_sockglue.c:764:29: expected unsigned char const *__gu_addr > net/ipv4/ip_sockglue.c:764:29: got unsigned char [noderef] __user * > > Signed-off-by: Stafford Horne Look good to me. -- Luc