From patchwork Mon Nov 18 15:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13878748 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1479D4922F for ; Mon, 18 Nov 2024 15:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=YzHhfS5PaWMsOojmjdMcQvZwVu+U7bnAwRzoSZ9fvHY=; b=HdVz3KvsUGCqksEY9/ZL/nCR74 S05GCI23KajT41xm1Kc13bXHdJxpDMpzvu4kifepo66HKiNJOpgMRcvie3D9fpQkATbsQknYK5n04 vRGIJgtDVbFm8viDeBZqgUfB7eh37eF6wGixAkRfqHFZ8kJeUDIWUAK4eo3vCZBPIgV8GecLqAMmv RoPvlEtXhTg25+iRjC2RwJpTgwa9wLWtFs9GEnQm3IGtXLZoi/DROK5Ax86co+wpOvmJv1rA2tga7 RczljIOGE0fBLkNWW8UCq0trub6eGtYbC9je2BigbxLuYEkI4KwF19pQkmcvY1LMCNWtGHmdTZ6x4 eJyRfR9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tD3KE-00000009rp2-2pkw; Mon, 18 Nov 2024 15:06:02 +0000 Received: from todd.t-8ch.de ([159.69.126.157]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tD3HS-00000009r9p-1D01 for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2024 15:03:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1731942187; bh=wanikvVx55Q2iWKAifFPxcBSccEU3MSG8wjRU6lkedA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LT6ozaV9+SGX3smbiroyIdiAUyHy3jO21OkA7bT+dcEWMLfCSw7UPjd2DUcpnjWCB q3ojNF4XT/+BdPuppdYcnTMF23KfA7q7Gxg8ZJYBoAcDdzPT1ExL/ygKqN2zLaBmrr cnzpxA+/iatbg8lvXf99+zIdzWq5AiU1ODeV2ugI= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 18 Nov 2024 16:02:47 +0100 Subject: [PATCH 1/3] perf: arm-ni: Remove spurious NULL in attribute_group definition MIME-Version: 1.0 Message-Id: <20241118-sysfs-const-attribute_group-fixes-v1-1-48e0b0ad8cba@weissschuh.net> References: <20241118-sysfs-const-attribute_group-fixes-v1-0-48e0b0ad8cba@weissschuh.net> In-Reply-To: <20241118-sysfs-const-attribute_group-fixes-v1-0-48e0b0ad8cba@weissschuh.net> To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Robin Murphy , Will Deacon , Mark Rutland , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Peter Zijlstra Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731942187; l=835; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=wanikvVx55Q2iWKAifFPxcBSccEU3MSG8wjRU6lkedA=; b=dbOlKuFnLw2c05vLlE1Ltp5tRxeYtT2OdfOx1pn5ntPiIvPkYeOAOwH7VT1+GPF+SMEBqtiKO GEa0gd4UCDYAk2yWqm0N3bLAqgTZyvO0obImcIL/iVwISKM1sJIb8IN X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_070310_481437_AA15C58E X-CRM114-Status: GOOD ( 11.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This NULL value is most-likely a copy-paste error from an array definition. So far the NULL didn't have any effect. As there will be a union in struct attribute_group at this location, it will trigger a compiler warning. Signed-off-by: Thomas Weißschuh Acked-by: Robin Murphy --- drivers/perf/arm-ni.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/perf/arm-ni.c b/drivers/perf/arm-ni.c index 90fcfe693439ef3e18e23c6351433ac3c5ea78b5..fd7a5e60e96302fada29cd44e7bf9c582e93e4ce 100644 --- a/drivers/perf/arm-ni.c +++ b/drivers/perf/arm-ni.c @@ -247,7 +247,6 @@ static struct attribute *arm_ni_other_attrs[] = { static const struct attribute_group arm_ni_other_attr_group = { .attrs = arm_ni_other_attrs, - NULL }; static const struct attribute_group *arm_ni_attr_groups[] = { From patchwork Mon Nov 18 15:02:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13878747 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C9339D49231 for ; Mon, 18 Nov 2024 15:05:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kfw7GcU5erU0jn6umxit+XdKCvQ9/oYDTncW8OAyLtA=; b=V+xqLFJX3k5PSe8pS6946AjTL2 hMN+OKiG50Ft+GT5RBAQMCttcN06rLJfBpK437Wg6lLOCInWEVpvp38tuykqya9Wx3pWjeGRvlkGr sCr/gB8+ggcbjIcILd3em8MbdtLGJXcNq/OpddBmMz+y1pQvTrcMRLSI5ALnZbdAs2nthrkF3vdZ+ cIlm2IIizqSKMdarrsFYIQ48QeydOy6EprW00wjnd3NsMdA4F7N/OYaX597PAIk7qZIaLC7tHvQYO jJI6VjlTgcjIlTdEBsx/u+C28pYPVP00pH9wkn0eBY986uSKOn+QpztSiau7pG09aVdJj6xOTqaXE Yp8SjtIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tD3JJ-00000009raa-3QzU; Mon, 18 Nov 2024 15:05:05 +0000 Received: from todd.t-8ch.de ([159.69.126.157]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tD3HS-00000009r9o-1DFD for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2024 15:03:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1731942187; bh=DmZT4xsI5doB1i+zhbofwrVYplHbfYJNLzwi59dygA0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Q+9LP9dfn8kPonnhF732Ezn1AnVV9P7LCFsyl88U4Cb91wDBnq5LvbUlvG3jHj4sI tTHdpN4n308s6Pj2HWHILTyy8YMXhTIFtZSXjp1dJp194kD6P1PdPt8qCCNTSoTv0m e0W/IVxeLtvVllE1O6epl+iGf4rLpoP5gkvqmtW0= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 18 Nov 2024 16:02:48 +0100 Subject: [PATCH 2/3] s390/con3215: Remove spurious NULL in attribute_group definition MIME-Version: 1.0 Message-Id: <20241118-sysfs-const-attribute_group-fixes-v1-2-48e0b0ad8cba@weissschuh.net> References: <20241118-sysfs-const-attribute_group-fixes-v1-0-48e0b0ad8cba@weissschuh.net> In-Reply-To: <20241118-sysfs-const-attribute_group-fixes-v1-0-48e0b0ad8cba@weissschuh.net> To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Robin Murphy , Will Deacon , Mark Rutland , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Peter Zijlstra Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731942187; l=862; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=DmZT4xsI5doB1i+zhbofwrVYplHbfYJNLzwi59dygA0=; b=nD8J4pvnXKQqclCRBHqCv4musA1VxnMDFKDJTUm5nofKnNucxbd0ZY+On/5h0gRTZDr8zrl61 QZKOcDJ+kLgBh7upQgIT1XjiyHiveyxsrBJS1Bvs6BwcQmLSorg+l51 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_070310_477690_5D6036C9 X-CRM114-Status: GOOD ( 11.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This NULL value is most-likely a copy-paste error from an array definition. So far the NULL didn't have any effect. As there will be a union in struct attribute_group at this location, it will trigger a compiler warning. Signed-off-by: Thomas Weißschuh --- drivers/s390/char/con3215.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/s390/char/con3215.c b/drivers/s390/char/con3215.c index dcb3c32f027af6748448600bad51864f6ba5d9a1..c763c50d1454676f223e8b29a92f5fb45ddd7932 100644 --- a/drivers/s390/char/con3215.c +++ b/drivers/s390/char/con3215.c @@ -803,7 +803,6 @@ static struct attribute *con3215_drv_attrs[] = { static struct attribute_group con3215_drv_attr_group = { .attrs = con3215_drv_attrs, - NULL, }; static const struct attribute_group *con3215_drv_attr_groups[] = { From patchwork Mon Nov 18 15:02:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 13878746 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 56809D4922F for ; Mon, 18 Nov 2024 15:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pV7qTF4c6gy8Bebla12zHdT3Rs1r7AjWpLzwiE7t0Ao=; b=SBhkY55A6hsCrMaLbv1Tbd7LO0 i91UaY+os0lIQC9+2hKz/yXnQ83DM+iKtty5JCHNAp6J9CDGbBs7oKgNcWQ2ZGQGn5VK9A5TKEg2Q mzXQiCEpZgzE7kg2vICYzZNUJmnNf2+YO2DmCmpnViGQG86pEmT8kdqdNg+BNr3SEJuYd8HLEcPQT 6p17C5OhLvoBhjtfqDuqPfPR+F+fEFA3HVxsD5vGo6vH2fwP5lOIUMM+pDJdNmTk3jwIpFPZucgkJ oM+LynV1e5HPtH2YsL2mUSuQoFTfOEPrJOSjzWJqygpMJflrrADNj05/i8a4AI1lZbvZX2sBzsRKy 1ZzmVAAA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tD3IP-00000009rMA-0kst; Mon, 18 Nov 2024 15:04:09 +0000 Received: from todd.t-8ch.de ([159.69.126.157]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tD3HS-00000009r9i-1Dev for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2024 15:03:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1731942187; bh=Y6IKnnnehrgtsOGYcC4soeo5EMiO1x9gQENuPzItkvw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qKVE/HsoamW7WBskfH/JsFzqNNnUf/9fRciYOl7BrVHQXChEVo/w4I3wRgSQ5AUAW Vb4vvj5ITSI/+WNv+Q2iQ2YgzjhvabKGVsAscoMYItGIak7OwlNAzTS6UQVDerSbli NC2t654mYZuILJ2S2lxjBfPZgTIirWgI1p6S96sk= From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= Date: Mon, 18 Nov 2024 16:02:49 +0100 Subject: [PATCH 3/3] cpu: Remove spurious NULL in attribute_group definition MIME-Version: 1.0 Message-Id: <20241118-sysfs-const-attribute_group-fixes-v1-3-48e0b0ad8cba@weissschuh.net> References: <20241118-sysfs-const-attribute_group-fixes-v1-0-48e0b0ad8cba@weissschuh.net> In-Reply-To: <20241118-sysfs-const-attribute_group-fixes-v1-0-48e0b0ad8cba@weissschuh.net> To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Robin Murphy , Will Deacon , Mark Rutland , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Thomas Gleixner , Peter Zijlstra Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731942187; l=1161; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=Y6IKnnnehrgtsOGYcC4soeo5EMiO1x9gQENuPzItkvw=; b=SSps8DBII7qesqAsv+xf0NzLA2Q2RkAGnWvq5dXhTqti/ZR3bY+tTVFcPUvGfpHjOTATQg1/u H3o+/TmtbdRCrrDyEimbS9Q1Keupowt8TUyAnhPOvDjwEHLC8qQl6tc X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_070310_484942_1B03F370 X-CRM114-Status: GOOD ( 10.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This NULL value is most-likely a copy-paste error from an array definition. The NULL doesn't have any effect. Signed-off-by: Thomas Weißschuh --- kernel/cpu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index d293d52a3e00e1e8d7c82bdf2f1365bb459f8bb6..f3ee615d2274f161857ef0180454f30b54477cc1 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -2866,7 +2866,6 @@ static struct attribute *cpuhp_cpu_attrs[] = { static const struct attribute_group cpuhp_cpu_attr_group = { .attrs = cpuhp_cpu_attrs, .name = "hotplug", - NULL }; static ssize_t states_show(struct device *dev, @@ -2898,7 +2897,6 @@ static struct attribute *cpuhp_cpu_root_attrs[] = { static const struct attribute_group cpuhp_cpu_root_attr_group = { .attrs = cpuhp_cpu_root_attrs, .name = "hotplug", - NULL }; #ifdef CONFIG_HOTPLUG_SMT @@ -3020,7 +3018,6 @@ static struct attribute *cpuhp_smt_attrs[] = { static const struct attribute_group cpuhp_smt_attr_group = { .attrs = cpuhp_smt_attrs, .name = "smt", - NULL }; static int __init cpu_smt_sysfs_init(void)