Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp106632lqh; Mon, 6 May 2024 12:46:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI4KhJMoPWcO8KpiDZX4+p6mGNYK68dTSznKRDRfQ4aPpXQnd5tdudykWsc1mgk3h/21qWwKOQIuhvS3ZsjDgI3paR1okIUh3lzDi8Qw== X-Google-Smtp-Source: AGHT+IHCSKn2kB3hJxXVjFQxmA1Jw8VkOag3KMNDUFwVfDuZhFwKHsO1IofbLin/heuVm4o8T9F+ X-Received: by 2002:a9d:7f90:0:b0:6f0:3b11:aa26 with SMTP id t16-20020a9d7f90000000b006f03b11aa26mr5859244otp.24.1715024810588; Mon, 06 May 2024 12:46:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715024810; cv=pass; d=google.com; s=arc-20160816; b=yUCEzrr7kTkk55cTbEyTC8kMeUN452LK0hWtsVAw88Av4VT9lFZpxPVOcSmShsYHa5 IFoWqSg5yB5wDDoBo1x+LBJ7rMC3pgXjhNWvSmZ2B67FeQfgqc4ZpGicNDtQhimVdV3n 2u+Q6U9FxZpDMO9eweoULURzpaHZZr7n875vwbdXN5oUP041ht+HevbvcLExNlFedVao 0WS+yJA4VyWTI6gNcvfnFg6vx/KYwiG0REVNOoYbyLJ6457oZ4eCx6/a7Jq8SlyFZc9N bTiO892dlLiHFxsrMOWuWxX2XVZoga+k5t5g/NKDARxeD6CSYIrQBkN8wFRV1kXEyna7 GHnw== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=7wJXPFd+prjmPydgt6FRx2BxCiMdiW2rEgeYnMYTAzM=; fh=+ublBM+9GGWYoKbssKiMLEYTC/PmLwBCGlvV+Nagl9Q=; b=n0ksgb/u47lhjwVTsSmCaboioGw7ZwIJHLIrO8z4n+mM8rSo6Bp7lCIHnpoNA9pfjs I1FwGylV07jS0NGUujGhjwi1NGPKdEFauC5/9YNzE9q95qXYSw4TUhwMHSkYoysuD7Jb z7Fov+sFm4OPfaoo97zVppTbdGt7eW5Jg7DmjFXvI4f6WhUd1HmGboKxORhlTgn+WeRa pCbemVpz8PnslTjE4ItyDeV36mDarkSxIbE9CFBPAmszO0t/lMfSCNKYk6RQxbXqipHH gR/yOohkXzhS4tGng1sr9OjMQ68q1xfv+G554iHfTtZWF3XIgK3MPIY5Lmc4baFuc8qs Y7gg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qCfnqLjI; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-170365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id wg24-20020a05620a569800b007929372d7afsi3966351qkn.122.2024.05.06.12.46.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 12:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170365-linux.lists.archive=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=@ibm.com header.s=pp1 header.b=qCfnqLjI; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-170365-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170365-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D6ED1C219B8 for ; Mon, 6 May 2024 19:46:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2C9D15B11A; Mon, 6 May 2024 19:45:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="qCfnqLjI" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5B6A615B120; Mon, 6 May 2024 19:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024710; cv=none; b=molphzsnhYqJwhYc7FglYBm6q7w+Gi2S3YUZc8geNgCougMLjnwrk/Wte4RDIC6kVqDEAj4/VJ9d/9XA+sXIOxTJSC0gIkdHhI2JjZ7i5KZwsmSCLH3vqNZUYjM5mVLOaJrINzY+R3Clb4Rd1HVZ+RWFlqYJ8TTMLJUsQFpq970= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715024710; c=relaxed/simple; bh=DahALltv0KmFqfhfOUZlpShX7gIUfmZ1n7F4k5Tdv7I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=V+fv1lkF1yKX4RZYXg026BNhVEOtvUXeB3rNN12zVa4f3mrhijHUBNytsbzraJJns/DjJmxvM3ovXCEhNVmjYA6ZLXPsUAZi/Iq6vQghum7F+fHrnoE+nXrIBK1KDGhI73jJBKm0wn0La+ghc/Cx9dkPS9ZUpB+fN0XerMYUloU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=qCfnqLjI; arc=none smtp.client-ip=148.163.156.1 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 446JgeKs005517; Mon, 6 May 2024 19:45:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=7wJXPFd+prjmPydgt6FRx2BxCiMdiW2rEgeYnMYTAzM=; b=qCfnqLjI9s5WX3lQ0avK+d24jvGwSEkSAUEAkITfR/NDenathW4rVCjlUez3h4uoJw3t e1+ohIqxHIrYfNLtWGb3nGPMAmt0YEUCrewah+O2fG/Mwq4Om9CFG/TVCZB/b6HKV28v BUktsGNyFzQs3++vVv93rGLHjiWxBbl8+BJ7pHkR603r0OjqjrnDpVQ348M+SDAP06t8 1Yz5bbBFiuPkd2EToelc1Lt7YLnptAZ5+h4lhBEhDmAj5on8jXWoCs4hcGPLNK/NoUaw licNYhmYdFE8LBZnhm6grfYXwrAK3KbqHP71WGxcpLjkByI4AvNPQg6BQLjdLlNRTIVX 0w== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xy5kmr04b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 May 2024 19:45:02 +0000 Received: from m0353729.ppops.net (m0353729.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 446Jj2MO009139; Mon, 6 May 2024 19:45:02 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xy5kmr048-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 May 2024 19:45:02 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 446HjgZv005538; Mon, 6 May 2024 19:45:00 GMT Received: from smtprelay01.fra02v.mail.ibm.com ([9.218.2.227]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3xx5yh0g86-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 May 2024 19:45:00 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay01.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 446Jitkt55116200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 6 May 2024 19:44:57 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A9B320043; Mon, 6 May 2024 19:44:55 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C048F2004B; Mon, 6 May 2024 19:44:54 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 6 May 2024 19:44:54 +0000 (GMT) From: Heiko Carstens To: Nathan Chancellor , Arnd Bergmann , Thomas Huth , Alexandra Winter , Thorsten Winkler , Andrew Morton , Jiri Slaby , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Vasily Gorbik , Alexander Gordeev , netdev@vger.kernel.org, llvm@lists.linux.dev, patches@lists.linux.dev, Sven Schnelle , Christian Borntraeger Subject: [PATCH 0/6] s390: Unify IUCV device allocation Date: Mon, 6 May 2024 21:44:48 +0200 Message-Id: <20240506194454.1160315-1-hca@linux.ibm.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Z3CFz-wgjO_CqVvpgCSXb86pj_KiX890 X-Proofpoint-GUID: 5FzAB4xZRxGYcsjQDnLCQZpPXB8_V3U2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-06_14,2024-05-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 clxscore=1015 mlxlogscore=655 priorityscore=1501 malwarescore=0 suspectscore=0 adultscore=0 mlxscore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2405060142 Unify IUCV device allocation as suggested by Arnd Bergmann in order to get rid of code duplication in various device drivers. This also removes various warnings caused by -Wcast-function-type-strict as reported by Nathan Lynch. Unless there are objections I think this whole series should go via the s390 tree. Heiko Carstens (6): s390/iucv: Provide iucv_alloc_device() / iucv_release_device() s390/vmlogrdr: Make use of iucv_alloc_device() s390/netiucv: Make use of iucv_alloc_device() s390/smsgiucv_app: Make use of iucv_alloc_device() tty: hvc-iucv: Make use of iucv_alloc_device() s390/iucv: Unexport iucv_root drivers/s390/char/vmlogrdr.c | 20 +++-------------- drivers/s390/net/netiucv.c | 20 ++++------------- drivers/s390/net/smsgiucv_app.c | 21 +++++------------- drivers/tty/hvc/hvc_iucv.c | 15 ++----------- include/net/iucv/iucv.h | 7 +++++- net/iucv/iucv.c | 38 +++++++++++++++++++++++++++++++-- 6 files changed, 56 insertions(+), 65 deletions(-) -- 2.40.1