Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2820013pxb; Sat, 30 Jan 2021 16:16:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJydDwqKYTFE47sxPXyXqczcQpJepRUidOlWdTXUQdoaQTQLG0zpsAdcP2herFY77pR45icZ X-Received: by 2002:a17:907:9810:: with SMTP id ji16mr10765491ejc.394.1612052174075; Sat, 30 Jan 2021 16:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612052174; cv=none; d=google.com; s=arc-20160816; b=qoBSQ5X/M1QkUOFVsj2vuBS1MclTuoLUCx54l973BGENkIYxgflxL08xDOXfXtvODp wWMUNAkS4XXVplOovOljlYBdt3T8WXLnGCok0BsKtkqarh8bSGkPQVFxOcKEh/9hn2vW kyipkpfW43RCZ7vrVjEzeUxIjRfmqQiWUP9yOlFnD1l4PJ8FGLx3fMQO1NVPHfUQyiRX xtKhzENg0wcZA+5N9Nas9R57kG20NO2qG1ft1U1xBzJWkHfJPZ2J/Mo4JlFlJgNkEcve RQMBnHLSZeazaky2FSCeEfkPXJP3vpio7Gu0Y2uxwHy6d/zO8rn+1DbIN7hP4/S7/ZD5 PMBw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=batmuya7co49qkeSt7rrFXuUKreU4NnJ2KEEv73JYWE=; b=QImPiNQ6+/z8+lmxESTCaOOVTVrHP6ME4Tgxx2amiXvezfO5toqCN48FUB+eFdGtJs DG79uE8l3oHpP9ul2ln7WJX2QQ+FfkeC/z4kPVoN8ToK53CGBN9k484kgDsNqnIOGz6A uQ+gaVNSa3RtBV9LQ0R+lWTsL1VZvbxhINbR7WL+ypsDHy96ku28j5YU8HXbIdaYwefo ApY+9UkTQn3srSHyYso/V+jkRYpOaxtWdIq5AcJHKyQdcHbQUrklPbap4X/f7XlKpapt /Jq43fqLuWEuMh/WkURcARUl2FOazgBW4Fxab3PiK1+TL/n3gnulWdy/b3Yl761UEnZS 12Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=N0Vw6MDT; 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 ci1si1190971ejc.348.2021.01.30.16.15.49; Sat, 30 Jan 2021 16:16:14 -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=N0Vw6MDT; 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 S232446AbhAaANi (ORCPT + 99 others); Sat, 30 Jan 2021 19:13:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232369AbhAaANc (ORCPT ); Sat, 30 Jan 2021 19:13:32 -0500 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CABEC061756 for ; Sat, 30 Jan 2021 16:12:52 -0800 (PST) Received: by mail-lj1-x230.google.com with SMTP id b20so7154017ljo.1 for ; Sat, 30 Jan 2021 16:12:52 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=batmuya7co49qkeSt7rrFXuUKreU4NnJ2KEEv73JYWE=; b=N0Vw6MDTg3MmEUEM+hsk5w+E42bPcuteYfxeiCXtQlJhfysYBf6F1bwNX6K2/ol9lr B0dvXiBwRWcYze3Z8zbQLJWoiqu2tcI48i/Hprge8E/0JSEwXILtznma+VmymPNiqkM7 IXlLDS86Hkhup1wFZEchkUUFQQlHDfH9oadUWwQD/VhYSMrBGHZzx3/3UH1Vl6CcL7Qd CIo9JoTeTwUJubikMXXp1EeDoBPogYAbJ7e99aeXUJjvsK3fR2NVQIZXXEdBiKmwcFDp CHVz2APc8Y3Q5/w6ZOIOpsNNcqWXJe6SDNurmfiJEcoyhE2CzzTyAkDXsQkUFnMq8Zea rZBQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=batmuya7co49qkeSt7rrFXuUKreU4NnJ2KEEv73JYWE=; b=jAXu1pvEkBxowF8SrKprqvGwdFRtRakdYIl3jdVrULNVV2tLq4MeLlA9dFuYWWELOi Yg/q/BkD82jDjRtOkNCP8sZp+V79PiPKRO/CW4dZLH9CdNP9l3jzpl7qum7h8GSyfSSh qkwPlRPRFN7OOGKx5I8zeNMT6E15a7q9/9dDZaj/S8qJnpYrgBQY65SuJ/dA2Nd0SKpO G1X5mhX93LXZX72hOOdCwcTGlkEjp3CG7Zwtmis5+Y3seRNcIMfYNOZVOmzGsMTnxn0B xCgEszjac5769OdgVpPnd6wzv0oFHCpHS/7dmCoajC+uDuoatV4br7+ncR6Bj8Vncwr9 ZOMg== X-Gm-Message-State: AOAM532c/URla/hCw4Dn18dT2grDtq+zCExlYve3ooFn1GIoauXDCZ13 FqYLzOvDuCvn1ydviKeGTUU= X-Received: by 2002:a2e:86d0:: with SMTP id n16mr6250660ljj.51.1612051970975; Sat, 30 Jan 2021 16:12:50 -0800 (PST) Received: from localhost.localdomain (h-158-174-22-164.NA.cust.bahnhof.se. [158.174.22.164]) by smtp.gmail.com with ESMTPSA id t2sm2503716lfl.141.2021.01.30.16.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Jan 2021 16:12:50 -0800 (PST) From: Rikard Falkeborn To: Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Rikard Falkeborn Subject: [PATCH 2/2] ALSA: hda: Constify static attribute_group Date: Sun, 31 Jan 2021 01:12:41 +0100 Message-Id: <20210131001241.2278-3-rikard.falkeborn@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210131001241.2278-1-rikard.falkeborn@gmail.com> References: <20210131001241.2278-1-rikard.falkeborn@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The only usage of hdac_dev_attr_group is to put its address in an array of pointers to const attribute_group structs. Make it const to allow the compiler to put it in read-only memory. Signed-off-by: Rikard Falkeborn --- sound/hda/hdac_sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/hda/hdac_sysfs.c b/sound/hda/hdac_sysfs.c index e56e83325903..0d7771fca9f0 100644 --- a/sound/hda/hdac_sysfs.c +++ b/sound/hda/hdac_sysfs.c @@ -66,7 +66,7 @@ static struct attribute *hdac_dev_attrs[] = { NULL }; -static struct attribute_group hdac_dev_attr_group = { +static const struct attribute_group hdac_dev_attr_group = { .attrs = hdac_dev_attrs, }; -- 2.30.0