From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AB6EC433EF for ; Sat, 14 May 2022 20:53:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235193AbiENUxi (ORCPT ); Sat, 14 May 2022 16:53:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231316AbiENUxf (ORCPT ); Sat, 14 May 2022 16:53:35 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 336B936162 for ; Sat, 14 May 2022 13:53:32 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d25so10648631pfo.10 for ; Sat, 14 May 2022 13:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=W0IcwkIC62+e9+CLItbBIFdA4NdjJHDiidWSiPECNao=; b=1va55SdIra2FARAV9Y0J2GNI9+Qu66opAxRPIfRI0B6n0775TD5FvL5meuOR6xr9O9 CnYBcZp49a+FEAZLa5B+rnuMeqsHjTtwu4ie+nJYSukx/+hC6G/7x6Xtucl/Ut8rr468 erzT42mAiP2ThAeHlVH8NoseMzU3uIrtF1R/O3XQrSmzrIi5Py0L9PquD5yG0NpTeXHR mb56QbMHeJ2PtHj181iiiWZIPtLABwnFmqI92jpbeWU4/JfY2G+P6UtoWN47+yqOiZnM kHAh3rumM9jUulnnJ0XsIWlWu97ZF0dYrLr71LftVjnFfrgUIN7ESZwzU3gSe6mvcTXP ObBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=W0IcwkIC62+e9+CLItbBIFdA4NdjJHDiidWSiPECNao=; b=xyvJPg3dvEnnzTZstz9NiAfYS11bKEXknQY8vXq8mBijizB1iFtXkcBzh0bwW5tx3C g8DqQnOjqK61aPMebCopXNs3wY89DddzXXfhL9cONc9Uw11lgBJmJZNmVsJJQMigdjSb 4XXU9RrwsMJ4C0YC5sm4VwvqffuwtgsQaU3O4YKH10kQ+3LNlaprRWpSOTbNE/CwlKah B0K4gZZ9tn6USDzKnHA+H6YVYieOfFpfzxprWdOVVYffBmVDLZRQOnYiHGlDhlma93mI AywtvqcvL76XrMDsAuI64cev1P9SvTkP6HA2ABtS2t0GI4q6hCcCjuJ7n+kygQPk3D/h WEnA== X-Gm-Message-State: AOAM530vDPsH6Im3eEEpbbBoybywWN0+aN47vkjlEcSfjKcNQieafYA5 Nv+yh7g10TQ68PDtJHHE9ROmnicFlKmGRQ== X-Google-Smtp-Source: ABdhPJxsykzDH5Tb1oGiwcHZL12XG4lDvhu60M0IyVwG2AnIYe4+BIvZxT+99k7W5ASNWy9D8j/HZg== X-Received: by 2002:a63:f158:0:b0:3db:8563:e8f5 with SMTP id o24-20020a63f158000000b003db8563e8f5mr9205183pgk.191.1652561611440; Sat, 14 May 2022 13:53:31 -0700 (PDT) Received: from [192.168.1.100] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id z12-20020a17090a540c00b001cd4989feb7sm5699900pjh.3.2022.05.14.13.53.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 May 2022 13:53:30 -0700 (PDT) Message-ID: Date: Sat, 14 May 2022 14:53:28 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] sparse: use force attribute for __kernel_rwf_t casts Content-Language: en-US To: Vasily Averin , Pavel Begunkov Cc: kernel@openvz.org, linux-kernel@vger.kernel.org, Steven Rostedt , Ingo Molnar , io-uring@vger.kernel.org References: <45e8576e-5fcc-bc52-8805-0b5cc3fc1a84@openvz.org> From: Jens Axboe In-Reply-To: <45e8576e-5fcc-bc52-8805-0b5cc3fc1a84@openvz.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/14/22 10:23 AM, Vasily Averin wrote: > Fixes sparse warnings: > fs/io_uring.c: note: in included file (through include/trace/perf.h, > include/trace/define_trace.h, include/trace/events/io_uring.h): > ./include/trace/events/io_uring.h:488:1: sparse: > warning: incorrect type in assignment (different base types) > expected unsigned int [usertype] op_flags > got restricted __kernel_rwf_t const [usertype] rw_flags > fs/io_uring.c:3164:23: sparse: > warning: incorrect type in assignment (different base types) > expected unsigned int [usertype] flags > got restricted __kernel_rwf_t > fs/io_uring.c:3769:48: sparse: > warning: incorrect type in argument 2 (different base types) > expected restricted __kernel_rwf_t [usertype] flags > got unsigned int [usertype] flags Hand applied for 5.19, didn't apply directly. At some point it'd be nice to do the poll ones as they are the biggest issue wrt sparse, but honestly I've never really been very motivated to fix those sparse warnings as it would just be an unnecessary pain for backporting patches. -- Jens Axboe