Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2310307rdb; Mon, 9 Oct 2023 22:59:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE5ZIKbtoAdj9T9rFhdWKfK7BdB0+/D2poX6moWMTXukFm4Pi3NxPhUGFS7X7+B2uUzbTO1 X-Received: by 2002:a05:6a20:8402:b0:161:22c0:541 with SMTP id c2-20020a056a20840200b0016122c00541mr22994809pzd.25.1696917574478; Mon, 09 Oct 2023 22:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696917574; cv=none; d=google.com; s=arc-20160816; b=N4RYh+pW92ur6dWwa5s3yAqxHlaWa8GwOEY/xEJKiZTzUr103H0AMr0fKOr8usNl3j jEKUAB7mzAAx8H/lVbs4jf311rgqJQVTYQoW9TE2hqAv+sxfeYZBkv27fMF3nuwB1d/n N5AyChBy0EpMlNSN4qMoHOhCsGGRSZhEqubV/F9cG/IzgHvYPipAFiNax9VCwh1HXkWl ODb86DaZizsNLopJjoJ49ZJiHPHudAOTwE3+xpQxtVPnvF8QvfkzG752BLcxstKk+ZWF rEE9zSkr65GwiB9Qz+M7qcttRig65dG+Bjk5Nv29Iq9a9MN2t4QR3RSitCoqv+zbcfYv qi5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PbPxT1sSvRyDQp/e9n/Bbj4wr5MrWyZ0fFUXG4UTN3U=; fh=k6e219fNYU5xJ1zhA5epFPDIGGMos5GOlK9MUEPy35g=; b=MYm1MV2tUPi44CyCoA7o9h0yBOzO0fZPsCvalE2L7bZA3oURXlPxM58Z7UwHS5mhll szvpVV0eIhheLiRboXgx7eOSPKPdKq2Rt7bZtnkTocia5nubY1+4AN310O/rYj2N8uuN X9xSzQqqNKZOnk8QBqT/IiOnlUSjg14aEfgMv7LJ6g8Ap79b5tFw90zXDSfAyLKJ2jTu q03cUb2PyVRyg5gXHqGVOJLt96bqB7sJ7PQ72vPp9EHpQs5naXoLRrXVCr9PGNIfWYSd Pqx0Lmsw1IaRipiqorAzmy92LRdomHu1W/wNVXQUTTzxf5VDSHIKqriF/3fk+DpMSgZj ybQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kg+lbBI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u1-20020a170902e5c100b001c3da86939csi11909812plf.546.2023.10.09.22.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 22:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Kg+lbBI2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 70E718026D92; Mon, 9 Oct 2023 22:59:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442201AbjJJF7Q (ORCPT + 99 others); Tue, 10 Oct 2023 01:59:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442179AbjJJF7O (ORCPT ); Tue, 10 Oct 2023 01:59:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B27EFC4; Mon, 9 Oct 2023 22:59:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCCE0C433C8; Tue, 10 Oct 2023 05:59:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696917551; bh=S2Vq73dxgI8Hax8ZDzPktuJJ9WTcUpUL+/KM/V79r44=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Kg+lbBI2WFWTfw1g2nP0OCMspsLaEmhAGl8iOsaj2cy/oJfzG7zS6LdyTH+rgqFJW sxCvDQ6Jwy3j0Ae58keCkT9pNIKZqzy2q0BM7QcmVrgaG+duK+v7nL5BaVefquSsO4 loMdrlwL5KeekjdN5/LA2S/AHzLoLV9Rn2EfXKfI= Date: Tue, 10 Oct 2023 07:59:07 +0200 From: Greg Kroah-Hartman To: Max Kellermann Cc: Guenter Roeck , Jens Axboe , "Rafael J. Wysocki" , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter , Jean Delvare , Jason Gunthorpe , Leon Romanovsky , Bart Van Assche , Joerg Roedel , Will Deacon , Robin Murphy , Dan Williams , Vishal Verma , Dave Jiang , Ira Weiny , Keith Busch , Christoph Hellwig , Sagi Grimberg , Alessandro Zummo , Alexandre Belloni , Jiri Slaby , Suzuki K Poulose , Mike Leach , James Clark , Leo Yan , Thomas Gleixner , Peter Zijlstra , Pavel Machek , Lee Jones , Arnd Bergmann , Bjorn Helgaas , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Sebastian Reichel , Krzysztof Kozlowski , Wim Van Sebroeck , "James E.J. Bottomley" , "Martin K. Petersen" , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-rdma@vger.kernel.org, iommu@lists.linux.dev, nvdimm@lists.linux.dev, linux-nvme@lists.infradead.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-leds@vger.kernel.org, linux-pci@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH 6/7] fs/sysfs/group: make attribute_group pointers const Message-ID: <2023101025-yogurt-masses-47da@gregkh> References: <20231009165741.746184-1-max.kellermann@ionos.com> <20231009165741.746184-6-max.kellermann@ionos.com> <264fa39d-aed6-4a54-a085-107997078f8d@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 22:59:23 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 10:05:55PM +0200, Max Kellermann wrote: > On Mon, Oct 9, 2023 at 7:24 PM Guenter Roeck wrote: > > Also, I don't know why checkpatch is happy with all the > > > > const struct attribute_group *const*groups; > > > > instead of > > > > const struct attribute_group *const *groups; > > I found out that checkpatch has no check for this at all; it does > complain about such lines, but only for local variables. But that > warning is actually a bug, because this is a check for unary > operators: it thinks the asterisk is a dereference operator, not a > pointer declaration, and complains that the unary operator must be > preceded by a space. Thus warnings on local variable are only correct > by coincidence, not by design. > > Inside structs or parameters (where my coding style violations can be > found), it's a different context and thus checkpatch doesn't apply the > rules for unary operators. Ok, checkpatch support isn't always required, we can notice that changes like this obviously are not sane and shouldn't be allowed just by reading them :) thanks, greg k-h