Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2564569rdb; Mon, 5 Feb 2024 10:14:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IFuyNbPiCkdfQg0nxn2U3PJrOPWlHZfuBwv5F614YgcPfixLfvohBnsxmDkOI1Hsvk/dD6X X-Received: by 2002:a17:902:e80e:b0:1d6:f17b:ecfc with SMTP id u14-20020a170902e80e00b001d6f17becfcmr598406plg.15.1707156879729; Mon, 05 Feb 2024 10:14:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707156879; cv=pass; d=google.com; s=arc-20160816; b=SkVwwYapbtcYT4Xhdi74NFoI3/DRIBxQXSGV4xV0zSLqsE2NQaFEzOUL7b8tcH3r3b pVd6teQPOw4zKy7pmG+d5zbhFEEdSW/xXekNTsGYgsS62+Hmx6wd+DOnxAHMVru4DKY3 ckGim/SOaI8UVIb8B6O5NdGU3if8QlYCKO7q+jXTwpWONuE5EU5jZK3LrDQs60KpMUwq BYEuoj1oVQk6kzl6S2LUvzz49hrJA+86fQVuXwoW2HZ7+7dp20wF1IE0Ixj2jlHkj3PF k6f5ZirCM2p7o+yEWmiIf2vVJSycKHBj/VNmWzBZhnd96H+G+9mxcP8staN/gf1oXTL8 HlqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qr+Vq/S1r4X6aZjVDF0PrU45ogtRloS0UmBuISXNtMI=; fh=WUhKBNiol8Fw3KebyhEJ/LFSY1BW1hpm6CVMT1/yK7U=; b=sLiRO1M8M3AZSDAviAZfmfUjjWAAmC8SXcnrQS3O78V5cpJ+EFCPpHXVlCt9XZhCd8 vPho2pXpTpPHAVo8yBNeotxTXM63btXhUHxd7oJuPBqu9G4mTsyC07BrkIOS8wavodaF +SMXEIT76wFshenZKwVJhThhzGo3cDtyUXkT4Ia6fQb6DxbYtqm6WDu0l2aHw2CqyiUq +AGEeHDh8OeUuX9LiroGTm9N3a1DpEneTiGy6xWyuqYMnUFQbzxzDm4XX2h609y1dhBr TEPNHADevbnsAfvGIvF29a/FJnfV9+x8/lvdeTakj9IqZBh7U7nbYcwFIihBRwMoDuhP 6Bsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UUcpHxGF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-53189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCWkOrVKJ5T5xUwGCVnbiTLNQJ2J+YqARTrroc7NtXZkJNyTbQVSzM0VSIuWfvEPi6PUp5vw8CsS5wsprURsmbOcb4VYdhuRzB+fa/wLaw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s9-20020a170902ea0900b001d730061829si204302plg.324.2024.02.05.10.14.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:14:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=UUcpHxGF; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-53189-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53189-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 33EDD2855A0 for ; Mon, 5 Feb 2024 18:14:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 737C847F47; Mon, 5 Feb 2024 18:14:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UUcpHxGF" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11E3047F65 for ; Mon, 5 Feb 2024 18:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707156854; cv=none; b=EN8Fh+4RoFCpvUl8AVUxmi/EgUMSnt91sPPDGhqNKdREgGQzKkaaysyuKkmka8xTjbD6OMKHOZQnNNzeCBL72+p+cV1S6UB73RldSqflMUfYlRaazNZuYQ917G+Wn5IUh3PbxtxBbpI9IaWe7LwKoXWddARppWV8rKyb+p4tYVo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707156854; c=relaxed/simple; bh=EY4hs20oX0mr1gYQJEJz+1Hmu7pWTI0ZEk8DKNCayfs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rM3FKm3PDpLAubEYh9iorznpRChQp0zmvk7Lb5XpegWqax6vDz/pUPfSq2OvfjqQHwleZ9+pVjEyHdRyduXFnFY4OAa4mfItGlkeOoNgBD3xvvar/F4qWwkUuNY+tIqqG7XLPgPdfjlVxO6VzucsxPUgssXPHuhErZaT7RCrN/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UUcpHxGF; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-40fdd5bbe65so7602575e9.2 for ; Mon, 05 Feb 2024 10:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707156851; x=1707761651; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qr+Vq/S1r4X6aZjVDF0PrU45ogtRloS0UmBuISXNtMI=; b=UUcpHxGF9Y9+gICHErkFPGakpKZz1Q+KQuTlFz9dxxeDrzeqXKaLYRiK0Aa2UdnC6K 4FxxdCklRiLFXbzjF2MoNBXUDS3pHzjMoQMaI+sHGvts+xRBY6ySjZtOSKhCGXDs5b4l /NqGDD5NXyxox7wq4VbXhrkpk/VvV9rLT5LlpOj9FEnsQZr9RzWBpr2fCZfiLdxBgG7j 6+Dgc+Lf7Xd7uHMs/KHMg0SxkYddAk1UWVs3pljXl3GhAXoAQ70E+Ex9LTCT9tIaL6sc XMNP3oJ3N15wnnOyafGE4R7ohTohCcV+FUiMKDp52EnfcwD0ZsP54NCLkVENbbj3hEoD w0hw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707156851; x=1707761651; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qr+Vq/S1r4X6aZjVDF0PrU45ogtRloS0UmBuISXNtMI=; b=bqvcm7TJkatU2MXKHO/BVAC6Zzvy0A4BIq7mBsDoED6NIUJpoaaCW8kcckR1mgib5x Lbrvtw6Gz2jIkhmGIiD+FHwaVtNoYiBeV1BwAC1Uw9cLQO59Vdw4L5yeNqp15wBRi3AF nfEdNCX4BKaemjt4IxEIc77L7FLdoWMrAd4LDYwd4P1LgQYYRS4v18Qzl08xMRt1W9Wx E32DHdhGt0UJb0geoEsJAhYMw2rHswJmWhTYjSQZRLbRVGwihOJg9DM8v2ysjJDUjxiL hMoTNoveKVFiQvrR/BnevhqJ70cZupKzDuU7eaEysdYqZZs4imQibN8e7dyb/NFDpEO7 iMiA== X-Gm-Message-State: AOJu0Ywc6Gk9YCOfAaSkkqZPThROiiSyV6E9/9YmPNydgJEfuhyHttr9 BQdp2kRt/Dp8yqhW9bThF+LDbEIkG3JKmuW8B4Zi+nLmtHdKw4US X-Received: by 2002:a05:600c:19c8:b0:40e:f557:738d with SMTP id u8-20020a05600c19c800b0040ef557738dmr383821wmq.26.1707156851150; Mon, 05 Feb 2024 10:14:11 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVqIDzbypmAayHCkhdRi5vwvjHNh2aKNp3koseOzKUJx1C6WLjwtBw10a38BZZ+ME81zmG6yoeqO0QH49yXF17+q1Bq5DNFVhKbPGNn+IiGir6kyWCt7r/7J7kFe1Mjg6BO16OkPkrP6J825lsMBh+jENEbf9ivCWqsdAQyHqICoXSgD7/9+0Li1xtkjkJ98iqJNMdNW89e8zsWGohMesN2YeKkXI+fuEoYjr4VGLQd/g== Received: from jernej-laptop.localnet (82-149-13-182.dynamic.telemach.net. [82.149.13.182]) by smtp.gmail.com with ESMTPSA id h2-20020a05600c350200b0040fd24653d4sm558504wmq.36.2024.02.05.10.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 10:14:10 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland , "Ricardo B. Marliere" Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" Subject: Re: [PATCH] bus: sunxi-rsb: make sunxi_rsb_bus const Date: Mon, 05 Feb 2024 19:14:09 +0100 Message-ID: <10412979.nUPlyArG6x@jernej-laptop> In-Reply-To: <20240204-bus_cleanup-bus-v1-1-bda309c4b829@marliere.net> References: <20240204-bus_cleanup-bus-v1-1-bda309c4b829@marliere.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Dne nedelja, 04. februar 2024 ob 16:56:44 CET je Ricardo B. Marliere napisal(a): > Now that the driver core can properly handle constant struct bus_type, > move the sunxi_rsb_bus variable to be a constant structure as well, > placing it into read-only memory which can not be modified at runtime. > > Cc: Greg Kroah-Hartman > Suggested-by: Greg Kroah-Hartman > Signed-off-by: Ricardo B. Marliere Acked-by: Jernej Skrabec Best regards, Jernej > --- > drivers/bus/sunxi-rsb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c > index fd3e9d82340a..1e29ba76615d 100644 > --- a/drivers/bus/sunxi-rsb.c > +++ b/drivers/bus/sunxi-rsb.c > @@ -128,7 +128,7 @@ struct sunxi_rsb { > }; > > /* bus / slave device related functions */ > -static struct bus_type sunxi_rsb_bus; > +static const struct bus_type sunxi_rsb_bus; > > static int sunxi_rsb_device_match(struct device *dev, struct device_driver *drv) > { > @@ -177,7 +177,7 @@ static int sunxi_rsb_device_modalias(const struct device *dev, struct kobj_ueven > return of_device_uevent_modalias(dev, env); > } > > -static struct bus_type sunxi_rsb_bus = { > +static const struct bus_type sunxi_rsb_bus = { > .name = RSB_CTRL_NAME, > .match = sunxi_rsb_device_match, > .probe = sunxi_rsb_device_probe, > > --- > base-commit: 38ed19495066966979ba821b9e0f549ad5ea620d > change-id: 20240204-bus_cleanup-bus-de90b25d7ce6 > > Best regards, >