From patchwork Mon Feb 12 20:04:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ricardo B. Marliere" X-Patchwork-Id: 20271 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp140600dyb; Mon, 12 Feb 2024 12:04:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCULNpoUpeXyqnGlveeOjJRriRbMUGGiVsUTGNQmq8Q67+RqTYY54c0bKq2J4TwypqyZ31OpMp1OaOkTjQlNMYzP6ScOhg== X-Google-Smtp-Source: AGHT+IHMU57i4RoK3HWXo5x/rwKHY87wwx+WLKh3yQkVitHgy9zIGoQcpYvsL/V+763K84rmn2j0 X-Received: by 2002:a05:620a:13dc:b0:785:cbeb:841 with SMTP id g28-20020a05620a13dc00b00785cbeb0841mr6852825qkl.32.1707768287447; Mon, 12 Feb 2024 12:04:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707768287; cv=pass; d=google.com; s=arc-20160816; b=B1LREZWFPTeeohyxDCN9MQdtysZK0PsBENp4x/edLXgSB1EbdrNm8zPWC5BxY0xRuZ 2xJ6MKMirO5IBz7ZyuEXTH4mZ8fT7FJBmuEQLmyS0llSjKuJL4gQL0TvRJVHpMjuMjyW 7OPuVDCY5Pq7OBLiLPC3JgZkd+bbz/HD4J/WE15YaVyP4SXmlcdoce0xpwuyd3xfqQvQ UCxLNvtqqmKXsQIBAuC8L/1A6omwd2xcuFAlmFdLPOBg/gCpJBwhEWxq/Pg8WsKTcUcy HmUT+aiiQvhBURznO1WV5N8kgq1GBTnFl27i8fTUyKs5zoLZlo22SfmEQsr9YZCWfsth ZwIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject :dkim-signature:from; bh=oHyBDS7WaykcBxou7weKIofyX0CqedvQH5iZaXyJUSI=; fh=SPtVCem1sbHusL7CEgvDc7+DKSKrh/4LgxMUhnx8O18=; b=n7z4zED4qNpZ79R2UQYsRnz/oqI5uo2ImSflTbwgE4aoK8IUzj6u86V6G6M9oxiMOY zR5sbP0HRQ3DK3U14MTjffr5XqXDkADEBIBQK0XdUjTIKvVBXil5aEgfArt+G1DrslK6 nDLtkvp8s2wYAbsvhkygg6s0TXYmgkikUi7BylDTFsoPx71MPyTaHV3CGVKNw2JNiM/F g5UX4+IQNkl/OTIRHjs/55m5SHByGOn0iUxX4Ldhg4z9q1wM2AhSBXaHI2NUZyOZQ3uZ L+eJIEw1bFukZwvbR6+n9vQNMnmQTm+vf122VkGTbnzl+rGEteZs1FRjriB3CtAzN3HT AnTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=C11Iw4bH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-62302-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62302-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net X-Forwarded-Encrypted: i=2; AJvYcCWrsJdRdABI12eBp3GnBzwO912DDAn0p9KobMariFRCvRTCPNH3OwgX2S5/WrW2EbaSbC/PazSFZJAxMd6Uj2UtSp080Q== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u12-20020a05620a022c00b007859e914bb3si6517415qkm.190.2024.02.12.12.04.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 12:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62302-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@marliere.net header.s=2024 header.b=C11Iw4bH; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=marliere.net dmarc=pass fromdomain=marliere.net); spf=pass (google.com: domain of linux-kernel+bounces-62302-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62302-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=marliere.net 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DABC61C22274 for ; Mon, 12 Feb 2024 20:04:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ADB71481BE; Mon, 12 Feb 2024 20:04:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b="C11Iw4bH" Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) (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 1783A47A70 for ; Mon, 12 Feb 2024 20:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707768268; cv=none; b=Lfi7PmyAXNOF7nwc0ri0v7XngaoJ6t9sxMz/7yKKpXuMc4bdxVjJh13akkOB7nyPPxfVyDqFXLs6qKuJh6e/8URtJFxDXNaqLUa8sksq7c0Iy11RHoROVj0JtF7H/zVqmN5tuUOmzOKu78DiymczMCgJKPlpWcXaCos2weUU9Tg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707768268; c=relaxed/simple; bh=46m5kgpYafsjbmkgwgaR3UEdg9F5o1nC2dyStdDKowI=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=uT+/W//PNgWbjaCwuWnjH0UBGt4Psi9qDlhCv7zE2dHXDRlE6hHZFi0UZaF7grtAY+n/YV42hQ9SLCqQ9iGMfxPRRYBplkvkNr0fUTAeIEo4MYDQ3ThYaNTgJFbHg9KBq7QKgvFmtTdjOFUJ6Vih8ms1efPqe0qumpaqdOVXYJg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=marliere.net header.i=@marliere.net header.b=C11Iw4bH; arc=none smtp.client-ip=209.85.215.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=marliere.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-517ab9a4a13so2861860a12.1 for ; Mon, 12 Feb 2024 12:04:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707768266; x=1708373066; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:dkim-signature:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=oHyBDS7WaykcBxou7weKIofyX0CqedvQH5iZaXyJUSI=; b=uM/y1y74OOYXOSzPa5GJigHSFeD7IkWXJk75HfBGiDs7uhDh/3mhmFXbbvJwBwBuoA HnXugnBnD8jP+h8T5PpEPIzBjfVg0dHvIrj8og03UIr8p8UkSKRq015vinrWeeGlZDCR ZMfm9S++PuPDN8ZEi/oUdCTvNpvRmmfmPO9riiM8pk6NlwpKldEPeSmsbF3hH5M41eIw E8M/T+Zyg50vTVkiwGAMQ/yUwGSd8WZJ94ye5ZYkIPN41+zafwXD1UBMvg/PpudOiHLR Tc72yK5Fv03wi4pV6JBuTSmpriSX1UCB+AJPR6/AiFlOCyCHF5N7f05olz1QwTHAkQe9 MkhQ== X-Forwarded-Encrypted: i=1; AJvYcCX1nEG1WwBeWuGIqe+X+zwLIxPGrpAFzinZpfTyWWYD0EL17X8xcfwvHHF24iftYFxpuM3tbdc6IvmUNBzx428ATGiAno7y3xmHbzKj X-Gm-Message-State: AOJu0YyGap/0udTOTJyQ3jLVBnu+hzKAMkpHGcxgX9jYKRyyQWRJ7nBi UhAoD/4OLy1YzdAhmHBdMn5gvDjdat3dbRWq5KSxzbTGlDCZrSSx X-Received: by 2002:a17:90a:348d:b0:296:1bf4:e797 with SMTP id p13-20020a17090a348d00b002961bf4e797mr5843091pjb.39.1707768266250; Mon, 12 Feb 2024 12:04:26 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXedhrpGpeN/mZtKPE3iUbsChTf1bVigu3+DpaD6WA1ZRSMHipyEPQETX+Lv3vb7jJTFxad2niSeQ0nFqmkqb1V6Wdu7sSePH/lfNh70NjSKNo1UmzG6x4+UuBYaktj9f/fsDdGeAWlUoniKT2TpmdQMMIucI6BHWDFDtkrFx3ygS9fIWUyDgzKIkGMxTp2Ec/7BeAXhUyjdzBQocBe8QhMsIKm3orsx12oMvDGqy9A6KlVAwQGycr8f7S3LY08eGrt9G9YONShmzflbA/T Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id mr1-20020a17090b238100b00296bb0b2f57sm938628pjb.21.2024.02.12.12.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 12:04:25 -0800 (PST) From: "Ricardo B. Marliere" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2024; t=1707768264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oHyBDS7WaykcBxou7weKIofyX0CqedvQH5iZaXyJUSI=; b=C11Iw4bHxhH3M1/VOZDftgEoILCd3GlmfqDD6dN8rYyZx2g2Sp+nSDeKFmFz+xeRSoZTMC o/esB8Z/s3cn9XVMaNMOzligTd4fszB7Tk0VPT5NkYWopLDiBlS5yp96lfg3w/kPDmV8rj rgDZBJmItUwmszZhwSIHvK5LNoiH4/QxP5lDv9nFqYRRAe1fRJlLLpbapf+ag4J6ZFEZD6 a5M1V7Jom6t/8mgk2K1gMkp7h/+a6mtKccz/SbvRndbTpm1r4HFIi8XAcNHozQgCH/b/KN wjOTK3j4l7hDKU9zGK99eV9tAI1BvoT3ilGaB3EKB6HKlWWEIKAQMuH8yBSj2A== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net Subject: [PATCH v2 0/5] powerpc: struct bus_type cleanup Date: Mon, 12 Feb 2024 17:04:58 -0300 Message-Id: <20240212-bus_cleanup-powerpc2-v2-0-8441b3f77827@marliere.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOp5ymUC/4WNQQ6CMBBFr0JmbU1pEKkr72GIacsgk2DbTAE1h LtbuYDL95L//goJmTDBpViBcaFEwWdQhwLcYPwDBXWZQUlVSSW1sHO6uxGNn6OI4YUcnRKVbip V985Z3UCeRsae3nv21mYeKE2BP/vLUv7sn+BSCinO2pzqzhm0trw+DY+EjEePE7Tbtn0BD9AKR 7sAAAA= To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Ricardo B. Marliere" X-Developer-Signature: v=1; a=openpgp-sha256; l=1854; i=ricardo@marliere.net; h=from:subject:message-id; bh=46m5kgpYafsjbmkgwgaR3UEdg9F5o1nC2dyStdDKowI=; b=owEBbQKS/ZANAwAKAckLinxjhlimAcsmYgBlynnuMoCq0skqVLkNyeXmP6y8brBEXCdxD+d4j tgdu4ncXBKJAjMEAAEKAB0WIQQDCo6eQk7jwGVXh+HJC4p8Y4ZYpgUCZcp57gAKCRDJC4p8Y4ZY poMsD/0RvTTqHv+De6ldjUB5U9FVw9LSQpxhixM4+Vea1K/AUn/X06Slrqk2KGuB4t0hNee8q3+ CMCyqcE2Ggdf618CxQ0Dl04JBWol8rgcOuFCv5xnnwOFlBT173GjFuph2qS900Q2SBPK7fmDSec PaJOmu7VZ8n8rGzUrdc0sHTwjeOyqHxrCTGdn7yU7aCtHn2IrxTr/9Zj/TMxWeRRU5p8a8Kjw0n D6NmhGLwHfiO02H+hZW/uoUmD4jixo6aSQp8RPi12nbO3oWIhCK+CASr+SuhfRIg7cou3QWwT1s rCVKOeHT2alFnwWWxlgv/XkpMR4eixScTnzR2a4joKjAOPEzOdmWNujmfXX4hUswjGbapkjSAIl wIqGSwcTYUUeLFP7kW4YeieDJ3Q9YUCBHlNZhYQ8M8Y1NSINCbrI5liJdt0bf9gaNCgCbFtlo5h 9L6C1h6idOImKJ1I+HXKM1H3mIiprbc9tkBSvBSoyIZjzZhFQCyqfLb/mR0Ns0Uar8UrPysS5SW RIffqFjxOCAD5xiU8ldo3hl3ycstEVZjm7BRUi4c4s9kSSaidl4c+KObiMQABynvvcyeEzJ5p4B xOv3MBK0yzo8iUV59ZtVpoXd5IVbGP9/e+GC8YlUMK1FAVbsgprDLUtuS1CjQdkXSlH0lRx3rkq QRUy+o6OPIZ9WSw== X-Developer-Key: i=ricardo@marliere.net; a=openpgp; fpr=030A8E9E424EE3C0655787E1C90B8A7C638658A6 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790496569384946713 X-GMAIL-MSGID: 1790724839992835785 This series is part of an effort to cleanup the users of the driver core, as can be seen in many recent patches authored by Greg across the tree (e.g. [1]). Patch 1/5 is a prerequisite to 2/5, but the others have no dependency. They were built using bootlin's without warnings using powerpc64le-power8--glibc--stable-2023.11-1 toolchain. Reviewed-by: Greg Kroah-Hartman --- [1]: https://lore.kernel.org/lkml/?q=f%3Agregkh%40linuxfoundation.org+s%3A%22make%22+and+s%3A%22const%22 Cc: Greg Kroah-Hartman Signed-off-by: Ricardo B. Marliere --- Changes in v2: - Added a new patch to make macio_bus_type const. - Improved changelogs to remove the word "Now". - Fixed a build error: https://lore.kernel.org/oe-kbuild-all/202402102142.uphiKeqw-lkp@intel.com/ - Link to v1: https://lore.kernel.org/r/20240209-bus_cleanup-powerpc2-v1-0-79a56dcaebb1@marliere.net --- Ricardo B. Marliere (5): powerpc: vio: move device attributes into a new ifdef powerpc: vio: make vio_bus_type const powerpc: mpic: make mpic_subsys const powerpc: pmac: make macio_bus_type const powerpc: ibmebus: make ibmebus_bus_type const arch/powerpc/include/asm/ibmebus.h | 2 +- arch/powerpc/include/asm/macio.h | 2 +- arch/powerpc/include/asm/mpic.h | 2 +- arch/powerpc/include/asm/vio.h | 2 +- arch/powerpc/platforms/pseries/ibmebus.c | 4 +-- arch/powerpc/platforms/pseries/vio.c | 61 ++++++++++++++++++-------------- arch/powerpc/sysdev/mpic.c | 2 +- drivers/macintosh/macio_asic.c | 2 +- 8 files changed, 43 insertions(+), 34 deletions(-) --- base-commit: 41bccc98fb7931d63d03f326a746ac4d429c1dd3 change-id: 20240209-bus_cleanup-powerpc2-498426fccb98 Best regards,