Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp656139pxb; Fri, 8 Jan 2021 14:49:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJyV+0hheS8BmLXuvw4fL4h6c8tw4ZdBt1oBSMdiqoY1Q3x1I3kKzwM4ML1OK69mXS5y+0B1 X-Received: by 2002:a17:906:178d:: with SMTP id t13mr3923598eje.455.1610146185872; Fri, 08 Jan 2021 14:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610146185; cv=none; d=google.com; s=arc-20160816; b=P4LMeCJ+ZP35og0KKJ2tHXoYQaGHeHt+9d5w8cT8KtkyG8/IQKWFFgMSDmSoQ8wo9i 6qLXTu8LH1DnHOAC0SrthGQMh8UG5DBaVyli5bJFV2z+qzWG2de0SLIY+QjAcQL+j3fS ipH5J3syCtLpiek3GDAoPQdJQubM+UTViKCTEGqRcppHh/fn9dsjcPLqG2DtRSxPKvLc dImrIo53o/5q70iZ09cq9UuxUP50t12aF6QowCJtCYgixFfhslga1kBsZAwpfTmPqjmq IR7dVlYH0gpc2GcsgaDtx9j55YTU/q1j00sM8AYEQu19hvFheGi4r+xB+H9K7xH32shJ ZWeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hJXk2BAUmcofcz+CyBJ2mq6BwSyyharKDCKpISJ6XtA=; b=XErmIxkK5KXYMxMUtw3f8iFyxz3vaIBa6B9+oMb+Jm+AlsIBE8mA+l5maSTW+0JuT4 r1LGpBT1XJUH4dbqq/YsCI5MzSp7xBsOSE3+xvbUz/YpjDNvDgMI33SSyP4+EWyU76xU 2xWQVgChHSTeuaLyF7d23wSnxjOPOqJaNQOHHqWNIcc7wA2RSeAKNgZXWRxKtMHXoVus GxdBKbLazVMniBYchdMWKzCi7EFPC0NMTxZ0QCniGmI9Cj6aK9JJT2n8IaqNWCf5VU0h s79ADmRzem0lweefLhdMf5DE/+/2si1cUlHTaoDHEMWXpCFwYcCsoBno5dwIGSqaIu20 +i4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BeTCSAMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t14si4063775edw.119.2021.01.08.14.49.22; Fri, 08 Jan 2021 14:49:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BeTCSAMa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726098AbhAHWsA (ORCPT + 99 others); Fri, 8 Jan 2021 17:48:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725896AbhAHWsA (ORCPT ); Fri, 8 Jan 2021 17:48:00 -0500 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABDF6C061574 for ; Fri, 8 Jan 2021 14:47:19 -0800 (PST) Received: by mail-lf1-x131.google.com with SMTP id s26so26657385lfc.8 for ; Fri, 08 Jan 2021 14:47:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hJXk2BAUmcofcz+CyBJ2mq6BwSyyharKDCKpISJ6XtA=; b=BeTCSAMaRIarLvsejN987GvITBD7YrUfLFch1IA1k9G3IaMZXO1H8Ohcx1mcQNjgkd NPjevGSSZ/fF27Ww7rkFqQ0mSVa+RPUk1XnEBRZjl9Fgq0V8W7DAfcf3OXkvoQLx3dC1 xX7p9uP9IRQmG7Wme6lHpbFwhXwkVjr1OiC90E3dT6/MKEo3k2EwToHsIkFFEDYduvZK gevKhrzrestqAvmVnl05MbC5N1Sp1oYw3bQV3k8Avs701wyTKO1iR30FVZQj4gT0AmVz VNTsAfSQ3KDMR8irqB746zm0wyJW1On24oM1LZIB4A6aLiR/AGSoUy7+eT1ebNcS5p5n RRBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=hJXk2BAUmcofcz+CyBJ2mq6BwSyyharKDCKpISJ6XtA=; b=K3zgBPOWp0d7m1UvnYaWqu0jJM0gAKzaKKuVj2+KuOuD6jEG5x6eLOsepwou/HqWJN ahcym17xzpIumssQwaNAO3piydbiqFm0wAbXDoOF6QEX0ySsPWBS+uxXgCOTvpZiWI0x 32+S0F2I0oYNTGqGYVir3vxxtA239E7r4T5+/2dur/QLIFnvrUYY6137E8ecM8ov1ILa DrNEPK5TrMaSbQHiTOEEtm6YQRp+yMUgF7mwq+74dqmeeKLK0NwkuXhnAzCEtBGmbg+C 1IhWvu4aK6qohUpxdFkvdCO/oPykm8LMpzNaeSEJ86uX8kVM55B9bOnOGapID832Vg8n c/eQ== X-Gm-Message-State: AOAM531VVnx+IGTH24Fr8KtnS3Bo9xCJH7D+LPLYZ//lAhf30VkCbAZH loaM7Jb9QO9yvPXvWkTfwSP3znhi2fI= X-Received: by 2002:a2e:7e05:: with SMTP id z5mr2621568ljc.353.1610146038257; Fri, 08 Jan 2021 14:47:18 -0800 (PST) Received: from localhost.localdomain (h-98-128-228-148.NA.cust.bahnhof.se. [98.128.228.148]) by smtp.gmail.com with ESMTPSA id n13sm2355960ljj.70.2021.01.08.14.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 14:47:17 -0800 (PST) From: Rikard Falkeborn To: ric Van Hensbergen , Latchesar Ionkov , Dominique Martinet Cc: v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH] 9p: Constify static struct v9fs_attr_group Date: Fri, 8 Jan 2021 23:46:50 +0100 Message-Id: <20210108224650.25872-1-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only usage of v9fs_attr_group is to pass its address to sysfs_create_group() and sysfs_create_group(), both which takes pointers to const struct attribute_group. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- fs/9p/v9fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/9p/v9fs.c b/fs/9p/v9fs.c index 39def020a074..cdb99507ef33 100644 --- a/fs/9p/v9fs.c +++ b/fs/9p/v9fs.c @@ -583,7 +583,7 @@ static struct attribute *v9fs_attrs[] = { NULL, }; -static struct attribute_group v9fs_attr_group = { +static const struct attribute_group v9fs_attr_group = { .attrs = v9fs_attrs, }; -- 2.30.0