From patchwork Mon Dec 2 09:49:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13890207 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 7C4531F949 for ; Mon, 2 Dec 2024 09:49:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733132951; cv=none; b=tDGMvO8qfEfCNAbqwKSPA6CIYHC97WlkhKNRv7sd/TxeP9eg41+RbPNlcjn+aRx3ohZoCdHy0RoNralICtPgPWUTH5scDgQOlickAhcxF4vdpphWk3JDUIP6vguU+XjIh405w9yoJ9nSnd0NkyVFiXnDuph+lbxFDIqol/wLVLM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733132951; c=relaxed/simple; bh=7TsWaTIWJQYD+y9SICdpkAnWxQKe1BiPBtoMoUrrt9g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uijdhhAu8bEPHFtQFY3ke9oF3D58Aq4gcBQGkrCdq94D5cIe9I+KXyNOrRUTHF5mbMzWv9I9o6Ibjh96ZwZDPMXz5+Ep4RnyTSAMAH+F2GyYhWE3KurTg8Z2m4Tf10/thm5iJKuRNFihVtyqCi5NZK3K7p3Fpoli07Hn+1Uqf5Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=T4W00Jm/; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="T4W00Jm/" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-434a9f2da82so34413205e9.2 for ; Mon, 02 Dec 2024 01:49:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1733132948; x=1733737748; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+tz/xNuOuXmUEM+zhS3HXnHXawb1XEPnU6wuMOHx78M=; b=T4W00Jm/IPoUkK5t6lu2Z2eR1Oc6HNuVPu/YKg1wC1RPxWZaB90X+BYk/Kiyv3Ygzc H+lRi+hM68p+B1t14P6aCfmfRTNw2GoMBtlAZbZUx2RdkVm8yChtC21bcCiCtoUDqQtU S7mdh1XOx9GEYe/n7lxOKcDQJQi4J5K8zSHmT0RGtF29Z8n5r2zV8ME6D8GJmuE9YKh1 r4uUEdeEWxXk1RugfQiQ/wpxCC/XxxtoGTvFQ6nauMHSDCVvSCi6emJ8+4SnmSzwQagU Nwtr55JZquqj55AP02O+CAEDPfYbTWO8w/PPrxX4S+3DLePYu/WaeEcqnBMe0sYDf90b JEvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733132948; x=1733737748; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+tz/xNuOuXmUEM+zhS3HXnHXawb1XEPnU6wuMOHx78M=; b=QfPnmOueBFUYr5I7ZRj1jNMTAQj6ipwrcFHG8z4Il19a0cjfHrO1vA5x7+yUH6boj7 +1YBrSt0mORAenIVgfVOWZ7rxbKgeljeLSihICDWn4FL9bejImhkN4e75GEaeLrmF1L1 z6m5OzxwrF27fOZYuRVkfPeVlluTrg6QyGH4okImxujMFVUd80rtV7ieNnvuC5EWcfgM xHsEN45oeV1ymJTpEOvSifTltM0fEwAs9NNCRvJELlw3MK4nxuBYqKTiGThB7wIQDLry 0ghsZDhEi/cC5JD2BJA4NkDE6hYyapjg3Pe+xvLEb1MC21Hz3/SnV2doOcZ0YO9wwuHL bURQ== X-Gm-Message-State: AOJu0YxvvRu58oesJ+Q795siTBllnD+gVwbY2FUQSDIvtuBCwQwUFJSH O80rWfDSpZ22gFtsQ9vOSjG5WjTfgo4P/jgFNAk1+KOMYAkKhPT00oIHJBzip5c= X-Gm-Gg: ASbGncuE4aONSA2ASxBY+ijuaYIuMGNJeincW2z9QMrpwv8LeePQxV6K8ZQA0sfuOj6 x45dn4f/arRdSTIv+21EqMsSMxvPXYp73ZAS80ibT4OVic6Kjql9HuoMoRPtMZYjY9x6rsuOH/n Li81+gXNyl0O5ga4otDjrATofxnGLDkmYRWIcHx3tJI5NJNiet2U1AnhQYKXpff4bAbR5e5jfPD +sDcSXSYiTCHw/uXs2mT50/z/Cw/pph6k4+pNQyYuofJZ4/wg== X-Google-Smtp-Source: AGHT+IFBViBzFl4UbOb2Q7QPujdsLTswwDPnJQOow8/tEwXztCuRe/qAmFq2iQFkA4m98awINGeM7w== X-Received: by 2002:a05:600c:3111:b0:430:563a:b20a with SMTP id 5b1f17b1804b1-434a9dc01b2mr185421235e9.11.1733132947755; Mon, 02 Dec 2024 01:49:07 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:223b:dce7:ef1c:4bc4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e3c21ba7sm6486475f8f.53.2024.12.02.01.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 01:49:07 -0800 (PST) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Dmitry Baryshkov Subject: [RESEND PATCH 1/2] soc: qcom: rmtfs: allow building the module with COMPILE_TEST=y Date: Mon, 2 Dec 2024 10:49:02 +0100 Message-ID: <20241202094903.18388-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski Make it possible to build the module when COMPILE_TEST is enabled for better build coverage. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bartosz Golaszewski --- drivers/soc/qcom/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/Kconfig b/drivers/soc/qcom/Kconfig index 74b9121240f89..58e63cf0036ba 100644 --- a/drivers/soc/qcom/Kconfig +++ b/drivers/soc/qcom/Kconfig @@ -139,7 +139,7 @@ config QCOM_RAMP_CTRL config QCOM_RMTFS_MEM tristate "Qualcomm Remote Filesystem memory driver" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST select QCOM_SCM help The Qualcomm remote filesystem memory driver is used for allocating From patchwork Mon Dec 2 09:49:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13890208 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (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 4AD551FBC8B for ; Mon, 2 Dec 2024 09:49:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733132952; cv=none; b=TQASpPwGSgvwGTOgjCivI4PKu/RoNyTUAzpNTMUYG5ycHsZBiLMLgLRPx/6CXRDbiJhvLRrXqr8x6nYVHESVTnhonGD2cx5kgZ7Z1kG4HIX68xphe3DYgM7Kgglp6LcKzFGgMzfTfvJyHLqP+DAGP+8uzza95asDapKxtK8c8Dw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733132952; c=relaxed/simple; bh=K32+C8hiXE/ndgycsEiJqGzR/Swft8zJPfIfOlRu9rw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dMSF30peWRQsHgowS62KMnzcEx3ojQ5Uo036AJb+VvN5n0EaXptH0sfIdFjTqbLqk/SluU2GPT9WcvxLI9aPg+Noi6CZN1Z494zzmMc9ySA56C4QHmS0ne2/H/gMf0v/dImnAMFywrpO8CYtPzvUd3khPIkkKBhJLL2/kpc8h8s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=Iq94b2wE; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="Iq94b2wE" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-434a8b94fb5so23275605e9.0 for ; Mon, 02 Dec 2024 01:49:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1733132948; x=1733737748; 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=kjAT8HZZIYRaFVFPw0qPZMm/T107boOCPhU2AJ24OYQ=; b=Iq94b2wE6C6Vp45iLhRwEQhZzJVFmSvSAwC5Q3qKcsHHdgNNWM28J2OkEM631wTvfT sxa/tyUmXvIxvNASOAl5j1ZDqRQsJlkH2bKV42OUApyS2UqVufP2qm+npiCl8/e0rND2 MEBHCojA1VYBpA9XsvpU0kHNEEZ1o5G6lFyKSaOuu1v+JmjsxhGDjJ39Xf36YdRhibDT 9AN36PsAlPdYB8anxTVj8yy4LUJLb1Ju0bCndG1ZhJu2eCba7zRbrZqeM5pcr3fsBlg9 LERkMJGCPESK7SL2XPwUK9DNzDp1sHaIMrE0V+uZ2tnCIJvsvRpreuP238UP4zNxlguA xMSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733132948; x=1733737748; 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=kjAT8HZZIYRaFVFPw0qPZMm/T107boOCPhU2AJ24OYQ=; b=lnU6MPemy7AP6Bi0rBM9IrEnVbXGxv988KNjJrT31M2kBLhjLCQe85qi5AOtYloPgl 0PMmEozQIV7irV5g3CC14M2rUz62AXaMSqmDhkDocrtwnAw/9zMtUPaoveFg5XNwWZA2 B1dkoGe907LRuUb1RhFJl3M45Le3g6Avdm8HEYT+isX0opJ3FX24A0PrvoCdFzGRRLwm f+R0FUIVhRmSRiNYj37nJm+vIsnbLfZ35y7b/GMprAKb/2095e8RW3pLC/vUBiNuYjxg 3buaOqII4maaIQTrx7fPKu6hZLU2JIaFXO7X2wMEeKFSVtlR4yQdfpDutAyfcQK4Qe1G 2P4Q== X-Gm-Message-State: AOJu0YxjRXJnd4/bZ1ADuUQFgj+QRLVkzk70Cf+jxO+pYudSj4KfFEFB l3lyur2Gu6nay/WQQm3KtBLtjaxp5zAtoLAISlQ9NaP8wwrL6FELJ/FwCo2tfPQ= X-Gm-Gg: ASbGncsnJ2YyBoFmADHMHyd7P1WCrILgPdTvjdydv1/75GKdbkQWW0E/0y0+Fv7+sZ4 Q8ef7ZOCbvLyYx+uYZrjg9x4Db0gV7BOqAl8IF9QhUlAjmsucC7WfUzAlCWNbpKOizARttRIguT sdJOkF3OJ3U1nJIJVBH5huWpx3JSmrZekRgu12OOJMKNHuCOg/LzWMgygToy+2heFa55PGppGb0 S90oEwSHo0Vt1BYCGQFTywtDv44cvi08pq9QGmr/Yn8jj7wDA== X-Google-Smtp-Source: AGHT+IEJZEiFCb36d5aROe2H5pY6QeNqNoxAK8OoHa+5immK0fFg1uKPM5A5PDlE/rJKRZUCfTPK3A== X-Received: by 2002:a05:600c:468c:b0:433:c76d:d56b with SMTP id 5b1f17b1804b1-434b6a4a383mr118821615e9.12.1733132948686; Mon, 02 Dec 2024 01:49:08 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:223b:dce7:ef1c:4bc4]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385e3c21ba7sm6486475f8f.53.2024.12.02.01.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Dec 2024 01:49:08 -0800 (PST) From: Bartosz Golaszewski To: Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski , Dmitry Baryshkov Subject: [RESEND PATCH 2/2] soc: qcom: rmtfs: constify rmtfs_class Date: Mon, 2 Dec 2024 10:49:03 +0100 Message-ID: <20241202094903.18388-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241202094903.18388-1-brgl@bgdev.pl> References: <20241202094903.18388-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski The rmtfs class object is never modified and can be made constant. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bartosz Golaszewski --- drivers/soc/qcom/rmtfs_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/rmtfs_mem.c b/drivers/soc/qcom/rmtfs_mem.c index 33603b8fd8f38..1b32469f27896 100644 --- a/drivers/soc/qcom/rmtfs_mem.c +++ b/drivers/soc/qcom/rmtfs_mem.c @@ -125,7 +125,7 @@ static int qcom_rmtfs_mem_release(struct inode *inode, struct file *filp) return 0; } -static struct class rmtfs_class = { +static const struct class rmtfs_class = { .name = "rmtfs", };