Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2453657ybb; Fri, 27 Mar 2020 05:59:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsyEvW0I5QiuLghyjWBsAEvnAGYmGHwoYu8TKnuYLLYGhH/eyb1VZRNTKhajzeZhXkDZadO X-Received: by 2002:a4a:a126:: with SMTP id i38mr9087879ool.11.1585313967303; Fri, 27 Mar 2020 05:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585313967; cv=none; d=google.com; s=arc-20160816; b=USpKcQ+sAYm17G5hQrjJtWO/3rmaOaO2YIpzZ6YCt5sHvYtycGTZWFtpPhjpjbrWeD Mhx2PjwH/cBAlWmjvqG2bQf+C7+I0f0AkiiHsqvva4BYCzs3rHGe+DTMF/h/1+DE3oGT ULrA3ZUPJBuM/HAhpR1micaq4r9N2Jk+UlMg1cjhRLf3Pn+aVkUHARRVgz1eZpbwAtQk fzzm9NZQvKEYIs7CYIzjou1r9uWYNQ19wn5plGBKfWCBMl+xt5fXzCqUiJ/Cb9tQiHYy Wn4SM01STZwu+c0XzQI8B1ERJ5DgptJtJ71X/noL47UiY4Zya1AL1irHLiAki6SqpfK7 lR7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=I88tAsqlMo8fU8F/wZvz1DXuh/8b/l20KykUdymJeHo=; b=W8JwKZ1aqfenSxOgTf7aeNcB2yoyneTfGXTWTRErW7DKv5RCcNkqBjEB53g7GAc9Ow WtWwjIEmtnmHFu/zOnuGZPn6kq4hfrkjQNK64vea+KMrhZIgka7tDEDswETb/FnwiV9D 0MoTUBDFFh3KDC6X9YOZYLWORCnRRSclaQnNSOvOJApFw2wnef4UHsFXERPcZ06ZLyaQ u+fyOsSuPK8MN0wbwzHUkdll+xLyBk6qu8ILPNZo/Wqkal0MVsFtXn0N2kBaC2fKNlLp zAexMisWIOHiK6Nx86L50v6IrblhIKFX57h4i3up0p/YE/dZwSY0jxoq3cFaTg97UOsu X9CA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m67si2344093oib.215.2020.03.27.05.59.14; Fri, 27 Mar 2020 05:59:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727620AbgC0M6u (ORCPT + 99 others); Fri, 27 Mar 2020 08:58:50 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:57086 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727345AbgC0M6u (ORCPT ); Fri, 27 Mar 2020 08:58:50 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 02RCXLKh108552 for ; Fri, 27 Mar 2020 08:58:49 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 300jevacps-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 27 Mar 2020 08:58:48 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 27 Mar 2020 12:58:45 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 27 Mar 2020 12:58:42 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 02RCwfla42270880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 12:58:41 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BF0A411C04A; Fri, 27 Mar 2020 12:58:41 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 653B311C050; Fri, 27 Mar 2020 12:58:41 +0000 (GMT) Received: from osiris (unknown [9.145.49.166]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 27 Mar 2020 12:58:41 +0000 (GMT) Date: Fri, 27 Mar 2020 13:58:40 +0100 From: Heiko Carstens To: Nathan Chancellor Cc: Vasily Gorbik , Christian Borntraeger , Julian Wiedmann , Ursula Braun , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH -next v2] s390/ism: Remove PM support References: <20200326190549.24565-1-natechancellor@gmail.com> <20200326190741.24687-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200326190741.24687-1-natechancellor@gmail.com> X-TM-AS-GCONF: 00 x-cbid: 20032712-0028-0000-0000-000003ECD70A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20032712-0029-0000-0000-000024B24F2F Message-Id: <20200327125840.GA4109@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.645 definitions=2020-03-27_04:2020-03-27,2020-03-27 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=966 bulkscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 spamscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 26, 2020 at 12:07:44PM -0700, Nathan Chancellor wrote: > Clang warns: > > drivers/s390/net/ism_drv.c:570:12: warning: unused function > 'ism_suspend' [-Wunused-function] > static int ism_suspend(struct device *dev) > ^ > drivers/s390/net/ism_drv.c:578:12: warning: unused function 'ism_resume' > [-Wunused-function] > static int ism_resume(struct device *dev) > ^ > 2 warnings generated. > > When CONFIG_PM is unset, SIMPLE_DEV_PM_OPS does not use the suspend or > resume functions. Power management was recently ripped out of s390 so > CONFIG_PM will never be set and these functions will always be unused. > > Remove them so that there is no more warning. > > Link: https://github.com/ClangBuiltLinux/linux/issues/950 > Fixes: 394216275c7d ("s390: remove broken hibernate / power management support") > Signed-off-by: Nathan Chancellor Thank you, however there was already an identical patch from Ursula which was missing on our branch. It's now there: https://git.kernel.org/pub/scm/linux/kernel/git/s390/linux.git/commit/?h=features&id=194f75706b86847d1b4237958f7d6bd7ea7baf42