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 3C970ECAAD8 for ; Tue, 20 Sep 2022 08:19:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230116AbiITITO (ORCPT ); Tue, 20 Sep 2022 04:19:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230041AbiITISI (ORCPT ); Tue, 20 Sep 2022 04:18:08 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3027167CBB for ; Tue, 20 Sep 2022 01:15:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663661715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IZY1YavaFvCQO8tOgPzXe0UBwQkGNW34ROeeUBFifyI=; b=fsD+HCkjOhHLU/IRD2HMQYV2zKJLC0q3VpdxtBmmsWGsM+XsEgnGPTIRyqQuCLSHjeO/mW B8+KF8Z8+wMKhWYcwcjF/DghLdIoCFn3/1o9iABSgw7G/k35l4rJcuod45QrTiTftHmPkv Js0o2auILINTbdJKMJUXHpz6DomssSU= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-161-rx17NNQnNeOfHiY18KOowg-1; Tue, 20 Sep 2022 04:14:59 -0400 X-MC-Unique: rx17NNQnNeOfHiY18KOowg-1 Received: by mail-wr1-f72.google.com with SMTP id d30-20020adfa41e000000b00228c0e80c49so827089wra.21 for ; Tue, 20 Sep 2022 01:14:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:organization:from :content-language:references:to:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date; bh=IZY1YavaFvCQO8tOgPzXe0UBwQkGNW34ROeeUBFifyI=; b=DEz0wBNJTPkG70TnV8qvgndNuwrbO3GJwBRcUT7a7uAe4TqJSx6U1V+zmW8613B5Z9 yQHxLERLmbACBcYlrFYjv31hTqHnahb3Wz2elmue/Z9e+ASvkeDpTQm/L0+QQ8GoIYT6 gCAp6Q1LAqSj7AI0b9O6jLFdB0yepuLjphnqdXbAseKvF/hqLdeRpfm2swR89S7hio9x pNGa7SF7EhZ8YqXiSUBljJwZNYAT4m+FujwTI9xLc1fd2SfetPweYTxGzFL/Zg+N/63L P8XndunWsop5wOihhv4Wmga0AZWwjmqlLWqh7kde31hnTkBc1b6d+Gs9+p5abaJhw36L r+Wg== X-Gm-Message-State: ACrzQf2hBTvRTl61jMMdLkxa/XkZASI1YqL8Txjbj5V0udB8tANObHsP 43vkD8p48ISAnJPvpdUXKgnnhLsOOQeM9Ud+MpayJD9w8HfUF7lU7kM2tyKzW8S1qK56k01C3Ya 9CbzVbwZdmxgKT8ShzOKt5v3Fbcbl X-Received: by 2002:a05:600c:502c:b0:3a8:41e9:cd32 with SMTP id n44-20020a05600c502c00b003a841e9cd32mr1390984wmr.177.1663661698498; Tue, 20 Sep 2022 01:14:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66+NV0/AY2AzFAp6F92Em689IXLMoLrKqSW9fGLIpywepwzilF5sHgjwovliPmjN35Y1UA+w== X-Received: by 2002:a05:600c:502c:b0:3a8:41e9:cd32 with SMTP id n44-20020a05600c502c00b003a841e9cd32mr1390961wmr.177.1663661698255; Tue, 20 Sep 2022 01:14:58 -0700 (PDT) Received: from ?IPV6:2003:cb:c712:2300:e82d:5a58:4fd8:c1e6? (p200300cbc7122300e82d5a584fd8c1e6.dip0.t-ipconnect.de. [2003:cb:c712:2300:e82d:5a58:4fd8:c1e6]) by smtp.gmail.com with ESMTPSA id l4-20020adff484000000b0022ac13aa98fsm889374wro.97.2022.09.20.01.14.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Sep 2022 01:14:57 -0700 (PDT) Message-ID: <08572e43-5de6-9bca-54ab-1779aeb54c25@redhat.com> Date: Tue, 20 Sep 2022 10:14:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1 To: Akinobu Mita , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-fsdevel@vger.kernel.org, corbet@lwn.net, osalvador@suse.de, shuah@kernel.org, Zhao Gongyi , Wei Yongjun , Yicong Yang , Greg Kroah-Hartman , "Rafael J. Wysocki" , Alexander Viro , akpm@linux-foundation.org References: <20220919172418.45257-1-akinobu.mita@gmail.com> <20220919172418.45257-2-akinobu.mita@gmail.com> Content-Language: en-US From: David Hildenbrand Organization: Red Hat Subject: Re: [PATCH 1/3] libfs: add DEFINE_SIMPLE_ATTRIBUTE_SIGNED for signed value In-Reply-To: <20220919172418.45257-2-akinobu.mita@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 19.09.22 19:24, Akinobu Mita wrote: > The simple attribute files do not accept a negative value since the > commit 488dac0c9237 ("libfs: fix error cast of negative value in > simple_attr_write()"), so we have to use a 64-bit value to write a > negative value. > > This adds DEFINE_SIMPLE_ATTRIBUTE_SIGNED for a signed value. > > Fixes: 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()") This patch itself isn't a fix. The fixes tags belong to the other patches that make use of this. > Reported-by: Zhao Gongyi > Signed-off-by: Akinobu Mita > --- Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb