Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935107AbcCPTS3 (ORCPT ); Wed, 16 Mar 2016 15:18:29 -0400 Received: from e36.co.us.ibm.com ([32.97.110.154]:58305 "EHLO e36.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934130AbcCPTS1 (ORCPT ); Wed, 16 Mar 2016 15:18:27 -0400 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: stefanb@linux.vnet.ibm.com X-IBM-RcptTo: linux-kernel@vger.kernel.org Subject: Re: [PATCH] tpm: fix tpm_bios_log_setup stub prototype To: Jason Gunthorpe , Jarkko Sakkinen References: <1458116410-3208536-1-git-send-email-arnd@arndb.de> <20160316101341.GA4051@intel.com> <20160316175726.GB6127@obsidianresearch.com> Cc: Arnd Bergmann , Peter Huewe , Marcel Selhorst , "Hon Ching (Vicky) Lo" , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org From: Stefan Berger Message-ID: <56E9B178.9020300@linux.vnet.ibm.com> Date: Wed, 16 Mar 2016 15:18:16 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160316175726.GB6127@obsidianresearch.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16031619-0021-0000-0000-0000186E986C Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1329 Lines: 26 On 03/16/2016 01:57 PM, Jason Gunthorpe wrote: > On Wed, Mar 16, 2016 at 12:13:41PM +0200, Jarkko Sakkinen wrote: >> On Wed, Mar 16, 2016 at 09:19:48AM +0100, Arnd Bergmann wrote: >>> A cleanup patch changed the prototype of the regular tpm_bios_log_setup >>> function, but not that of the stub that is used when the TPM is disabled, >>> causing a harmless build warning: >>> >>> drivers/char/tpm/tpm-chip.c: In function 'tpm1_chip_register': >>> drivers/char/tpm/tpm-chip.c:287:38: error: passing argument 1 of 'tpm_bios_log_setup' discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] >>> chip->bios_dir = tpm_bios_log_setup(dev_name(&chip->dev)); >>> In file included from ../drivers/char/tpm/tpm-chip.c:30:0: >>> ../drivers/char/tpm/tpm_eventlog.h:83:31: note: expected 'char *' but argument is of type 'const char *' >>> static inline struct dentry **tpm_bios_log_setup(char *name) >>> >>> This changes the stub function to match the normal prototype, >>> avoiding that warning. >> Good catch. Thank you. > The weird thing is I already applied this hunk to the patch, an > autobuilder found it, it is right in my personal tree.. > > Unclear where it got dropped? Are we missing anything else in that > series? Stephen? If I lost it, I certainly did not drop it intentionately. Stefan