Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2354815rdb; Tue, 10 Oct 2023 01:02:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHCWyih0UxxVx+nFcIlWlPZleqpW4Ia5XXTR78akM9tanUEbdqka1JDzZfq7c+/24AyLuD X-Received: by 2002:a05:6a20:a12a:b0:16b:f4ca:e3d9 with SMTP id q42-20020a056a20a12a00b0016bf4cae3d9mr9167841pzk.27.1696924950334; Tue, 10 Oct 2023 01:02:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696924950; cv=none; d=google.com; s=arc-20160816; b=Rk+OsNRRTaPwBCxnEyIbXeAKtJe2su0b4rn+h2tfz6hwUxg5jEeA1g+9nm4t9644zG yeV/wWiEWjQZ/IfjBwW9Pq1txHv1oL+lWLr9mu3vX0wTHg4GXyB+NM9zFYoILhD04cgX 0jtKbwkRidko0EiH4SPiMcZEn5v6YIOPtmGtFmS6IP9rNdl8/YO619HrRe7zUBNKYiPX rW/Dasz3lYNQkGFJEFtHEvszWhTyPqeiOeECox94vdX/lTI2trKFdMSyMe+F+kWFAKJK 4p0UlpBAGbYucl/oUlCU1sj/d0DoAXZTzOsXsnhsKcFipZHAIjh53RL8lRDouaTh4N/f cBWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=+vi6oLAhXdooH6nRXQTJLCzLIzfz/E6f6oLB+lVZqjI=; fh=msdwVyUEal6LktZucAHEZKdUHrJVQxH88ZwRN6nXh7M=; b=xfeItv0tzOZxFhbGKN/RN58pHmaAoBnV7G+deEGIQEuwd7KxkTDCuNt8bG+cEgAq9y pH9LuDD+ohTiEq52H8SpC3oOzT0HucQy1LT+hLiPAggk7rJpm5vTurSc2wTHl3l2mgoh nj5iVR4w9Wfns0osLiQc9Nb1pYVeDYrRKmtRvaH5zW/d0/IbTLv66mk7F72Nq6Hgu9bb +xrWYLJvvJ+QecmEx6G/HMJhpAKunqrDDs9wrWj0VTscN+wTiZAsocnkuDRR/75ZoBDC YJ4H25iSXMIB8cNlo/2hNy7qFM2zPKc36Fr/hHcT6Uy1YwhbpKFyQcFQe5qa05Mdl0f1 ycRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a4-20020a1709027d8400b001c72c792794si11166471plm.47.2023.10.10.01.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 01:02:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8649082D8791; Tue, 10 Oct 2023 01:02:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442694AbjJJICC convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Oct 2023 04:02:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442664AbjJJIB6 (ORCPT ); Tue, 10 Oct 2023 04:01:58 -0400 Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7366CAC for ; Tue, 10 Oct 2023 01:01:56 -0700 (PDT) Received: from omf01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 4CC7980211; Tue, 10 Oct 2023 08:01:55 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA id 7BA066000F; Tue, 10 Oct 2023 08:01:52 +0000 (UTC) Message-ID: <5375f92abe85a49012c6bafbb21b579154d09f34.camel@perches.com> Subject: Re: [PATCH 6/7] fs/sysfs/group: make attribute_group pointers const From: Joe Perches To: Max Kellermann Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org Date: Tue, 10 Oct 2023 01:01:51 -0700 In-Reply-To: References: <20231009165741.746184-1-max.kellermann@ionos.com> <20231009165741.746184-6-max.kellermann@ionos.com> <264fa39d-aed6-4a54-a085-107997078f8d@roeck-us.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-Rspamd-Queue-Id: 7BA066000F X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Rspamd-Server: rspamout06 X-Stat-Signature: yrj7dy1dfgwn4ruy9skeiteyin15jba1 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/PEXH+a0lwyCopcXDGV3v6dFylJ6/55s0= X-HE-Tag: 1696924912-973839 X-HE-Meta: U2FsdGVkX1+lw6077CmRMG2PfmHdsoWxEEvyDAF2z9gzSasso1txhxPbv/j1LkdlhYnzTmdPRbMYD2+LV9vQvLpcPLk95XeHtaE4YduNbWMkIq/7WnFmCg/N2CiG0Sg27R/7weZUYmwJmYKeapxAlzFVuc8JJCr3sI2uKQExIScLY4j4cgtJt2tAvcBJLsABT66Q60zzg8HBjno5RarythjP9kbW73jWfMuIvfpDbSaL6u80ENY56rTZ8lPc5/CkhbnORqgP/XnCj28DY7ATZ/tOf7b+ZSnLOlv5lVZoekZfIa75mbUllFIIKf4NV2UzMDiKn9rP9RvmgZ7EbTEM4MPZEx/2tRFrQlgNRYtF3couji1+oM6PU9OZAroXvuyK X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 10 Oct 2023 01:02:26 -0700 (PDT) X-Spam-Level: ** On Tue, 2023-10-10 at 09:38 +0200, Max Kellermann wrote: > On Tue, Oct 10, 2023 at 8:48 AM Joe Perches wrote: > > My opinion is that const use in the kernel should almost > > always have whitespace before and after it except when > > preceded by a open parenthesis or a newline. > > So it shall be "void * const foo" (16k occurrences in the kernel) > instead of "void *const foo" (3k occurrences)? I think so. $ git grep -P -oh "\bconst\s*\*" | sort | uniq -c | sort -rn | head -3 2538 const * 349 const* 20 const * $ git grep -P -oh "\*\s*const\b" | sort | uniq -c | sort -rn | head -3 16677 * const 2912 *const 8 * const Documentation/process/coding-style.rst doesn't mention const. Maybe it should.