Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2115017rdb; Mon, 9 Oct 2023 13:06:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPclWFgXqBn49nPsksv9b211FY10nrU5hxDbE+V9jeiWxlYxV8ESY2lmjsOoW8lurF/Xqb X-Received: by 2002:a05:6830:102:b0:6bd:c865:a618 with SMTP id i2-20020a056830010200b006bdc865a618mr18048724otp.13.1696881988278; Mon, 09 Oct 2023 13:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696881988; cv=none; d=google.com; s=arc-20160816; b=M6ig38+WyS8fNAjp4gb76t80p0bFeW+PHmQsXlpoORh38ABv0u2OBl6dack0IR9inr aasDngoFzFPfkKMPOIR5eSfyrLJxhjb8Odq7/2sNFBanWh7bhPv8B+idAoI3wTWPg0GO 70ve/nNezsONfZVD4A/mGRuVa47IriVtFRkNAGPf+7ApDaKMcgLu//p0HwX+wlBk1pmB LJjHHCIq4i7xKiVGXRUz4fOSFdyHaK9knKOl4rNsNMUlWYBGFhozaw4PByS61d5qHE+a uG0tHicDIbOfs0qQI0a+5xeYXYlhiAYqjl+2P0EOensdbU0ZZkpfCtZMBadY6lYzfMEy PeIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=vntWR/EJpWFamZ/9NMXVbCLlV4xDhJbERcnlqbMN6Xk=; fh=Uv7loE6sd2TeYsnG/YLCUxqlevZzgUbvzXccy43YmX0=; b=zOcx+FvvSvJlEDeeRXimv6U7Gm/Z5PsSD1AfS3mJtjgM7a0ByjQ+x0YZTTXgIXQU5X ph64Zaj6JLy1s6T6hkcK44FCKFsKuEHLUfYR4yL0aLRHwm3h6dz2TlMULAlcim4PC7Lm GM9XmJQik+ew9jRyf33uO8frM6YTd9Nte+r9nauZ1M4PuHUBslYbfZmXY8d0W2kq/jT0 rsaJcEMBYScwsVtqSsfu1PozX3rHfDLLHWe6MxIyfyhdEo0IsH2La6Skci5zWsU5FbgP q3Oh0ks3KksCOyqD5ZWX484mIEz9+gY5vNyAqJZTeen1JjrMRKjWFokbmGKJG7rmgU2+ 6WYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=BFuMz3FM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id a187-20020a6390c4000000b005859c8462f5si9909646pge.268.2023.10.09.13.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 13:06:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@ionos.com header.s=google header.b=BFuMz3FM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ionos.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C50A78037713; Mon, 9 Oct 2023 13:06:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378544AbjJIUGP (ORCPT + 99 others); Mon, 9 Oct 2023 16:06:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378516AbjJIUGL (ORCPT ); Mon, 9 Oct 2023 16:06:11 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E16DCE1 for ; Mon, 9 Oct 2023 13:06:08 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2c1807f3400so60245011fa.1 for ; Mon, 09 Oct 2023 13:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ionos.com; s=google; t=1696881966; x=1697486766; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vntWR/EJpWFamZ/9NMXVbCLlV4xDhJbERcnlqbMN6Xk=; b=BFuMz3FMbhLgkIJi/HkkmJ1VkLf2I7vqp4svyIwG2+yDE+U4S96EGEikgUcb8O02Uo 8j8iLlfo7vmxsfcwVcs/qIKkl99xa5dmEeJRo1cSF6V+ygbEal7iO3+v912NQA+dawBz Soy5yco9XA4Rbc4rDCwVGkioAfXZalXRitmVvyF0C2rWZ0Ewe2//XA3FBEsbn52apGZL aRFt/c7Wzbg6QpYPQ0dm8EJR8fe2x3S+duZuFSIP/H5VlRW/FVRYn5HxOETlTJKz3xcb BMDmJLPjWEXQ8IaDm9bc5q/71Ibv+h4ffhs1BXiaAk1KUwUk/S2rUW6zLyroy1Lm1kJC OAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696881966; x=1697486766; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vntWR/EJpWFamZ/9NMXVbCLlV4xDhJbERcnlqbMN6Xk=; b=TeCPmCKECFtVQbfnVhTSzzF0q9SN4X3aXtO5hCWEFGLHmSoYn7qVeZWnLLAnMKWvSy wwO/Flj2FRrIbOCZFYnoW7IfSUGQOFPHpeA20Xh+6AaRZbgehXoghkgSd55lY9cr0PLn zJ4HtdB/bhRm/S67XpE1FEG7xIf9uDaGFZYPydikVIQwwg1va8NzCGQruEGfnQAr1anH dDf6+vivmxErraRDltXlsyzrFClAUo50j9ToJwSynaXmwabp7RgmVqAGvkPw7/s8gUvx PVCpLcNHzUxZdWKgfo08Jz8viqd1cmhHWiyZODSFjdT9QzbUYe8cFvGGNy3oKmt8p2B4 HgyQ== X-Gm-Message-State: AOJu0YyfAc+D5bSXWOds5zf7m5+7/EsSwXL2rPPvn13OyZO1zckttjYu iMiqzbmKgxnlJxWM2O1f9sAgRtaoJNhHxuhfJEPkJw== X-Received: by 2002:a2e:870c:0:b0:2b6:cbdb:790c with SMTP id m12-20020a2e870c000000b002b6cbdb790cmr11535962lji.1.1696881966432; Mon, 09 Oct 2023 13:06:06 -0700 (PDT) MIME-Version: 1.0 References: <20231009165741.746184-1-max.kellermann@ionos.com> <20231009165741.746184-6-max.kellermann@ionos.com> <264fa39d-aed6-4a54-a085-107997078f8d@roeck-us.net> In-Reply-To: <264fa39d-aed6-4a54-a085-107997078f8d@roeck-us.net> From: Max Kellermann Date: Mon, 9 Oct 2023 22:05:55 +0200 Message-ID: Subject: Re: [PATCH 6/7] fs/sysfs/group: make attribute_group pointers const To: Guenter Roeck Cc: Jens Axboe , Greg Kroah-Hartman , "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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 09 Oct 2023 13:06:26 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 9, 2023 at 7:24=E2=80=AFPM Guenter Roeck w= rote: > 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.