Re: [PATCH 1/2] platform/x86: amd-pmc: Make amd_pmc_stb_debugfs_fops static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 1/17/22 12:26, Hans de Goede wrote:
> amd_pmc_stb_debugfs_fops is not used outside of amd-pmc.c, make it
> static.
> 
> Cc: Sanket Goswami <Sanket.Goswami@xxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>

I've added both patches to my review-hans (soon to be for-next) branch now.

Regards,

Hans



> ---
>  drivers/platform/x86/amd-pmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c
> index f794343d6aaa..85b680297934 100644
> --- a/drivers/platform/x86/amd-pmc.c
> +++ b/drivers/platform/x86/amd-pmc.c
> @@ -226,7 +226,7 @@ static int amd_pmc_stb_debugfs_release(struct inode *inode, struct file *filp)
>  	return 0;
>  }
>  
> -const struct file_operations amd_pmc_stb_debugfs_fops = {
> +static const struct file_operations amd_pmc_stb_debugfs_fops = {
>  	.owner = THIS_MODULE,
>  	.open = amd_pmc_stb_debugfs_open,
>  	.read = amd_pmc_stb_debugfs_read,
> 




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux