arch/mips/kernel/relocate.c:41:12: warning: no previous prototype for 'plat_post_relocation'
by kernel test robot
Hi Jinyang,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2b14864acbaaf03d9c01982e243a84632524c3ac
commit: a307a4ce9ecd2e23c71318201330d9d648b3f818 MIPS: Loongson64: Add KASLR support
date: 1 year, 1 month ago
config: mips-randconfig-r012-20211216 (https://download.01.org/0day-ci/archive/20211216/202112161913.eRJj41Fh-lk...)
compiler: mips64el-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a307a4ce9ecd2e23c71318201330d9d648b3f818
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash arch/mips/kernel/ arch/mips/lib/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/mips/kernel/relocate.c:41:12: warning: no previous prototype for 'plat_post_relocation' [-Wmissing-prototypes]
41 | int __weak plat_post_relocation(long offset)
| ^~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/relocate.c:135:12: warning: no previous prototype for 'do_relocations' [-Wmissing-prototypes]
135 | int __init do_relocations(void *kbase_old, void *kbase_new, long offset)
| ^~~~~~~~~~~~~~
>> arch/mips/kernel/relocate.c:304:14: warning: no previous prototype for 'relocate_kernel' [-Wmissing-prototypes]
304 | void *__init relocate_kernel(void)
| ^~~~~~~~~~~~~~~
arch/mips/kernel/relocate.c:415:6: warning: no previous prototype for 'show_kernel_relocation' [-Wmissing-prototypes]
415 | void show_kernel_relocation(const char *level)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/plat_post_relocation +41 arch/mips/kernel/relocate.c
4c9fff362261d68 Marcin Nowakowski 2016-11-23 35
8cc709d7d4f013f Steven J. Hill 2016-12-09 36 /*
8cc709d7d4f013f Steven J. Hill 2016-12-09 37 * This function may be defined for a platform to perform any post-relocation
8cc709d7d4f013f Steven J. Hill 2016-12-09 38 * fixup necessary.
8cc709d7d4f013f Steven J. Hill 2016-12-09 39 * Return non-zero to abort relocation
8cc709d7d4f013f Steven J. Hill 2016-12-09 40 */
8cc709d7d4f013f Steven J. Hill 2016-12-09 @41 int __weak plat_post_relocation(long offset)
8cc709d7d4f013f Steven J. Hill 2016-12-09 42 {
8cc709d7d4f013f Steven J. Hill 2016-12-09 43 return 0;
8cc709d7d4f013f Steven J. Hill 2016-12-09 44 }
8cc709d7d4f013f Steven J. Hill 2016-12-09 45
:::::: The code at line 41 was first introduced by commit
:::::: 8cc709d7d4f013f51d38ceb2e3c8c82d230cf457 MIPS: Relocatable: Provide plat_post_relocation hook
:::::: TO: Steven J. Hill <Steven.Hill(a)cavium.com>
:::::: CC: Ralf Baechle <ralf(a)linux-mips.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH 5/5] media: v4l2-async: Create links during v4l2_async_match_notify()
by kernel test robot
Hi Daniel,
I love your patch! Yet something to improve:
[auto build test ERROR on media-tree/master]
[also build test ERROR on v5.16-rc5 next-20211215]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Daniel-Scally/Introduce-ancillar...
base: git://linuxtv.org/media_tree.git master
config: x86_64-randconfig-r015-20211216 (https://download.01.org/0day-ci/archive/20211216/202112161906.gHHRLukN-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dd245bab9fbb364faa1581e4f92ba3119a872fba)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/7e7fcd65e8144f3ffa337760c26fb786f...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Daniel-Scally/Introduce-ancillary-links/20211214-073020
git checkout 7e7fcd65e8144f3ffa337760c26fb786f4028466
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/media/v4l2-core/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/media/v4l2-core/v4l2-async.c:284:10: error: no member named 'entity' in 'struct v4l2_subdev'
if (sd->entity.function != MEDIA_ENT_F_LENS &&
~~ ^
drivers/media/v4l2-core/v4l2-async.c:285:10: error: no member named 'entity' in 'struct v4l2_subdev'
sd->entity.function != MEDIA_ENT_F_FLASH)
~~ ^
drivers/media/v4l2-core/v4l2-async.c:288:52: error: no member named 'entity' in 'struct v4l2_subdev'
link = media_create_ancillary_link(¬ifier->sd->entity, &sd->entity,
~~~~~~~~~~~~ ^
drivers/media/v4l2-core/v4l2-async.c:288:65: error: no member named 'entity' in 'struct v4l2_subdev'
link = media_create_ancillary_link(¬ifier->sd->entity, &sd->entity,
~~ ^
drivers/media/v4l2-core/v4l2-async.c:309:24: error: no member named 'entity' in 'struct v4l2_subdev'
switch (notifier->sd->entity.function) {
~~~~~~~~~~~~ ^
5 errors generated.
vim +284 drivers/media/v4l2-core/v4l2-async.c
277
278 static int
279 __v4l2_async_create_ancillary_link(struct v4l2_async_notifier *notifier,
280 struct v4l2_subdev *sd)
281 {
282 struct media_link *link;
283
> 284 if (sd->entity.function != MEDIA_ENT_F_LENS &&
285 sd->entity.function != MEDIA_ENT_F_FLASH)
286 return -EINVAL;
287
288 link = media_create_ancillary_link(¬ifier->sd->entity, &sd->entity,
289 MEDIA_LNK_FL_ENABLED |
290 MEDIA_LNK_FL_IMMUTABLE);
291
292 return IS_ERR(link) ? PTR_ERR(link) : 0;
293 }
294
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[intel-tdx:kvm-upstream 127/152] arch/x86/kvm/vmx/tdx_stubs.c:29:5: warning: no previous prototype for 'tdx_smi_allowed'
by kernel test robot
tree: https://github.com/intel/tdx.git kvm-upstream
head: bdfe06c17daab60c196ff80c1d98467a1d3734fa
commit: 11f826bfb08f30839cadce9dd9ee8bddaaf97e9f [127/152] KVM: TDX: silently discard SMI request
config: x86_64-randconfig-m001-20211216 (https://download.01.org/0day-ci/archive/20211216/202112161904.IbwmZ3eU-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/intel/tdx/commit/11f826bfb08f30839cadce9dd9ee8bddaaf97e9f
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream
git checkout 11f826bfb08f30839cadce9dd9ee8bddaaf97e9f
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/kvm/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
arch/x86/kvm/vmx/tdx_stubs.c:4:13: warning: no previous prototype for 'tdx_pre_kvm_init' [-Wmissing-prototypes]
4 | void __init tdx_pre_kvm_init(unsigned int *vcpu_size,
| ^~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:6:12: warning: no previous prototype for 'tdx_hardware_setup' [-Wmissing-prototypes]
6 | int __init tdx_hardware_setup(struct kvm_x86_ops *x86_ops) { return -EOPNOTSUPP; }
| ^~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:7:6: warning: no previous prototype for 'tdx_hardware_enable' [-Wmissing-prototypes]
7 | void tdx_hardware_enable(void) {}
| ^~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:8:6: warning: no previous prototype for 'tdx_hardware_disable' [-Wmissing-prototypes]
8 | void tdx_hardware_disable(void) {}
| ^~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:10:5: warning: no previous prototype for 'tdx_vcpu_create' [-Wmissing-prototypes]
10 | int tdx_vcpu_create(struct kvm_vcpu *vcpu) { return -EOPNOTSUPP; }
| ^~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:11:6: warning: no previous prototype for 'tdx_vcpu_free' [-Wmissing-prototypes]
11 | void tdx_vcpu_free(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:12:6: warning: no previous prototype for 'tdx_vcpu_reset' [-Wmissing-prototypes]
12 | void tdx_vcpu_reset(struct kvm_vcpu *vcpu, bool init_event) {}
| ^~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:13:6: warning: no previous prototype for 'tdx_inject_nmi' [-Wmissing-prototypes]
13 | void tdx_inject_nmi(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:14:12: warning: no previous prototype for 'tdx_vcpu_run' [-Wmissing-prototypes]
14 | fastpath_t tdx_vcpu_run(struct kvm_vcpu *vcpu) { return EXIT_FASTPATH_NONE; }
| ^~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:15:6: warning: no previous prototype for 'tdx_vcpu_load' [-Wmissing-prototypes]
15 | void tdx_vcpu_load(struct kvm_vcpu *vcpu, int cpu) {}
| ^~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:16:6: warning: no previous prototype for 'tdx_vcpu_put' [-Wmissing-prototypes]
16 | void tdx_vcpu_put(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:17:6: warning: no previous prototype for 'tdx_prepare_switch_to_guest' [-Wmissing-prototypes]
17 | void tdx_prepare_switch_to_guest(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:18:6: warning: no previous prototype for 'tdx_handle_exit_irqoff' [-Wmissing-prototypes]
18 | void tdx_handle_exit_irqoff(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:19:5: warning: no previous prototype for 'tdx_handle_exit' [-Wmissing-prototypes]
19 | int tdx_handle_exit(struct kvm_vcpu *vcpu,
| ^~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:21:6: warning: no previous prototype for 'tdx_is_emulated_msr' [-Wmissing-prototypes]
21 | bool tdx_is_emulated_msr(u32 index, bool write) { return false; }
| ^~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:22:5: warning: no previous prototype for 'tdx_get_msr' [-Wmissing-prototypes]
22 | int tdx_get_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) { return 1; }
| ^~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:23:5: warning: no previous prototype for 'tdx_set_msr' [-Wmissing-prototypes]
23 | int tdx_set_msr(struct kvm_vcpu *vcpu, struct msr_data *msr) { return 1; }
| ^~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:25:6: warning: no previous prototype for 'tdx_apicv_post_state_restore' [-Wmissing-prototypes]
25 | void tdx_apicv_post_state_restore(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:26:5: warning: no previous prototype for 'tdx_deliver_posted_interrupt' [-Wmissing-prototypes]
26 | int tdx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) { return 0; }
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:27:6: warning: no previous prototype for 'tdx_get_exit_info' [-Wmissing-prototypes]
27 | void tdx_get_exit_info(struct kvm_vcpu *vcpu, u32 *reason,
| ^~~~~~~~~~~~~~~~~
>> arch/x86/kvm/vmx/tdx_stubs.c:29:5: warning: no previous prototype for 'tdx_smi_allowed' [-Wmissing-prototypes]
29 | int tdx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection) { return false; }
| ^~~~~~~~~~~~~~~
>> arch/x86/kvm/vmx/tdx_stubs.c:30:5: warning: no previous prototype for 'tdx_enter_smm' [-Wmissing-prototypes]
30 | int tdx_enter_smm(struct kvm_vcpu *vcpu, char *smstate) { return 0; }
| ^~~~~~~~~~~~~
>> arch/x86/kvm/vmx/tdx_stubs.c:31:5: warning: no previous prototype for 'tdx_leave_smm' [-Wmissing-prototypes]
31 | int tdx_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) { return 0; }
| ^~~~~~~~~~~~~
>> arch/x86/kvm/vmx/tdx_stubs.c:32:6: warning: no previous prototype for 'tdx_enable_smi_window' [-Wmissing-prototypes]
32 | void tdx_enable_smi_window(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:34:5: warning: no previous prototype for 'tdx_dev_ioctl' [-Wmissing-prototypes]
34 | int tdx_dev_ioctl(void __user *argp) { return -EOPNOTSUPP; }
| ^~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:35:5: warning: no previous prototype for 'tdx_vm_ioctl' [-Wmissing-prototypes]
35 | int tdx_vm_ioctl(struct kvm *kvm, void __user *argp) { return -EOPNOTSUPP; }
| ^~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:36:5: warning: no previous prototype for 'tdx_vcpu_ioctl' [-Wmissing-prototypes]
36 | int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
| ^~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c: In function 'tdx_vcpu_ioctl':
arch/x86/kvm/vmx/tdx_stubs.c:36:72: error: 'ENOPNOTSUPP' undeclared (first use in this function); did you mean 'EOPNOTSUPP'?
36 | int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
| ^~~~~~~~~~~
| EOPNOTSUPP
arch/x86/kvm/vmx/tdx_stubs.c:36:72: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kvm/vmx/tdx_stubs.c: At top level:
arch/x86/kvm/vmx/tdx_stubs.c:38:6: warning: no previous prototype for 'tdx_flush_tlb' [-Wmissing-prototypes]
38 | void tdx_flush_tlb(struct kvm_vcpu *vcpu) {}
| ^~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c:39:6: warning: no previous prototype for 'tdx_load_mmu_pgd' [-Wmissing-prototypes]
39 | void tdx_load_mmu_pgd(struct kvm_vcpu *vcpu, hpa_t root_hpa, int root_level) {}
| ^~~~~~~~~~~~~~~~
arch/x86/kvm/vmx/tdx_stubs.c: In function 'tdx_vcpu_ioctl':
arch/x86/kvm/vmx/tdx_stubs.c:36:85: error: control reaches end of non-void function [-Werror=return-type]
36 | int tdx_vcpu_ioctl(struct kvm_vcpu *vcpu, void __user *argp) { return -ENOPNOTSUPP; }
| ^
cc1: some warnings being treated as errors
vim +/tdx_smi_allowed +29 arch/x86/kvm/vmx/tdx_stubs.c
24
25 void tdx_apicv_post_state_restore(struct kvm_vcpu *vcpu) {}
26 int tdx_deliver_posted_interrupt(struct kvm_vcpu *vcpu, int vector) { return 0; }
27 void tdx_get_exit_info(struct kvm_vcpu *vcpu, u32 *reason,
28 u64 *info1, u64 *info2, u32 *intr_info, u32 *error_code) {}
> 29 int tdx_smi_allowed(struct kvm_vcpu *vcpu, bool for_injection) { return false; }
> 30 int tdx_enter_smm(struct kvm_vcpu *vcpu, char *smstate) { return 0; }
> 31 int tdx_leave_smm(struct kvm_vcpu *vcpu, const char *smstate) { return 0; }
> 32 void tdx_enable_smi_window(struct kvm_vcpu *vcpu) {}
33
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[jirislaby:devel 22/33] drivers/tty/serial/pch_uart.c:955:17: sparse: sparse: incompatible types in comparison expression (different signedness):
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git devel
head: d61595c5423534810c1a3c0d4a88dd2fd81d750c
commit: 4671e2ec5eadf881696fad611235561e94c6be9c [22/33] circ_buf: switch macros to inlines
config: i386-randconfig-s001-20211216 (https://download.01.org/0day-ci/archive/20211216/202112161927.OMw1GBHb-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git/commi...
git remote add jirislaby https://git.kernel.org/pub/scm/linux/kernel/git/jirislaby/linux.git
git fetch --no-tags jirislaby devel
git checkout 4671e2ec5eadf881696fad611235561e94c6be9c
# save the config file to linux build tree
mkdir build_dir
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/tty/serial/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/tty/serial/pch_uart.c:955:17: sparse: sparse: incompatible types in comparison expression (different signedness):
>> drivers/tty/serial/pch_uart.c:955:17: sparse: int *
>> drivers/tty/serial/pch_uart.c:955:17: sparse: unsigned int *
drivers/tty/serial/pch_uart.c:1474:30: sparse: sparse: restricted upf_t degrades to integer
drivers/tty/serial/pch_uart.c:1478:32: sparse: sparse: invalid assignment: &=
drivers/tty/serial/pch_uart.c:1478:32: sparse: left side has type int
drivers/tty/serial/pch_uart.c:1478:32: sparse: right side has type restricted upf_t
drivers/tty/serial/pch_uart.c:1662:28: sparse: sparse: context imbalance in 'pch_console_write' - unexpected unlock
vim +955 drivers/tty/serial/pch_uart.c
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 917
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 918 static unsigned int dma_handle_tx(struct eg20t_port *priv)
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 919 {
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 920 struct uart_port *port = &priv->port;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 921 struct circ_buf *xmit = &port->state->xmit;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 922 struct scatterlist *sg;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 923 int nent;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 924 int fifo_size;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 925 struct dma_async_tx_descriptor *desc;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 926 int num;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 927 int i;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 928 int bytes;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 929 int size;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 930 int rem;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 931
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 932 if (!priv->start_tx) {
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 933 dev_info(priv->port.dev, "%s:Tx isn't started. (%lu)\n",
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 934 __func__, jiffies);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 935 pch_uart_hal_disable_interrupt(priv, PCH_UART_HAL_TX_INT);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 936 priv->tx_empty = 1;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 937 return 0;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 938 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 939
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 940 if (priv->tx_dma_use) {
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 941 dev_dbg(priv->port.dev, "%s:Tx is not completed. (%lu)\n",
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 942 __func__, jiffies);
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 943 pch_uart_hal_disable_interrupt(priv, PCH_UART_HAL_TX_INT);
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 944 priv->tx_empty = 1;
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 945 return 0;
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 946 }
60d1031e114a3e drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 947
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 948 fifo_size = max(priv->fifo_size, 1);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 949 if (pop_tx_x(priv, xmit->buf)) {
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 950 pch_uart_hal_write(priv, xmit->buf, 1);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 951 port->icount.tx++;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 952 fifo_size--;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 953 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 954
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 @955 bytes = min((int)CIRC_CNT(xmit->head, xmit->tail,
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 956 UART_XMIT_SIZE), CIRC_CNT_TO_END(xmit->head,
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 957 xmit->tail, UART_XMIT_SIZE));
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 958 if (!bytes) {
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 959 dev_dbg(priv->port.dev, "%s 0 bytes return\n", __func__);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 960 pch_uart_hal_disable_interrupt(priv, PCH_UART_HAL_TX_INT);
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 961 uart_write_wakeup(port);
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 962 return 0;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 963 }
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 964
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 965 if (bytes > fifo_size) {
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 966 num = bytes / fifo_size + 1;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 967 size = fifo_size;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 968 rem = bytes % fifo_size;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 969 } else {
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 970 num = 1;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 971 size = bytes;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 972 rem = bytes;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 973 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 974
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 975 dev_dbg(priv->port.dev, "%s num=%d size=%d rem=%d\n",
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 976 __func__, num, size, rem);
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 977
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 978 priv->tx_dma_use = 1;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 979
290ff182e92a3d drivers/tty/serial/pch_uart.c Julia Lawall 2020-09-20 980 priv->sg_tx_p = kmalloc_array(num, sizeof(struct scatterlist), GFP_ATOMIC);
a92098a1cb7ec0 drivers/tty/serial/pch_uart.c Fengguang Wu 2012-07-28 981 if (!priv->sg_tx_p) {
a92098a1cb7ec0 drivers/tty/serial/pch_uart.c Fengguang Wu 2012-07-28 982 dev_err(priv->port.dev, "%s:kzalloc Failed\n", __func__);
a92098a1cb7ec0 drivers/tty/serial/pch_uart.c Fengguang Wu 2012-07-28 983 return 0;
a92098a1cb7ec0 drivers/tty/serial/pch_uart.c Fengguang Wu 2012-07-28 984 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 985
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 986 sg_init_table(priv->sg_tx_p, num); /* Initialize SG table */
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 987 sg = priv->sg_tx_p;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 988
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 989 for (i = 0; i < num; i++, sg++) {
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 990 if (i == (num - 1))
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 991 sg_set_page(sg, virt_to_page(xmit->buf),
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 992 rem, fifo_size * i);
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 993 else
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 994 sg_set_page(sg, virt_to_page(xmit->buf),
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 995 size, fifo_size * i);
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 996 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 997
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 998 sg = priv->sg_tx_p;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 999 nent = dma_map_sg(port->dev, sg, num, DMA_TO_DEVICE);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1000 if (!nent) {
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1001 dev_err(priv->port.dev, "%s:dma_map_sg Failed\n", __func__);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1002 return 0;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1003 }
74887542fdcc92 drivers/tty/serial/pch_uart.c Peng Fan 2019-11-13 1004 priv->orig_nent = num;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1005 priv->nent = nent;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1006
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1007 for (i = 0; i < nent; i++, sg++) {
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1008 sg->offset = (xmit->tail & (UART_XMIT_SIZE - 1)) +
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1009 fifo_size * i;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1010 sg_dma_address(sg) = (sg_dma_address(sg) &
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1011 ~(UART_XMIT_SIZE - 1)) + sg->offset;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1012 if (i == (nent - 1))
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1013 sg_dma_len(sg) = rem;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1014 else
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1015 sg_dma_len(sg) = size;
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1016 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1017
16052827d98fbc drivers/tty/serial/pch_uart.c Alexandre Bounine 2012-03-08 1018 desc = dmaengine_prep_slave_sg(priv->chan_tx,
a485df4b440437 drivers/tty/serial/pch_uart.c Vinod Koul 2011-10-14 1019 priv->sg_tx_p, nent, DMA_MEM_TO_DEV,
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1020 DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1021 if (!desc) {
493671a2cecbb7 drivers/tty/serial/pch_uart.c Geert Uytterhoeven 2014-07-11 1022 dev_err(priv->port.dev, "%s:dmaengine_prep_slave_sg Failed\n",
23877fdc6df330 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1023 __func__);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1024 return 0;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1025 }
da3564ee027e78 drivers/tty/serial/pch_uart.c Tomoya MORINAGA 2011-02-23 1026 dma_sync_sg_for_device(port->dev, priv->sg_tx_p, nent, DMA_TO_DEVICE);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1027 priv->desc_tx = desc;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1028 desc->callback = pch_dma_tx_complete;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1029 desc->callback_param = priv;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1030
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1031 desc->tx_submit(desc);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1032
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1033 dma_async_issue_pending(priv->chan_tx);
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1034
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1035 return PCH_UART_HANDLED_TX_INT;
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1036 }
3c6a483275f47a drivers/serial/pch_uart.c Tomoya MORINAGA 2010-11-17 1037
:::::: The code at line 955 was first introduced by commit
:::::: da3564ee027e788a5ff8e520fb2d2b00a78b2464 pch_uart: add multi-scatter processing
:::::: TO: Tomoya MORINAGA <tomoya-linux(a)dsn.okisemi.com>
:::::: CC: Greg Kroah-Hartman <gregkh(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
[RFC PATCH] drm/i915: prev_deps() can be static
by kernel test robot
drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c:634:5: warning: symbol 'prev_deps' was not declared. Should it be static?
Reported-by: kernel test robot <lkp(a)intel.com>
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
i915_gem_ttm_move.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
index 09463874ef24e7..e2f679be4e4517 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm_move.c
@@ -631,8 +631,8 @@ __i915_ttm_move(struct ttm_buffer_object *bo,
return fence;
}
-int prev_deps(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx,
- struct i915_deps *deps)
+static int prev_deps(struct ttm_buffer_object *bo, struct ttm_operation_ctx *ctx,
+ struct i915_deps *deps)
{
int ret;
9 months, 1 week
[intel-tdx:kvm-upstream 24/152] arch/x86/kernel/cpu/tsx.c:186:5: warning: no previous prototype for function 'tsx_ctrl_clear'
by kernel test robot
tree: https://github.com/intel/tdx.git kvm-upstream
head: bdfe06c17daab60c196ff80c1d98467a1d3734fa
commit: 66d36f53706ca091e0362a29d87a91813265e589 [24/152] x86/cpu/tsx: Add helper functions to save/restore IA32_TSX_CTRL MSR
config: i386-randconfig-r012-20211216 (https://download.01.org/0day-ci/archive/20211216/202112161842.loPyrD9m-lk...)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dd245bab9fbb364faa1581e4f92ba3119a872fba)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/intel/tdx/commit/66d36f53706ca091e0362a29d87a91813265e589
git remote add intel-tdx https://github.com/intel/tdx.git
git fetch --no-tags intel-tdx kvm-upstream
git checkout 66d36f53706ca091e0362a29d87a91813265e589
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash arch/x86/kernel/cpu/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> arch/x86/kernel/cpu/tsx.c:186:5: warning: no previous prototype for function 'tsx_ctrl_clear' [-Wmissing-prototypes]
u64 tsx_ctrl_clear(void)
^
arch/x86/kernel/cpu/tsx.c:186:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
u64 tsx_ctrl_clear(void)
^
static
>> arch/x86/kernel/cpu/tsx.c:199:6: warning: no previous prototype for function 'tsx_ctrl_restore' [-Wmissing-prototypes]
void tsx_ctrl_restore(u64 tsx_ctrl)
^
arch/x86/kernel/cpu/tsx.c:199:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void tsx_ctrl_restore(u64 tsx_ctrl)
^
static
2 warnings generated.
vim +/tsx_ctrl_clear +186 arch/x86/kernel/cpu/tsx.c
184
185 /* Clear the MSR_TSX_CTRL and return the old value if supported */
> 186 u64 tsx_ctrl_clear(void)
187 {
188 u64 tsx_ctrl = 0;
189
190 if (ia32_tsx_ctrl_supported) {
191 rdmsrl(MSR_IA32_TSX_CTRL, tsx_ctrl);
192 if (tsx_ctrl & MSR_TSX_CTRL_MASK)
193 wrmsrl(MSR_IA32_TSX_CTRL, tsx_ctrl & ~MSR_TSX_CTRL_MASK);
194 }
195 return tsx_ctrl;
196 }
197 EXPORT_SYMBOL_GPL(tsx_ctrl_clear);
198
> 199 void tsx_ctrl_restore(u64 tsx_ctrl)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week
Re: [PATCH v7 14/14] ima: Setup securityfs for IMA namespace
by kernel test robot
Hi Stefan,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on zohar-integrity/next-integrity]
[also build test WARNING on linux/master linus/master v5.16-rc5]
[cannot apply to jmorris-security/next-testing next-20211215]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Stefan-Berger/ima-Namespace-IMA-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20211216/202112161827.mbpxbf1k-lk...)
compiler: sh4-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/bc2f1f683efbf2ad7b955fd4afc788616...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Stefan-Berger/ima-Namespace-IMA-with-audit-support-in-IMA-ns/20211216-134611
git checkout bc2f1f683efbf2ad7b955fd4afc78861609eff4b
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sh SHELL=/bin/bash security/integrity/ima/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> security/integrity/ima/ima_fs.c:451:5: warning: no previous prototype for 'ima_fs_ns_init' [-Wmissing-prototypes]
451 | int ima_fs_ns_init(struct user_namespace *user_ns, struct dentry *root)
| ^~~~~~~~~~~~~~
vim +/ima_fs_ns_init +451 security/integrity/ima/ima_fs.c
450
> 451 int ima_fs_ns_init(struct user_namespace *user_ns, struct dentry *root)
452 {
453 struct ima_namespace *ns = user_ns->ima_ns;
454 struct dentry *int_dir;
455 struct dentry *ima_dir = NULL;
456 struct dentry *ima_symlink = NULL;
457 struct dentry *binary_runtime_measurements = NULL;
458 struct dentry *ascii_runtime_measurements = NULL;
459 struct dentry *runtime_measurements_count = NULL;
460 struct dentry *violations = NULL;
461
462 /* FIXME: update when evm and integrity are namespaced */
463 if (user_ns != &init_user_ns) {
464 int_dir =
465 securityfs_create_dir("integrity", root);
466 if (IS_ERR(int_dir))
467 return -1;
468 } else
469 int_dir = integrity_dir;
470
471 ima_dir = securityfs_create_dir("ima", int_dir);
472 if (IS_ERR(ima_dir))
473 goto out;
474
475 ima_symlink = securityfs_create_symlink("ima", root, "integrity/ima",
476 NULL);
477 if (IS_ERR(ima_symlink))
478 goto out;
479
480 binary_runtime_measurements =
481 securityfs_create_file("binary_runtime_measurements",
482 S_IRUSR | S_IRGRP, ima_dir, NULL,
483 &ima_measurements_ops);
484 if (IS_ERR(binary_runtime_measurements))
485 goto out;
486
487 ascii_runtime_measurements =
488 securityfs_create_file("ascii_runtime_measurements",
489 S_IRUSR | S_IRGRP, ima_dir, NULL,
490 &ima_ascii_measurements_ops);
491 if (IS_ERR(ascii_runtime_measurements))
492 goto out;
493
494 runtime_measurements_count =
495 securityfs_create_file("runtime_measurements_count",
496 S_IRUSR | S_IRGRP, ima_dir, NULL,
497 &ima_measurements_count_ops);
498 if (IS_ERR(runtime_measurements_count))
499 goto out;
500
501 violations =
502 securityfs_create_file("violations", S_IRUSR | S_IRGRP,
503 ima_dir, NULL, &ima_htable_violations_ops);
504 if (IS_ERR(violations))
505 goto out;
506
507
508 if (!ns->policy_dentry_removed) {
509 ns->policy_dentry =
510 securityfs_create_file("policy", POLICY_FILE_FLAGS,
511 ima_dir, NULL,
512 &ima_measure_policy_ops);
513 if (IS_ERR(ns->policy_dentry))
514 goto out;
515 }
516
517 return 0;
518 out:
519 securityfs_remove(ns->policy_dentry);
520 securityfs_remove(violations);
521 securityfs_remove(runtime_measurements_count);
522 securityfs_remove(ascii_runtime_measurements);
523 securityfs_remove(binary_runtime_measurements);
524 securityfs_remove(ima_symlink);
525 securityfs_remove(ima_dir);
526 if (user_ns != &init_user_ns)
527 securityfs_remove(integrity_dir);
528
529 return -1;
530 }
531
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
9 months, 1 week